|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.controls.XMLJavaLoader
public class XMLJavaLoader
This is an ObjectLoader implementation that uses the Java XMLEncoder and XMLDecoder classes to save and load data.
Constructor Summary | |
---|---|
XMLJavaLoader()
Constructs the loader. |
Method Summary | |
---|---|
java.lang.Object |
createObject(XMLControl control)
Creates a new object if the class type has a no-arg constructor. |
java.lang.Object |
loadObject(XMLControl control,
java.lang.Object obj)
Loads an object with data from an XMLControl. |
void |
saveObject(XMLControl control,
java.lang.Object obj)
Saves XMLEncoder data for an object in the specified XMLControl. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLJavaLoader()
Method Detail |
---|
public void saveObject(XMLControl control, java.lang.Object obj)
saveObject
in interface XML.ObjectLoader
control
- the controlobj
- the objectpublic java.lang.Object createObject(XMLControl control)
createObject
in interface XML.ObjectLoader
control
- the control
public java.lang.Object loadObject(XMLControl control, java.lang.Object obj)
loadObject
in interface XML.ObjectLoader
control
- the controlobj
- the object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |