com.izforge.izpack.panels.userinput.field
Class SimpleFieldReader

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.SimpleFieldReader
All Implemented Interfaces:
FieldConfig
Direct Known Subclasses:
ButtonFieldReader, DividerReader, StaticTextFieldReader, TitleFieldReader

public class SimpleFieldReader
extends FieldReader

A field reader where the 'variable' is optional, and the 'spec' element ignored.

Author:
Tim Anderson

Field Summary
 
Fields inherited from class com.izforge.izpack.panels.userinput.field.FieldReader
OMIT_FROM_AUTO, SPEC, VARIABLE
 
Constructor Summary
SimpleFieldReader(IXMLElement field, Config config)
          Constructs a SimpleFieldReader.
 
Method Summary
 boolean getOmitFromAuto()
          Returns the value of 'omitFromAuto' from fields spec.
protected  IXMLElement getSpec(IXMLElement field, Config config)
          Returns the 'spec' element.
 String getVariable()
          Returns the variable that the field reads and updates.
 
Methods inherited from class com.izforge.izpack.panels.userinput.field.FieldReader
getCondition, getDefaultValue, getDescription, getDisplayHiddenCondition, getField, getInitialValue, getLabel, getOsModels, getPacks, getProcessors, getReadonlyCondition, getSize, getSpec, getSummaryKey, getText, getTooltip, getValidators, getValidators, 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
 

Constructor Detail

SimpleFieldReader

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

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

getVariable

public String getVariable()
Returns the variable that the field reads and updates.

Specified by:
getVariable in interface FieldConfig
Overrides:
getVariable in class FieldReader
Returns:
the 'variable' attribute, or null if the variable is not present

getSpec

protected IXMLElement getSpec(IXMLElement field,
                              Config config)
Returns the 'spec' element.

Overrides:
getSpec in class FieldReader
Parameters:
field - the parent field element
config - the configuration
Returns:
null

getOmitFromAuto

public boolean getOmitFromAuto()
Returns the value of 'omitFromAuto' from fields spec.

Specified by:
getOmitFromAuto in interface FieldConfig
Overrides:
getOmitFromAuto in class FieldReader
Returns:
the 'omitFromAuto' attribute


Copyright © 2018. All rights reserved.