|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Control
Graphical User Interfaces implement the Control interface.
Field Summary | |
---|---|
static java.awt.Color |
NOT_EDITABLE_BACKGROUND
|
Method Summary | |
---|---|
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. |
boolean |
getBoolean(java.lang.String name)
Gets a stored boolean from the control. |
double |
getDouble(java.lang.String name)
Gets a stored double value from the control. |
int |
getInt(java.lang.String name)
Gets a stored integer value from the control. |
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 name)
Gets a stored string from the control. |
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 |
setLockValues(boolean lock)
Locks the control's interface. |
void |
setValue(java.lang.String name,
boolean val)
Stores a name and a boolean value in the control. |
void |
setValue(java.lang.String name,
double val)
Stores a name and a double value in the control. |
void |
setValue(java.lang.String name,
int val)
Stores a name and an integer value in the control. |
void |
setValue(java.lang.String name,
java.lang.Object val)
Stores a name and a value in the control. |
Field Detail |
---|
static final java.awt.Color NOT_EDITABLE_BACKGROUND
Method Detail |
---|
void setLockValues(boolean lock)
lock
- booleanvoid setValue(java.lang.String name, java.lang.Object val)
toString<\code> representation
of the object.
- Parameters:
name
- val
-
void setValue(java.lang.String name, double val)
toString<\code> representation
of the double.
- Parameters:
name
- val
-
void setValue(java.lang.String name, int val)
toString<\code> representation
of the integer.
- Parameters:
name
- val
-
void setValue(java.lang.String name, boolean val)
toString<\code> representation
of the integer.
- Parameters:
name
- val
-
int getInt(java.lang.String name)
name
-
double getDouble(java.lang.String name)
name
-
java.lang.Object getObject(java.lang.String name)
name
- the name
java.lang.String getString(java.lang.String name)
setValue (String name, Object val)<\code> method.
GUI controls will usually allow the user to edit the value of the parameter.
- Parameters:
name
-
- Returns:
- the value of the parameter
boolean getBoolean(java.lang.String name)
setValue (String name, Object val)<\code> method.
GUI controls will usually allow the user to edit the value of the parameter.
- Parameters:
name
-
- Returns:
- the value of the parameter
java.util.Collection<java.lang.String> getPropertyNames()
void println(java.lang.String s)
s
- void println()
void print(java.lang.String s)
s
- void clearMessages()
void clearValues()
void calculationDone(java.lang.String message)
message
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |