|
||||||||||
| 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
com.izforge.izpack.panels.userinput.field.check.CheckField
public class CheckField
Check box field.
| Constructor Summary | |
|---|---|
CheckField(CheckFieldConfig config,
InstallData installData)
Constructs a CheckField. |
|
| Method Summary | |
|---|---|
String |
getFalseValue()
Returns the value to assign to the associated variable when the checkbox is selected (i.e. |
boolean |
getInitialSelection()
Returns the initial selection of the check box. |
String |
getTrueValue()
Returns the value to assign to the associated variable when the checkbox is selected (i.e. |
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 com.izforge.izpack.panels.userinput.field.Field |
|---|
getDefaultValue, getDescription, getDescription, getInitialValue, getInstallData, getLabel, getLabel, getOmitFromAuto, getOsModels, getPacks, getProcessors, getSize, getSummaryKey, getTooltip, getValue, getVariable, isConditionTrue, isEffectiveDisplayHidden, isEffectiveReadonly, replaceVariables, setSaving, setValue, setVariable, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckField(CheckFieldConfig config,
InstallData installData)
CheckField.
config - the configuration to get field information frominstallData - the installation data
IzPackException - if the field cannot be read| Method Detail |
|---|
public String getTrueValue()
public String getFalseValue()
public boolean getInitialSelection()
initial value. If this is the same as the
'true value' or "true" then the check box should be selected.
true if the check box should be selected, false if it should be deselected.public String wrapInitialValue(String originalValue)
Fieldset 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".
wrapInitialValue in class FieldoriginalValue - the original value of the set attribute
CheckFieldpublic String wrapDefaultValue(String originalValue)
Fielddefault 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".
wrapDefaultValue in class FieldoriginalValue - the original value of the default attribute
CheckField,
CheckField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||