|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.jgraph.pad.JGraphpadFile
Represents a file in the JGraphpad editor. A file may contain any number of children which are themselfes XML encodable.
| Field Summary | |
protected boolean |
isNew
Specifies if the file has been saved since its creation. |
protected boolean |
modified
Specifies if the file has been modified since the last save. |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
JGraphpadFile()
Constructs a new file. |
|
JGraphpadFile(String filename)
Constructs a new file using the filename as the user object. |
|
| Method Summary | |
String |
getFilename()
Returns the filename. |
boolean |
isModified()
Returns true if the file was modified since the last save. |
boolean |
isNew()
Returns true if the file has never been saved since its
creation. |
void |
setFilename(String filename)
Sets the filename. |
void |
setModified(boolean modified)
Sets the modified state. |
void |
setNew(boolean isNew)
Sets the isNew state. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.MutableTreeNode |
insert, remove, remove, removeFromParent, setParent, setUserObject |
| Methods inherited from interface javax.swing.tree.TreeNode |
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
| Field Detail |
protected transient boolean modified
protected transient boolean isNew
| Constructor Detail |
public JGraphpadFile()
public JGraphpadFile(String filename)
filename - The user object of the parent object.| Method Detail |
public void setNew(boolean isNew)
JGraphEditorFile
setNew in interface JGraphEditorFileisNew - The isNew state to set.public boolean isNew()
JGraphEditorFiletrue if the file has never been saved since its
creation.
isNew in interface JGraphEditorFilepublic void setModified(boolean modified)
JGraphEditorFile
setModified in interface JGraphEditorFilemodified - The modified state to set.public boolean isModified()
JGraphEditorFiletrue if the file was modified since the last save.
isModified in interface JGraphEditorFilepublic void setFilename(String filename)
JGraphEditorFile
setFilename in interface JGraphEditorFilefilename - The filename to set.public String getFilename()
JGraphEditorFile
getFilename in interface JGraphEditorFile
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||