|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.ejs.control.GroupControl org.opensourcephysics.ejs.control.EjsControl
public class EjsControl
A blend of GroupControl and org.opensourcephysics.control.Control
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 | |
---|---|
EjsControl()
Constructor EjsControl |
|
EjsControl(java.lang.Object _simulation)
The EjsControl constructor. |
|
EjsControl(java.lang.Object _simulation,
java.lang.String _replaceName,
java.awt.Frame _replaceOwnerFrame)
Constructor EjsControl |
Method Summary | |
---|---|
ControlElement |
addObject(java.lang.Object _object,
java.lang.String _classname,
java.lang.String _propList)
Creates a new ControlElement that wrapps an existing object If the object is not of the right class it will print a warning and ignore the object provided. |
void |
calculationDone(java.lang.String message)
Notifies the control when a calculation has completed. |
void |
clearMessages()
Clears all text from the control's message area. |
void |
clearValues()
Clears all text from the control's data input area. |
java.util.Collection<java.lang.String> |
getPropertyNames()
Reads the current property names. |
Value |
getValue(java.lang.String _variable)
Returns the group value of a variable. |
void |
print(java.lang.String s)
Prints a string in the control's message area. |
void |
println()
Prints a blank line in the control's message area. |
void |
println(java.lang.String s)
Prints a string in the control's message area followed by a CR and LF. |
void |
reset()
Reset all elements |
void |
setLockValues(boolean lock)
Locks the control's interface. |
void |
setValue(java.lang.String _variable,
Value _value)
Sets the group value for a variable. |
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, getDouble, getElement, getInt, getLoader, getObject, 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, getDouble, getInt, getObject, getString, setValue, setValue, setValue, setValue |
Constructor Detail |
---|
public EjsControl(java.lang.Object _simulation)
_simulation
- public EjsControl(java.lang.Object _simulation, java.lang.String _replaceName, java.awt.Frame _replaceOwnerFrame)
_simulation
- _replaceName
- _replaceOwnerFrame
- public EjsControl()
Method Detail |
---|
public ControlElement addObject(java.lang.Object _object, java.lang.String _classname, java.lang.String _propList)
GroupControl
addObject
in class GroupControl
public void reset()
GroupControl
reset
in class GroupControl
public void setLockValues(boolean lock)
setLockValues
in interface Control
lock
- booleanpublic java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames
in interface Control
public void clearValues()
Control
clearValues
in interface Control
public void clearMessages()
Control
clearMessages
in interface Control
public void println(java.lang.String s)
Control
println
in interface Control
public void println()
Control
println
in interface Control
public void print(java.lang.String s)
Control
print
in interface Control
public void calculationDone(java.lang.String message)
Control
calculationDone
in interface Control
public void setValue(java.lang.String _variable, Value _value)
GroupControl
setValue
in class GroupControl
public Value getValue(java.lang.String _variable)
GroupControl
getValue
in class GroupControl
Value
object of the variable. If the
variable has never been set, it returns null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |