com.izforge.izpack.installer.console
Class ConsolePanelView

java.lang.Object
  extended by com.izforge.izpack.installer.panel.AbstractPanelView<ConsolePanel>
      extended by com.izforge.izpack.installer.console.ConsolePanelView
All Implemented Interfaces:
PanelView<ConsolePanel>

public class ConsolePanelView
extends AbstractPanelView<ConsolePanel>

Implementation of AbstractPanelView for ConsolePanels.

Author:
Tim Anderson

Constructor Summary
ConsolePanelView(Panel panel, ObjectFactory factory, InstallData installData, Console console)
          Constructs a ConsolePanelView.
 
Method Summary
 void createInstallationRecord(IXMLElement panelRoot)
          Creates an installation record for unattended installations and adds it to a XML root element.
protected  ConsolePanel createView(Panel panel, Class<ConsolePanel> viewClass)
          Creates a new view.
protected  AbstractUIHandler getHandler()
          Returns a handler to prompt the user.
 Class<ConsolePanel> getViewClass()
          Returns the ConsolePanel class corresponding to the panel's class name
 
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, isWarningValid, 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

ConsolePanelView

public ConsolePanelView(Panel panel,
                        ObjectFactory factory,
                        InstallData installData,
                        Console console)
Constructs a ConsolePanelView.

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

getViewClass

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

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

createView

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

Overrides:
createView in class AbstractPanelView<ConsolePanel>
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<ConsolePanel>
Returns:
the handler

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.