com.izforge.izpack.panels.userinput.gui.custom
Class GUICustomField
java.lang.Object
com.izforge.izpack.panels.userinput.field.AbstractFieldView
com.izforge.izpack.panels.userinput.gui.GUIField
com.izforge.izpack.panels.userinput.gui.custom.GUICustomField
- All Implemented Interfaces:
- CustomFieldType, FieldView
public class GUICustomField
- extends GUIField
- implements CustomFieldType
JPanel that contains the possible rows of fields defined by the user,
along with control buttons to add and remove rows.
GUICustomField
===============================|
|CustomInputRows |
|------------------------------|
| Row 1 |
| Row 2 |
|------------------------------|
|ControlButtons |
|------------------------------|
| | Add | Remove |
|==============================|
| Methods inherited from class com.izforge.izpack.panels.userinput.gui.GUIField |
addComponent, addDescription, addField, addLabel, addLabel, addText, addTooltip, getComponents, getInstallData, notifyUpdateListener, replaceVariables, setUpdateListener, translateStaticText, updateField, updateView, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUICustomField
public GUICustomField(CustomField customField,
FieldCommand createField,
UserInputPanelSpec userInputPanelSpec,
IXMLElement spec,
GUIInstallData installData,
IzPanel parent)
getLabels
public List<String> getLabels()
getVariables
public List<String> getVariables()
- Description copied from interface:
CustomFieldType
- Get all the variables from the custom fields.
- Specified by:
getVariables in interface CustomFieldType
- Returns:
updateField
public boolean updateField(Prompt prompt,
boolean skipValidation)
- Description copied from class:
GUIField
- Updates the field from the view.
This implementation simply returns
true.
- Overrides:
updateField in class GUIField
- Parameters:
prompt - the prompt to display messages
- Returns:
true if the field was updated, false if the view is invalid
getFirstFocusableComponent
public JComponent getFirstFocusableComponent()
- Description copied from class:
GUIField
- Return a
JComponent of this field which is the primary candidate to gain focus.
- Specified by:
getFirstFocusableComponent in class GUIField
- Returns:
- the primary
JComponent to gain focus
Copyright © 2018. All rights reserved.