|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.userinput.field.ElementReader
com.izforge.izpack.panels.userinput.field.FieldReader
public class FieldReader
Field reader.
| Field Summary | |
|---|---|
static String |
OMIT_FROM_AUTO
The omitFromAuto attribute name. |
static String |
SPEC
The field specification element name. |
static String |
VARIABLE
Variable attribute name. |
| Constructor Summary | |
|---|---|
FieldReader(IXMLElement field,
Config config)
Constructs a FieldReader. |
|
| Method Summary | |
|---|---|
String |
getCondition()
Returns the condition that determines if the field is displayed or not. |
String |
getDefaultValue()
Returns the default value of the field without replacing variables. |
String |
getDescription()
Returns the field description. |
String |
getDisplayHiddenCondition()
Returns a condition for which the field should be displayed read-only on the panel regardless if its conditionid is true or false. |
IXMLElement |
getField()
Returns the 'field' element. |
String |
getInitialValue()
Returns the initial value of the field without replacing variables. |
String |
getLabel()
Returns the field label. |
boolean |
getOmitFromAuto()
Returns the value of 'omitFromAuto' from fields spec |
List<OsModel> |
getOsModels()
Returns the operating systems that this field applies to. |
List<String> |
getPacks()
Returns the packs that this field applies to. |
List<FieldProcessor> |
getProcessors()
Returns the processor the field. |
String |
getReadonlyCondition()
Returns a condition for which the field should be displayed read-only. |
int |
getSize()
Returns the field size. |
IXMLElement |
getSpec()
Returns the 'spec' element. |
protected IXMLElement |
getSpec(IXMLElement field,
Config config)
Returns the 'spec' element. |
String |
getSummaryKey()
Returns the summaryKey that the field is associated with. |
protected String |
getText(IXMLElement element)
Extracts the text from an element. |
String |
getTooltip()
Returns the field's tooltip. |
List<FieldValidator> |
getValidators()
Returns the validators for the field. |
List<FieldValidator> |
getValidators(IXMLElement field)
Returns the validators for the field. |
String |
getVariable()
Returns the variable that the field reads and updates. |
Boolean |
isDisplayHidden()
Returns if the field should always be displayed read-only on the panel regardless if its conditionid is true or false. |
Boolean |
isReadonly()
Returns if the field should always be displayed read-only. |
| 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 |
| Field Detail |
|---|
public static final String VARIABLE
public static final String SPEC
public static final String OMIT_FROM_AUTO
| Constructor Detail |
|---|
public FieldReader(IXMLElement field,
Config config)
FieldReader.
field - the field element to readconfig - the configuration| Method Detail |
|---|
public IXMLElement getField()
public IXMLElement getSpec()
null if none is presentpublic boolean getOmitFromAuto()
getOmitFromAuto in interface FieldConfigpublic String getVariable()
null if the variable is optional.
getVariable in interface FieldConfignull if the variable is optional but not present
IzPackException - if the 'variable' attribute is mandatory but not presentpublic String getSummaryKey()
getSummaryKey in interface FieldConfignullpublic Boolean isDisplayHidden()
FieldConfig
isDisplayHidden in interface FieldConfigfalsepublic String getDisplayHiddenCondition()
FieldConfig
getDisplayHiddenCondition in interface FieldConfignullpublic Boolean isReadonly()
FieldConfig
isReadonly in interface FieldConfigfalsepublic String getReadonlyCondition()
FieldConfig
getReadonlyCondition in interface FieldConfignullpublic List<String> getPacks()
getPacks in interface FieldConfigpublic List<OsModel> getOsModels()
getOsModels in interface FieldConfigpublic String getDefaultValue()
getDefaultValue in interface FieldConfignullpublic String getInitialValue()
getInitialValue in interface FieldConfignullpublic int getSize()
getSize in interface FieldConfig-1 if no size is specified, or the specified size is invalidpublic List<FieldValidator> getValidators(IXMLElement field)
getValidators in interface FieldConfigpublic List<FieldValidator> getValidators()
FieldConfig
getValidators in interface FieldConfigpublic List<FieldProcessor> getProcessors()
getProcessors in interface FieldConfignull if none existspublic String getDescription()
getDescription in interface FieldConfigpublic String getTooltip()
getTooltip in interface FieldConfigpublic String getLabel()
getLabel in interface FieldConfignullpublic String getCondition()
getCondition in interface FieldConfignull
protected IXMLElement getSpec(IXMLElement field,
Config config)
field - the parent field elementconfig - the configuration
null if the spec element is optional and not found
IzPackException - if the 'spec' element is mandatory but not presentprotected String getText(IXMLElement element)
id attribute; or
txt.
element - the element from which to extract the text
null if none can be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||