|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This defines the interface for which all document classes will implement. Classes that implement this interface can act as the document objects within the Creek program, coordinating the model, view, and disk files associated with a graph.
Method Summary | |
void |
addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Registers an UndoableEditListener with this document. |
void |
close()
This is provided as a convenience to the document so it may free any resources its been using or remove objects from change lists. |
CreekModel |
getModel()
Returns the reference to the object acting as the model for this document. |
java.lang.String |
getTitle()
Returns the Title of the document is reading and writing to. |
ConceptView |
getView()
Returns the reference to the object acting as the view for this document. |
boolean |
isDirty()
Returns the current dirty status of this document. |
boolean |
isTitled()
Returns true if the document is currently named. |
void |
open()
The document is opened. |
boolean |
performCommand(CreekCommand command)
Perform the given command and fire an undoable edit event. |
void |
removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
Removes an UndoableEditListener from this document. |
boolean |
revert()
Reverts this document (the graph data) to the last-saved version of the knowledgeModel. |
boolean |
revert(Graph g,
java.lang.String title)
|
void |
setTitle(java.lang.String title)
Returns the reference to the file object for this document. |
void |
setTitled(boolean titled)
Tells the document whether it has a title or not. |
void |
setView(ConceptView view)
Sets the view this document is associated with. |
Methods inherited from interface jcreek.representation.Context |
getKnowledgeModel |
Method Detail |
public void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
l
- listern to add to this documentremoveUndoableEditListener(javax.swing.event.UndoableEditListener)
public void open()
public void close()
public CreekModel getModel()
public java.lang.String getTitle()
public ConceptView getView()
public boolean isDirty()
public boolean isTitled()
public boolean performCommand(CreekCommand command)
command
- command to be performed
public void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
l
- listern to remove from this documentaddUndoableEditListener(javax.swing.event.UndoableEditListener)
public boolean revert()
public boolean revert(Graph g, java.lang.String title)
public void setTitled(boolean titled)
titled
- true if document has a titledpublic void setView(ConceptView view)
view
- view objectpublic void setTitle(java.lang.String title)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |