|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.userinput.field.Field
public abstract class Field
Describes a user input field.
| Constructor Summary | |
|---|---|
Field(FieldConfig config,
InstallData installData)
Constructs a Field. |
|
| Method Summary | |
|---|---|
String |
getDefaultValue()
Returns the default value of the field with resolved variables. |
String |
getDescription()
Returns the field description with resolved variable values. |
String |
getDescription(boolean resolve)
Returns the field description. |
String |
getInitialValue()
Returns the initial value to use for this field with resolved variables. |
InstallData |
getInstallData()
Returns the installation data. |
String |
getLabel()
Returns the field label with resolved variable values. |
String |
getLabel(boolean resolve)
Returns the field label. |
boolean |
getOmitFromAuto()
Returns the value of 'omitFromAuto' from fields spec |
List<OsModel> |
getOsModels()
Returns the operating systems that the field applies to. |
List<String> |
getPacks()
Returns the packs that the field applies to. |
List<FieldProcessor> |
getProcessors()
Returns the field processors. |
int |
getSize()
Returns the field size. |
String |
getSummaryKey()
Returns the summaryKey. |
String |
getTooltip()
Returns the field tooltip with resolved variable values. |
String |
getValue()
Returns the variable value. |
String |
getVariable()
Returns the variable. |
boolean |
isConditionTrue()
Determines if the condition associated with the field is true. |
boolean |
isEffectiveDisplayHidden(boolean defaultFlag,
RulesEngine rules)
Returns an effective value whether a field should be currently displayed read-only if hidden. |
boolean |
isEffectiveReadonly(boolean defaultFlag,
RulesEngine rules)
Returns an effective value whether a field should be currently displayed read-only. |
protected String |
replaceVariables(String value)
Replaces any variables in the supplied value. |
void |
setSaving(boolean flag)
|
void |
setValue(String value)
Sets the variable value. |
void |
setVariable(String newVariableName)
|
ValidationStatus |
validate(String... values)
Validates values using any validators associated with the field. |
ValidationStatus |
validate(ValuesProcessingClient values)
Validates values using any validators associated with the field. |
String |
wrapDefaultValue(String originalValue)
Wrap the default value of a field, which is the value of the default attribute in the field's spec
to the effective value to be assigned to the variable. |
String |
wrapInitialValue(String originalValue)
Wrap the initial value of a field, which is the value of the set attribute in the field's spec to
the effective value to be assigned to the variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Field(FieldConfig config,
InstallData installData)
Field.
config - the field configurationinstallData - the installation data
IzPackException - if the configuration is invalid| Method Detail |
|---|
public String getVariable()
nullpublic boolean getOmitFromAuto()
public String getSummaryKey()
null
public boolean isEffectiveReadonly(boolean defaultFlag,
RulesEngine rules)
false
public boolean isEffectiveDisplayHidden(boolean defaultFlag,
RulesEngine rules)
falsepublic List<String> getPacks()
public List<OsModel> getOsModels()
public String getDefaultValue()
nullpublic String getInitialValue()
public String getValue()
nullpublic void setSaving(boolean flag)
public void setValue(String value)
value - the variable value. May be nullpublic String wrapInitialValue(String originalValue)
set attribute in the field's spec to
the effective value to be assigned to the variable. This can be used for enumeration type conversions.
set attribute in the checkbox user input field has a boolean value, the value should
be wrapped to the value of the true attribute in case of set="true" or to the value of
the false attribute in case of set="false".
originalValue - the original value of the set attribute
CheckFieldpublic String wrapDefaultValue(String originalValue)
default attribute in the field's spec
to the effective value to be assigned to the variable. This can be used for enumeration type conversions.
To be overridden by several user input field types.
set attribute in the checkbox user input field has a boolean value, the value should
be wrapped to the value of the true attribute in case of default="true" or to the
value of the false attribute in case of default="false".
originalValue - the original value of the default attribute
CheckField,
CheckFieldpublic int getSize()
-1 if no size is definedpublic ValidationStatus validate(String... values)
values - the values to validate
public ValidationStatus validate(ValuesProcessingClient values)
values - the values to validate
public List<FieldProcessor> getProcessors()
nullpublic String getLabel()
nullpublic String getLabel(boolean resolve)
resolve - whether the label should be returned with resolved variables
nullpublic String getDescription()
nullpublic String getDescription(boolean resolve)
resolve - whether the description should be returned with resolved variables
nullpublic String getTooltip()
nullpublic boolean isConditionTrue()
true if the condition evaluates {true} or if the field has no conditionpublic InstallData getInstallData()
protected String replaceVariables(String value)
value - the value
public void setVariable(String newVariableName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||