com.izforge.izpack.panels.userinput.gui.custom
Class GUICustomField

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.AbstractFieldView
      extended by com.izforge.izpack.panels.userinput.gui.GUIField
          extended by 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 | |==============================|


Constructor Summary
GUICustomField(CustomField customField, FieldCommand createField, UserInputPanelSpec userInputPanelSpec, IXMLElement spec, GUIInstallData installData, IzPanel parent)
           
 
Method Summary
 JComponent getFirstFocusableComponent()
          Return a JComponent of this field which is the primary candidate to gain focus.
 List<String> getLabels()
           
 List<String> getVariables()
          Get all the variables from the custom fields.
 boolean updateField(Prompt prompt, boolean skipValidation)
          Updates the field from the view.
 
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 com.izforge.izpack.panels.userinput.field.AbstractFieldView
getField, getSummaryKey, getVariable, isDisplayed, isReadonly, setDisplayed, setReadonly, setVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUICustomField

public GUICustomField(CustomField customField,
                      FieldCommand createField,
                      UserInputPanelSpec userInputPanelSpec,
                      IXMLElement spec,
                      GUIInstallData installData,
                      IzPanel parent)
Method Detail

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.