com.izforge.izpack.installer.automation
Class AutomatedPanelView

java.lang.Object
  extended by com.izforge.izpack.installer.panel.AbstractPanelView<PanelAutomation>
      extended by com.izforge.izpack.installer.automation.AutomatedPanelView
All Implemented Interfaces:
PanelView<PanelAutomation>

public class AutomatedPanelView
extends AbstractPanelView<PanelAutomation>

Implementation of AbstractPanelView for AutomatedPanelViews.

Author:
Tim Anderson

Constructor Summary
AutomatedPanelView(Panel panel, ObjectFactory factory, InstallData installData, AbstractUIHandler handler)
          Constructs an AutomatedPanelView.
 
Method Summary
 void createInstallationRecord(IXMLElement panelRoot)
          Creates an installation record for unattended installations and adds it to a XML root element.
protected  PanelAutomation createView(Panel panel, Class<PanelAutomation> viewClass)
          Creates a new view.
protected  AbstractUIHandler getHandler()
          Returns a handler to prompt the user.
 Class<PanelAutomation> getViewClass()
          Returns the PanelAutomation class corresponding to the panel's class name
protected  boolean isWarningValid(String message, boolean defaultAnswer)
          Determines the behaviour when a warning is encountered during validation.
 
Methods inherited from class com.izforge.izpack.installer.panel.AbstractPanelView
canShow, createPanelRootRecord, executePostValidationActions, executePreActivationActions, executePreValidationActions, getFactory, getIndex, getMessage, getPanel, getPanelId, getView, initialise, isValid, isValid, isVisible, saveData, setIndex, setVisible, validateData, validateDynamicConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomatedPanelView

public AutomatedPanelView(Panel panel,
                          ObjectFactory factory,
                          InstallData installData,
                          AbstractUIHandler handler)
Constructs an AutomatedPanelView.

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

getViewClass

public Class<PanelAutomation> getViewClass()
Returns the PanelAutomation class corresponding to the panel's class name

Returns:
the corresponding PanelAutomation implementation class, or null if none is found

createView

protected PanelAutomation createView(Panel panel,
                                     Class<PanelAutomation> viewClass)
Creates a new view.

Overrides:
createView in class AbstractPanelView<PanelAutomation>
Parameters:
panel - the panel to create the view for
viewClass - the view base class
Returns:
the new view

getHandler

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

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

isWarningValid

protected boolean isWarningValid(String message,
                                 boolean defaultAnswer)
Determines the behaviour when a warning is encountered during validation.

Overrides:
isWarningValid in class AbstractPanelView<PanelAutomation>
Parameters:
message - the validation message. May be null
defaultAnswer - the default response for warnings
Returns:
true if the warning doesn't invalidate the panel; false if it does

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.