|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SaveableXXX
An iterface for objects that can be save/loaded from XML. Implementors of this object need to have a no argument constuctor to be used when it is being reconstructed from disk. The heavy lifting that would normally be in the constructor should then me moved to load().
Method Summary | |
---|---|
void |
dontSaveObject()
object will not be saved if save is called |
void |
doSaveObject()
Object will be savable if save is called |
void |
load(Element node)
To load a stored property one does this: String someString = node.getAttributeValue("someString"); To load @link frysk.gui.monitor.SaveableXXX one gets the appropriet node and tells that object to load itself from that node. |
void |
save(Element node)
Save object to the given node Saving Conventions: If this object has a property such as a String, char, int, etc, that is saved by using node.setAttribute("someProperty", someProperty); If this object contains composing @link frysk.gui.monitor.SaveableXXX then a node is created for that and that object is told to save itself to that node. |
boolean |
shouldSaveObject()
queried to see if this object should be saved or not |
Method Detail |
---|
void save(Element node)
node
- void load(Element node)
node
- boolean shouldSaveObject()
void doSaveObject()
void dontSaveObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |