public class EjsControl extends GroupControl implements Control
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, replaceOwnerNameNOT_EDITABLE_BACKGROUND| Constructor and Description |
|---|
EjsControl() |
EjsControl(java.lang.Object _simulation)
The EjsControl constructor.
|
EjsControl(java.lang.Object _simulation,
java.lang.String _replaceName,
java.awt.Frame _replaceOwnerFrame) |
| Modifier and Type | Method and 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 |
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.
|
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, variableChangedpublic EjsControl(java.lang.Object _simulation)
Object - _simulation The simulation that will receive the control's actions.public EjsControl(java.lang.Object _simulation,
java.lang.String _replaceName,
java.awt.Frame _replaceOwnerFrame)
public EjsControl()
public ControlElement addObject(java.lang.Object _object, java.lang.String _classname, java.lang.String _propList)
GroupControladdObject in class GroupControlpublic void reset()
GroupControlreset in class GroupControlpublic void setLockValues(boolean lock)
setLockValues in interface Controllock - booleanpublic java.util.Collection getPropertyNames()
getPropertyNames in interface Controlpublic void clearValues()
ControlclearValues in interface Controlpublic void clearMessages()
ControlclearMessages in interface Controlpublic void println(java.lang.String s)
Controlpublic void println()
Controlpublic void print(java.lang.String s)
Controlpublic void calculationDone(java.lang.String message)
ControlcalculationDone in interface Controlpublic void setValue(java.lang.String _variable,
Value _value)
GroupControlsetValue in class GroupControlpublic Value getValue(java.lang.String _variable)
GroupControlgetValue in class GroupControlValue object of the variable. If the
variable has never been set, it returns null.