com.izforge.izpack.panels.userinput.field.check
Class CheckFieldReader

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.ElementReader
      extended by com.izforge.izpack.panels.userinput.field.FieldReader
          extended by 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

Field Summary
 
Fields inherited from class com.izforge.izpack.panels.userinput.field.FieldReader
OMIT_FROM_AUTO, SPEC, VARIABLE
 
Constructor Summary
CheckFieldReader(IXMLElement field, Config config)
          Constructs a CheckFieldReader.
 
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 com.izforge.izpack.panels.userinput.field.ElementReader
getComplexPanelCondition, getConfig, getOsModels, getPacks, getUnselectedPacks
 
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
 

Constructor Detail

CheckFieldReader

public CheckFieldReader(IXMLElement field,
                        Config config)
Constructs a CheckFieldReader.

Parameters:
field - the field element
config - the configuration
Method Detail

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.