com.izforge.izpack.panels.userinput.gui
Class GUIFieldFactory

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.gui.GUIFieldFactory

public class GUIFieldFactory
extends Object

Factory for GUIFields.

Author:
Tim Anderson

Constructor Summary
GUIFieldFactory(GUIInstallData installData, IzPanel parent, InstallerFrame frame, Prompt prompt)
          Constructs a GUIFieldFactory.
 
Method Summary
 GUIField create(Field field, UserInputPanelSpec userInputPanelSpec, IXMLElement spec)
          Creates a view to display the supplied field.
 GUIField createCustom(CustomField customField, UserInputPanelSpec userInputPanelSpec, IXMLElement spec)
          Creates a view to display the supplied field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIFieldFactory

public GUIFieldFactory(GUIInstallData installData,
                       IzPanel parent,
                       InstallerFrame frame,
                       Prompt prompt)
Constructs a GUIFieldFactory.

Parameters:
installData - the installation data
parent - the parent panel
frame - the installer frame
prompt - the prompt
Method Detail

create

public GUIField create(Field field,
                       UserInputPanelSpec userInputPanelSpec,
                       IXMLElement spec)
Creates a view to display the supplied field.

Parameters:
field - the field
Returns:
the view to display the field
Throws:
IzPackException - if the view cannot be created

createCustom

public GUIField createCustom(CustomField customField,
                             UserInputPanelSpec userInputPanelSpec,
                             IXMLElement spec)
Creates a view to display the supplied field. This field is a container for fields to be placed in columns.

Parameters:
customField - field of type CustomField
Returns:
the view to display the field
Throws:
IzPackException - if the view cannot be created


Copyright © 2018. All rights reserved.