|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.controls.HiddenControl
public class HiddenControl
A Control without a graphical user interface.
Field Summary |
---|
Fields inherited from interface org.opensourcephysics.controls.Control |
---|
NOT_EDITABLE_BACKGROUND |
Constructor Summary | |
---|---|
HiddenControl()
|
Method Summary | |
---|---|
void |
calculationDone(java.lang.String s)
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. |
boolean |
getBoolean(java.lang.String par)
Read a parameter value from the input display. |
double |
getDouble(java.lang.String par)
Read a parameter value from the input display. |
int |
getInt(java.lang.String par)
Read a parameter value from the input display. |
java.lang.Object |
getObject(java.lang.String name)
Gets the object with the specified property name. |
java.util.Collection<java.lang.String> |
getPropertyNames()
/** Gets the names of all properties stored in this control. |
java.lang.String |
getString(java.lang.String par)
Reads a parameter value from the input display. |
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 |
scriptValue(java.lang.String par,
java.lang.String val)
|
void |
setLockValues(boolean lock)
Locks the control's interface. |
void |
setValue(java.lang.String par,
boolean val)
Add an initial boolean value of a parameter to the input display. |
void |
setValue(java.lang.String par,
double val)
Add an initial value of a parameter to the input display. |
void |
setValue(java.lang.String par,
int val)
Add an initial value of a parameter to the input display. |
void |
setValue(java.lang.String par,
java.lang.Object val)
Adds an initial value of a parameter to the input display. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiddenControl()
Method Detail |
---|
public void setLockValues(boolean lock)
setLockValues
in interface Control
lock
- booleanpublic void setValue(java.lang.String par, java.lang.Object val)
setValue
in interface Control
par
- the parameter nameval
- the initial parameter valuepublic void setValue(java.lang.String par, boolean val)
setValue
in interface Control
par
- the parameter nameval
- the initial parameter valuepublic void setValue(java.lang.String par, double val)
setValue
in interface Control
par
- the parameter nameval
- the initial parameter valuepublic void setValue(java.lang.String par, int val)
setValue
in interface Control
par
- the parameter nameval
- the initial parameter valuepublic void scriptValue(java.lang.String par, java.lang.String val)
public java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames
in interface Control
public double getDouble(java.lang.String par)
getDouble
in interface Control
par
-
public int getInt(java.lang.String par)
getInt
in interface Control
par
-
public java.lang.Object getObject(java.lang.String name)
getObject
in interface Control
name
- the name
public java.lang.String getString(java.lang.String par)
getString
in interface Control
par
- the parameter name
public boolean getBoolean(java.lang.String par)
getBoolean
in interface Control
par
- the parameter name
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 clearMessages()
Control
clearMessages
in interface Control
public void calculationDone(java.lang.String s)
Control
calculationDone
in interface Control
public void clearValues()
Control
clearValues
in interface Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |