Package org.opensourcephysics.controls
Class HiddenControl
java.lang.Object
org.opensourcephysics.controls.HiddenControl
- All Implemented Interfaces:
Control
A Control without a graphical user interface.
- Version:
- 1.0
- Author:
- Joshua Gould
-
Field Summary
Fields inherited from interface org.opensourcephysics.controls.Control
NOT_EDITABLE_BACKGROUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies the control when a calculation has completed.voidClears all text from the control's message area.voidClears all text from the control's data input area.booleangetBoolean(String par) Read a parameter value from the input display.doubleRead a parameter value from the input display.intRead a parameter value from the input display.Gets the object with the specified property name./** Gets the names of all properties stored in this control.Gets the names of all properties stored in this control.Reads a parameter value from the input display.voidPrints a string in the control's message area.voidprintln()Prints a blank line in the control's message area.voidPrints a string in the control's message area followed by a CR and LF.voidscriptValue(String par, String val) voidsetLockValues(boolean lock) Locks the control's interface.voidAdd an initial boolean value of a parameter to the input display.voidAdd an initial value of a parameter to the input display.voidAdd an initial value of a parameter to the input display.voidAdds an initial value of a parameter to the input display.
-
Constructor Details
-
HiddenControl
public HiddenControl()
-
-
Method Details
-
setLockValues
public void setLockValues(boolean lock) Locks the control's interface. Values sent to the control will not update the display until the control is unlocked.- Specified by:
setLockValuesin interfaceControl- Parameters:
lock- boolean
-
setValue
Adds an initial value of a parameter to the input display. Input parameters should be read when the calculation is performed. -
setValue
Add an initial boolean value of a parameter to the input display. Input parameters should be read when the calculation is performed. -
setValue
Add an initial value of a parameter to the input display. Input parameters should be read when the calculation is performed. -
setValue
Add an initial value of a parameter to the input display. Input parameters should be read when the calculation is performed. -
scriptValue
-
getPropertyNames
/** Gets the names of all properties stored in this control.- Specified by:
getPropertyNamesin interfaceControl- Returns:
- List
-
getPropertyNamesRaw
Description copied from interface:ControlGets the names of all properties stored in this control.- Specified by:
getPropertyNamesRawin interfaceControl- Returns:
- the actual property list
-
getDouble
Read a parameter value from the input display. -
getInt
Read a parameter value from the input display. -
getObject
Gets the object with the specified property name. Throws an UnsupportedOperationException if the named object has not been stored. -
getString
Reads a parameter value from the input display. -
getBoolean
Read a parameter value from the input display.- Specified by:
getBooleanin interfaceControl- Parameters:
par- the parameter name- Returns:
- the value of of the parameter
- Since:
-
println
Description copied from interface:ControlPrints a string in the control's message area followed by a CR and LF. GUI controls will usually display messages in a non-editable text area. -
println
public void println()Description copied from interface:ControlPrints a blank line in the control's message area. GUI controls will usually display messages in a non-editable text area. -
print
Description copied from interface:ControlPrints a string in the control's message area. GUI controls will usually display messages in a non-editable text area. -
clearMessages
public void clearMessages()Description copied from interface:ControlClears all text from the control's message area.- Specified by:
clearMessagesin interfaceControl
-
calculationDone
Description copied from interface:ControlNotifies the control when a calculation has completed. Some controls, such as the animation control, change their appearance during a calculation. A completed calculation, such as when a predetermined tolerance is reached, can call this method. The message will be displayed in the control's message area.- Specified by:
calculationDonein interfaceControl
-
clearValues
public void clearValues()Description copied from interface:ControlClears all text from the control's data input area.- Specified by:
clearValuesin interfaceControl
-