|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.config.Parameter
com.threerings.config.Parameter.Choice
public static class Parameter.Choice
A parameter that allows choosing between several options.
| Nested Class Summary | |
|---|---|
class |
Parameter.Choice.Option
An option available for selection. |
| Nested classes/interfaces inherited from class com.threerings.config.Parameter |
|---|
Parameter.Choice, Parameter.Direct, Parameter.Translated |
| Field Summary | |
|---|---|
String |
choice
The selected option. |
Parameter.Direct[] |
directs
The direct controls for each option. |
Parameter.Choice.Option[] |
options
The options available for selection. |
| Fields inherited from class com.threerings.config.Parameter |
|---|
name |
| Constructor Summary | |
|---|---|
Parameter.Choice(ParameterizedConfig outer)
|
|
| Method Summary | |
|---|---|
String[] |
getChoiceOptions()
Returns the names of the options available for selection. |
Object |
getOuter()
Returns a reference to the outer object. |
void |
invalidateProperties()
Invalidates the properties, forcing them to be recreated. |
void |
setOuter(Object outer)
Sets the outer object reference. |
void |
validateOuters(String where,
ParameterizedConfig outer)
Validates the parameter's outer object references. |
boolean |
validatePaths(String where,
ParameterizedConfig reference,
PrintStream out)
Validates the parameter's paths. |
| Methods inherited from class com.threerings.config.Parameter |
|---|
getArgumentProperty, getProperty |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Editable public Parameter.Direct[] directs
@Editable(depends="directs") public Parameter.Choice.Option[] options
@Editable(editor="choice",
depends="options")
public String choice
| Constructor Detail |
|---|
public Parameter.Choice(ParameterizedConfig outer)
| Method Detail |
|---|
public String[] getChoiceOptions()
public void setOuter(Object outer)
Inner
setOuter in interface Innerpublic Object getOuter()
Inner
getOuter in interface Innerpublic void invalidateProperties()
Parameter
invalidateProperties in class Parameter
public boolean validatePaths(String where,
ParameterizedConfig reference,
PrintStream out)
Parameter
validatePaths in class Parameter
public void validateOuters(String where,
ParameterizedConfig outer)
Parameter
validateOuters in class Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||