org.opensourcephysics.sip.ch08.md
Class LJParticlesLoader

java.lang.Object
  extended by org.opensourcephysics.sip.ch08.md.LJParticlesLoader
All Implemented Interfaces:
XML.ObjectLoader

public class LJParticlesLoader
extends java.lang.Object
implements XML.ObjectLoader

LJParticlesLoader implements the ObjectLoader interface to load and store data.


Constructor Summary
LJParticlesLoader()
           
 
Method Summary
 java.lang.Object createObject(XMLControl element)
          Creates a LJParticlesApp object.
 java.lang.Object loadObject(XMLControl control, java.lang.Object obj)
          Loads data from the control into the LJParticlesApp model.
 void saveObject(XMLControl control, java.lang.Object obj)
          Saves data from the LJParticlesApp model into the control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LJParticlesLoader

public LJParticlesLoader()
Method Detail

createObject

public java.lang.Object createObject(XMLControl element)
Creates a LJParticlesApp object.

Specified by:
createObject in interface XML.ObjectLoader
Parameters:
control - the xml control
Returns:
a new object

saveObject

public void saveObject(XMLControl control,
                       java.lang.Object obj)
Saves data from the LJParticlesApp model into the control.

Specified by:
saveObject in interface XML.ObjectLoader
Parameters:
element - XMLControl
obj - Object

loadObject

public java.lang.Object loadObject(XMLControl control,
                                   java.lang.Object obj)
Loads data from the control into the LJParticlesApp model.

Specified by:
loadObject in interface XML.ObjectLoader
Parameters:
element - XMLControl
obj - Object
Returns:
Object