com.izforge.izpack.panels.userinput.field.check
Class CheckFieldReader
java.lang.Object
com.izforge.izpack.panels.userinput.field.ElementReader
com.izforge.izpack.panels.userinput.field.FieldReader
com.izforge.izpack.panels.userinput.field.check.CheckFieldReader
- All Implemented Interfaces:
- CheckFieldConfig, FieldConfig
public class CheckFieldReader
- extends FieldReader
- implements CheckFieldConfig
A reader for 'check' fields.
- Author:
- Tim Anderson
|
Method Summary |
String |
getFalseValue()
Returns the value to assign to the associated variable when the checkbox is not selected (i.e. |
String |
getTrueValue()
Returns the value to assign to the associated variable when the checkbox is selected (i.e. |
| Methods inherited from class com.izforge.izpack.panels.userinput.field.FieldReader |
getCondition, getDefaultValue, getDescription, getDisplayHiddenCondition, getField, getInitialValue, getLabel, getOmitFromAuto, getOsModels, getPacks, getProcessors, getReadonlyCondition, getSize, getSpec, getSpec, getSummaryKey, getText, getTooltip, getValidators, getValidators, getVariable, isDisplayHidden, isReadonly |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.izforge.izpack.panels.userinput.field.FieldConfig |
getCondition, getDefaultValue, getDescription, getDisplayHiddenCondition, getInitialValue, getLabel, getOmitFromAuto, getOsModels, getPacks, getProcessors, getReadonlyCondition, getSize, getSummaryKey, getTooltip, getValidators, getValidators, getVariable, isDisplayHidden, isReadonly |
CheckFieldReader
public CheckFieldReader(IXMLElement field,
Config config)
- Constructs a
CheckFieldReader.
- Parameters:
field - the field elementconfig - the configuration
getTrueValue
public String getTrueValue()
- Returns the value to assign to the associated variable when the checkbox is selected (i.e. is 'true').
- Specified by:
getTrueValue in interface CheckFieldConfig
- Returns:
- the 'true' value. May be
null
getFalseValue
public String getFalseValue()
- Returns the value to assign to the associated variable when the checkbox is not selected (i.e. is 'false').
- Specified by:
getFalseValue in interface CheckFieldConfig
- Returns:
- the 'false' value
Copyright © 2018. All rights reserved.