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 TypeMethodDescriptionvoid
Notifies the control when a calculation has completed.void
Clears all text from the control's message area.void
Clears all text from the control's data input area.boolean
getBoolean
(String par) Read a parameter value from the input display.double
Read a parameter value from the input display.int
Read 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.void
Prints a string in the control's message area.void
println()
Prints a blank line in the control's message area.void
Prints a string in the control's message area followed by a CR and LF.void
scriptValue
(String par, String val) void
setLockValues
(boolean lock) Locks the control's interface.void
Add an initial boolean value of a parameter to the input display.void
Add an initial value of a parameter to the input display.void
Add an initial value of a parameter to the input display.void
Adds 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:
setLockValues
in 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:
getPropertyNames
in interfaceControl
- Returns:
- List
-
getPropertyNamesRaw
Description copied from interface:Control
Gets the names of all properties stored in this control.- Specified by:
getPropertyNamesRaw
in 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:
getBoolean
in interfaceControl
- Parameters:
par
- the parameter name- Returns:
- the value of of the parameter
- Since:
-
println
Description copied from interface:Control
Prints 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:Control
Prints 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:Control
Prints 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:Control
Clears all text from the control's message area.- Specified by:
clearMessages
in interfaceControl
-
calculationDone
Description copied from interface:Control
Notifies 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:
calculationDone
in interfaceControl
-
clearValues
public void clearValues()Description copied from interface:Control
Clears all text from the control's data input area.- Specified by:
clearValues
in interfaceControl
-