com.izforge.izpack.panels.userinput.field
Interface ChoiceFieldConfig

All Superinterfaces:
FieldConfig
All Known Implementing Classes:
SimpleChoiceReader

public interface ChoiceFieldConfig
extends FieldConfig

Configuration for fields that have a set of pre-defined choices.

Author:
Tim Anderson

Method Summary
 List<Choice> getChoices()
          Returns the choices.
 int getSelectedIndex(String variable)
          Returns the index of the selected choice.
 
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
 

Method Detail

getChoices

List<Choice> getChoices()
Returns the choices.

Returns:
the choices

getSelectedIndex

int getSelectedIndex(String variable)
Returns the index of the selected choice.

Returns:
the selected index or -1 if no choice is selected


Copyright © 2018. All rights reserved.