org.opensourcephysics.controls
Class OSPApplication

java.lang.Object
  extended by org.opensourcephysics.controls.OSPApplication

public class OSPApplication
extends java.lang.Object

OSPApplication defines a model and a control.

Version:
1.1
Author:
Douglas Brown, Wolfgang Christian

Constructor Summary
OSPApplication(Control control, java.lang.Object model)
          Constructs an OSPApplication.
 
Method Summary
 java.lang.Class<?> getLoadedControlClass()
          Gets the control that was used to load this class.
 java.lang.Class<?> getLoadedModelClass()
          Gets the model that was used to load this class.
static XML.ObjectLoader getLoader()
          Returns an XML.ObjectLoader to save and load data for this object.
 void setCompatibleModel(boolean b)
          Set the loader to import all xml data for a compatible model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSPApplication

public OSPApplication(Control control,
                      java.lang.Object model)
Constructs an OSPApplication.

Parameters:
control -
model -
Method Detail

setCompatibleModel

public void setCompatibleModel(boolean b)
Set the loader to import all xml data for a compatible model.

Parameters:
b -

getLoadedModelClass

public java.lang.Class<?> getLoadedModelClass()
Gets the model that was used to load this class.

Returns:

getLoadedControlClass

public java.lang.Class<?> getLoadedControlClass()
Gets the control that was used to load this class.

Returns:

getLoader

public static XML.ObjectLoader getLoader()
Returns an XML.ObjectLoader to save and load data for this object.

Returns:
the object loader