|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configurator
The Configurator object provides information about variables, and methods to change them.
| Field Summary | |
|---|---|
static java.lang.Class |
ACTION_TYPE
Type flag for actions. |
static java.lang.Class |
BOOLEAN_TYPE
Type flag for boolean variables. |
static java.lang.Class |
COLOUR_TYPE
Type flag for colour variables. |
static java.lang.Class |
FILE_TYPE
Type flag for file variables. |
static java.lang.Class |
FLOAT_TYPE
Type flag for float variables. |
static java.lang.Class |
INT_TYPE
Type flag for integer Variables. |
static java.lang.Class |
STRING_LIST_TYPE
Type flag for string lists. |
static java.lang.Class |
STRING_TYPE
Type flag for String variables. |
static java.lang.Class |
VECTOR_TYPE
Type flag for Vector variables. |
| Method Summary | |
|---|---|
void |
addConfiguratorListener(ConfiguratorListener listener)
Registers a ConfiguratorListener to this configuration. |
void |
addValueListener(ValueListener listener)
Registers a ValueListener to this configuration. |
java.lang.String |
getDescription()
Gets a descriptive string for this Configurator |
java.lang.String |
getDescription(java.lang.String name)
Gets a descriptive string for a variable, such as could be put in a tooltip |
java.lang.String |
getName()
Gets the name of this configurator. |
java.lang.Object[] |
getNames()
Gets the names of all configurable variables. |
Configurator |
getParent()
Gets a reference to the Configurator that contains this configurator. |
java.lang.String |
getPath()
Gets a "/" separated sequence of configurator names that lead to this configurator |
java.lang.Object |
getRange(java.lang.String name)
Gets an object that describes the range for a variable. |
java.lang.Class |
getType(java.lang.String name)
Gets the type of a given variable |
java.lang.Object |
getValue(java.lang.String name)
Gets the current value of a variable. |
boolean |
isGUIEnabled(java.lang.String variable)
Gets the status of a variable's widgets, vis-a-vis enablement |
void |
removeConfiguratorListener(ConfiguratorListener listener)
Removes a ConfiguratorListener. |
void |
removeValueListener(ValueListener listener)
Removes a ValueListener. |
void |
setGUIEnabled(java.lang.String variable,
boolean enabled,
java.lang.Object key)
Enables or disables any widgets associated with a particular variable. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets the value of a variable |
| Field Detail |
|---|
static final java.lang.Class BOOLEAN_TYPE
Boolean objects should
be passed into, and expected out of, the configurator. No range
can be specified
static final java.lang.Class INT_TYPE
Integer objects should
be passed into the Configurator, Number objects
expected out. Range should be specified as a float[] array, with
min and max values as the first two elements. Missing or
Float.NaN values mean no limit
static final java.lang.Class FLOAT_TYPE
Float objects should be
passed into the configurator, Number objects expected
out. Range should be specified as a two-element float array,
with min and max values ass the first two elements. Missing or
Float.NaN values mean no limit
static final java.lang.Class STRING_TYPE
String objects should be
passed into, and expected out of, the configurator. Range should
be specified as a string array containing acceptable values
static final java.lang.Class VECTOR_TYPE
Float.NaN. or omitting that element
static final java.lang.Class COLOUR_TYPE
static final java.lang.Class FILE_TYPE
static final java.lang.Class ACTION_TYPE
static final java.lang.Class STRING_LIST_TYPE
String[] objects should be
passed into, and expected out of, the configurator. Range can be
specified as a String array containing acceptable values
| Method Detail |
|---|
java.lang.String getName()
java.lang.Object[] getNames()
java.lang.Class getType(java.lang.String name)
name - The name of the variable
java.lang.String getDescription(java.lang.String name)
name - The variable to describe
java.lang.String getDescription()
java.lang.Object getRange(java.lang.String name)
name - The variable to get the range for
java.lang.Object getValue(java.lang.String name)
name - The name of the variable to inspect
void setValue(java.lang.String name,
java.lang.Object value)
name - The name of the variable to setvalue - The new value of that variablevoid addValueListener(ValueListener listener)
listener - The listener to addvoid removeValueListener(ValueListener listener)
listener - The listener to removevoid addConfiguratorListener(ConfiguratorListener listener)
listener - The listener to addvoid removeConfiguratorListener(ConfiguratorListener listener)
listener - The listener to remove
void setGUIEnabled(java.lang.String variable,
boolean enabled,
java.lang.Object key)
variable - The name of the variable to alterenabled - true to enable, false to disablekey - The locking objectboolean isGUIEnabled(java.lang.String variable)
variable - The variable to query
java.lang.String getPath()
Configurator getParent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||