Control
ParsedEjsControl
public class EjsControl extends GroupControl implements Control
NOT_EDITABLE_BACKGROUND
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
Constructor | Description |
---|---|
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
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
getBoolean, getDouble, getInt, getObject, getString, setValue, setValue, setValue, setValue
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
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()
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
public void println()
Control
public void print(java.lang.String s)
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.