Package org.opensourcephysics.controls
Class OSPApplication
java.lang.Object
org.opensourcephysics.controls.OSPApplication
OSPApplication defines a model and a control.
- Version:
- 1.1
- Author:
- Douglas Brown, Wolfgang Christian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Gets the control that was used to load this class.Class<?>
Gets the model that was used to load this class.static XML.ObjectLoader
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.
-
Constructor Details
-
OSPApplication
Constructs an OSPApplication.- Parameters:
control
-model
-
-
-
Method Details
-
setCompatibleModel
public void setCompatibleModel(boolean b) Set the loader to import all xml data for a compatible model.- Parameters:
b
-
-
getLoadedModelClass
Gets the model that was used to load this class.- Returns:
-
getLoadedControlClass
Gets the control that was used to load this class.- Returns:
-
getLoader
Returns an XML.ObjectLoader to save and load data for this object.- Returns:
- the object loader
-