|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.ejs.control.GroupControl
org.opensourcephysics.ejs.control.EjsControl
org.opensourcephysics.ejs.control.ParsedEjsControl
public class ParsedEjsControl
An Ejs control that behaves like a standard OSP control insofar as it parses mathematical expressions stored as strings to produce integers and doubles.
Field Summary |
---|
Fields inherited from class org.opensourcephysics.ejs.control.GroupControl |
---|
DEBUG_ALL, DEBUG_CONTROL, DEBUG_CONTROL_VERBOSE, DEBUG_DRAWING, DEBUG_DRAWING_VERBOSE, DEBUG_ELEMENTS, DEBUG_NONE, DEBUG_SET_AND_GET, DEBUG_SYSTEM, DEBUG_SYSTEM_VERBOSE, replaceOwnerFrame, replaceOwnerName |
Fields inherited from interface org.opensourcephysics.controls.Control |
---|
NOT_EDITABLE_BACKGROUND |
Constructor Summary | |
---|---|
ParsedEjsControl(java.lang.Object simulation)
|
Method Summary | |
---|---|
double |
getDouble(java.lang.String var)
Gets the double keyed to this value. |
int |
getInt(java.lang.String var)
Gets the integer keyed to this value. |
java.lang.Object |
getObject(java.lang.String var)
Gets the object keyed to the variable. |
Methods inherited from class org.opensourcephysics.ejs.control.EjsControl |
---|
addObject, calculationDone, clearMessages, clearValues, getPropertyNames, getValue, print, println, println, reset, setLockValues, setValue |
Methods inherited from class org.opensourcephysics.ejs.control.GroupControl |
---|
add, add, addListener, addListener, addNamed, addObject, addTarget, appendPrefixPath, clear, clearPrefixPath, clearVariables, destroy, destroy, getBoolean, getComponent, getContainer, getControl, getDebugLevel, getDefaultPrefixList, getElement, getLoader, getOwnerFrame, getReplaceOwnerFrame, getReplaceOwnerName, getSimulation, getString, getTarget, getTopLevelAncestor, getVisual, initialize, isVariableRegistered, registerVariable, removeTarget, rename, replaceOwnerFrame, setActive, setDebugLevel, setOwnerFrame, setSimulation, setValue, setValue, setValue, setValue, setValue, update, variableChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensourcephysics.controls.Control |
---|
getBoolean, getString, setValue, setValue, setValue, setValue |
Constructor Detail |
---|
public ParsedEjsControl(java.lang.Object simulation)
Method Detail |
---|
public double getDouble(java.lang.String var)
getDouble
in interface Control
getDouble
in class GroupControl
var
- String
public java.lang.Object getObject(java.lang.String var)
getObject
in interface Control
getObject
in class GroupControl
var
- String
public int getInt(java.lang.String var)
getInt
in interface Control
getInt
in class GroupControl
var
- String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |