|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.cke.document.KnowledgeModelController
Title: JavaCreek Description: A Case Based Reasoning approach developed in Java Copyright: Copyright (c) 1999 Company: Phil Systems
Field Summary | |
protected boolean |
dirty
True if document is dirty and needs saving. |
protected java.io.File |
file
File to read and write to. |
protected SerializeFormat |
format
Object supporting the Serialize format. |
protected static KnowledgeModelController |
instance
Reference to the single instance of this class. |
protected KnowledgeModel |
km
The knowledge Model for this document |
protected javax.swing.event.EventListenerList |
listeners
List of event listeners. |
protected boolean |
titled
True if the document is titled and has a name. |
Constructor Summary | |
protected |
KnowledgeModelController()
Creates a new SerializeGraphDocument object. |
Method Summary | |
void |
addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Registers an UndoableEditListener with this document. |
void |
close()
We're being shutdown, remove listeners from lists. |
protected void |
fireEdit(javax.swing.undo.UndoableEdit ue)
Fires an undoable edit event to all the listeners registered for such events. |
Entity[] |
getConceptList()
|
java.io.File |
getFile()
Returns the reference to the file object for this document. |
KnowledgeModel |
getModel()
Returns the reference to the object acting as the model for this document. |
java.lang.String |
getTitle()
Returns the name of the file this document is reading and writing to. |
static KnowledgeModelController |
instanceOf()
Returns the reference to the single instance of this class. |
boolean |
isDirty()
Returns the current dirty status of this document. |
boolean |
isTitled()
Returns true if the file is currently named. |
boolean |
openTestModel()
Opens a test Model |
boolean |
performCommand(CreekCommand command)
Perform the given command and fire an undoable edit event. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
The state of the model changed, mark ourselves dirty. |
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 disk file. |
boolean |
save()
Saves this document (the graph data) to the associated disk file. |
boolean |
saveAs(java.io.File file)
Saves this document (the graph data) to a new file, and hereinafter is associated with this new file. |
void |
setFile(java.io.File file)
Sets the file this document is associated with. |
void |
setTitled(boolean titled)
Tells the document whether it has a title or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected KnowledgeModel km
protected SerializeFormat format
protected java.io.File file
protected boolean dirty
protected boolean titled
protected javax.swing.event.EventListenerList listeners
protected static KnowledgeModelController instance
Constructor Detail |
protected KnowledgeModelController()
Method Detail |
public void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
l
- listern to add to this documentremoveUndoableEditListener(javax.swing.event.UndoableEditListener)
public void close()
protected void fireEdit(javax.swing.undo.UndoableEdit ue)
ue
- undoable editpublic java.io.File getFile()
public KnowledgeModel getModel()
public java.lang.String getTitle()
public boolean isDirty()
public boolean isTitled()
public boolean performCommand(CreekCommand command)
command
- command to be performed
public void propertyChange(java.beans.PropertyChangeEvent e)
e
- change eventpublic void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
l
- listern to remove from this documentaddUndoableEditListener(javax.swing.event.UndoableEditListener)
public boolean revert()
public boolean openTestModel()
public boolean save()
public boolean saveAs(java.io.File file)
file
- new file to save to
public void setFile(java.io.File file)
file
- file objectpublic void setTitled(boolean titled)
titled
- true if document has a titledpublic static KnowledgeModelController instanceOf()
public Entity[] getConceptList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |