|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gridsystems.config.tools.console.Field
com.gridsystems.config.tools.console.ValueField
com.gridsystems.config.tools.console.BoolField
public class BoolField
Specialized field for boolean values. Its execute method switches its value without extra edition.
| Field Summary | |
|---|---|
static java.lang.String |
FALSE
String representation of true value. |
static java.lang.String |
TRUE
String representation of true value. |
| Fields inherited from class com.gridsystems.config.tools.console.ValueField |
|---|
linePattern, trimmed, value, valueFormater, valuePattern, verifier |
| Fields inherited from class com.gridsystems.config.tools.console.Field |
|---|
bundle |
| Constructor Summary | |
|---|---|
BoolField(java.util.ResourceBundle bundle,
java.lang.String linePattern)
Creates a new instance with the specified bundle and pattern. |
|
| Method Summary | |
|---|---|
boolean |
execute(ConsoleConfiguratorView view)
Switches the boolean value to its negative. |
boolean |
getBooleanValue()
Obtains boolean value of this Field. |
java.lang.String |
getStringValue()
Gets the field value as a string. |
void |
setValue(boolean b)
Sets the value of this field. |
void |
setValue(java.lang.Object value)
Sets the value of this field. |
| Methods inherited from class com.gridsystems.config.tools.console.ValueField |
|---|
getContents, getKeyMapping, getValue, getVerifier, isTrimmed, readLine, setKeyMapping, setStringValue, setTrimmed, setVerifier |
| Methods inherited from class com.gridsystems.config.tools.console.Field |
|---|
getString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TRUE
public static final java.lang.String FALSE
| Constructor Detail |
|---|
public BoolField(java.util.ResourceBundle bundle,
java.lang.String linePattern)
bundle - The resource bundlelinePattern - The pattern for field display| Method Detail |
|---|
public void setValue(java.lang.Object value)
setValue in class ValueFieldvalue - The new valuepublic void setValue(boolean b)
b - The new valuepublic java.lang.String getStringValue()
getStringValue in class ValueFieldpublic boolean getBooleanValue()
public boolean execute(ConsoleConfiguratorView view)
To specify an empty value, in trimmed fields a blank space can be used
This method does not return until the default value or a valid one is specified.
execute in interface ConsoleViewActionexecute in class ValueFieldview - The view where this field is located
ConsoleViewAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||