|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.controls.XMLLoader
public class XMLLoader
This is an ObjectLoader implementation that attempts to create a new object of class element.getObjectClass() but takes no other action. It is used as the default loader and can be extended for use by particular classes.
| Constructor Summary | |
|---|---|
XMLLoader()
|
|
| 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 the object with xml data. |
void |
saveObject(XMLControl control,
java.lang.Object obj)
Empty method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLLoader()
| Method Detail |
|---|
public void saveObject(XMLControl control,
java.lang.Object obj)
saveObject in interface XML.ObjectLoadercontrol - the controlobj - the objectpublic java.lang.Object createObject(XMLControl control)
createObject in interface XML.ObjectLoadercontrol - the control
public java.lang.Object loadObject(XMLControl control,
java.lang.Object obj)
loadObject in interface XML.ObjectLoadercontrol - the controlobj - the object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||