com.izforge.izpack.installer.gui
Class IzPanelView

java.lang.Object
  extended by com.izforge.izpack.installer.panel.AbstractPanelView<IzPanel>
      extended by com.izforge.izpack.installer.gui.IzPanelView
All Implemented Interfaces:
PanelView<IzPanel>

public class IzPanelView
extends AbstractPanelView<IzPanel>

Implementation of AbstractPanelView for IzPanels.

Author:
Tim Anderson

Constructor Summary
IzPanelView(Panel panel, ObjectFactory factory, InstallData installData)
          Constructs a IzPanelView.
 
Method Summary
 void createInstallationRecord(IXMLElement panelRoot)
          Creates an installation record for unattended installations and adds it to a XML root element.
protected  AbstractUIHandler getHandler()
          Returns a handler to prompt the user.
protected  void initialise(IzPanel view, Panel panel, InstallData installData)
          Initialises the view.
 boolean isValid()
          Determines if the panel is valid.
 void saveData()
          Saves the contents of the panel into install data.
protected  boolean validateData()
          Evaluates the panel data validator.
 
Methods inherited from class com.izforge.izpack.installer.panel.AbstractPanelView
canShow, createPanelRootRecord, createView, executePostValidationActions, executePreActivationActions, executePreValidationActions, getFactory, getIndex, getMessage, getPanel, getPanelId, getView, isValid, isVisible, isWarningValid, setIndex, setVisible, validateDynamicConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IzPanelView

public IzPanelView(Panel panel,
                   ObjectFactory factory,
                   InstallData installData)
Constructs a IzPanelView.

Parameters:
panel - the panel
factory - the factory for creating the view
installData - the installation data
Method Detail

isValid

public boolean isValid()
Determines if the panel is valid.

Specified by:
isValid in interface PanelView<IzPanel>
Overrides:
isValid in class AbstractPanelView<IzPanel>
Returns:
true if the panel is valid

saveData

public void saveData()
Saves the contents of the panel into install data.

Specified by:
saveData in interface PanelView<IzPanel>
Overrides:
saveData in class AbstractPanelView<IzPanel>

getHandler

protected AbstractUIHandler getHandler()
Returns a handler to prompt the user.

Specified by:
getHandler in class AbstractPanelView<IzPanel>
Returns:
the handler

initialise

protected void initialise(IzPanel view,
                          Panel panel,
                          InstallData installData)
Initialises the view.

Overrides:
initialise in class AbstractPanelView<IzPanel>
Parameters:
view - the view to initialise
panel - the panel the view represents
installData - the installation data

validateData

protected boolean validateData()
Evaluates the panel data validator.
This implementation sets a busy cursor while evaluating conditions.

Overrides:
validateData in class AbstractPanelView<IzPanel>
Returns:
true if the validator evaluated successfully, or with a warning that the user chose to skip; otherwise false

createInstallationRecord

public void createInstallationRecord(IXMLElement panelRoot)
Description copied from interface: PanelView
Creates an installation record for unattended installations and adds it to a XML root element.

Parameters:
panelRoot - the root to add child elements to


Copyright © 2018. All rights reserved.