com.izforge.izpack.panels.userinput.field
Class UserInputPanelSpec

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.UserInputPanelSpec

public class UserInputPanelSpec
extends Object

The user input panel specification.

Author:
Tim Anderson

Field Summary
static String FIELD
          Field element name.
static String LANG_FILE_NAME
          The user input language pack resource name.
static String PANEL
          Panel element name.
static String SPEC_FILE_NAME
          The name of the XML file that specifies the panel layout.
 
Constructor Summary
UserInputPanelSpec(Resources resources, InstallData installData, ObjectFactory factory, PlatformModelMatcher matcher)
          Constructs a UserInputPanelSpec.
 
Method Summary
 List<Field> createFields(IXMLElement panel)
          Creates fields for each field configuration in the panel.
 Config getConfig()
          Returns the configuration.
 IXMLElement getPanelSpec(Panel panel)
          Returns the specification for the supplied panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPEC_FILE_NAME

public static final String SPEC_FILE_NAME
The name of the XML file that specifies the panel layout.

See Also:
Constant Field Values

LANG_FILE_NAME

public static final String LANG_FILE_NAME
The user input language pack resource name.

See Also:
Constant Field Values

PANEL

public static final String PANEL
Panel element name.

See Also:
Constant Field Values

FIELD

public static final String FIELD
Field element name.

See Also:
Constant Field Values
Constructor Detail

UserInputPanelSpec

public UserInputPanelSpec(Resources resources,
                          InstallData installData,
                          ObjectFactory factory,
                          PlatformModelMatcher matcher)
Constructs a UserInputPanelSpec.

Parameters:
resources - the resources
installData - the installation data
factory - the factory
matcher - the platform-model matcher
Method Detail

getPanelSpec

public IXMLElement getPanelSpec(Panel panel)
Returns the specification for the supplied panel.

Parameters:
panel - the panel
Returns:
the corresponding specification
Throws:
IzPackException - if there is no specification for the panel

createFields

public List<Field> createFields(IXMLElement panel)
Creates fields for each field configuration in the panel.

Parameters:
panel - the panel configuration
Returns:
the fields

getConfig

public Config getConfig()
Returns the configuration.

Returns:
the configuration


Copyright © 2018. All rights reserved.