com.izforge.izpack.installer.console
Class ConsolePanels

java.lang.Object
  extended by com.izforge.izpack.installer.panel.AbstractPanels<ConsolePanelView,ConsolePanel>
      extended by com.izforge.izpack.installer.console.ConsolePanels
All Implemented Interfaces:
Panels, PanelViews<ConsolePanelView,ConsolePanel>

public class ConsolePanels
extends AbstractPanels<ConsolePanelView,ConsolePanel>

Implementation of Panels for ConsolePanelView.

Author:
Tim Anderson

Constructor Summary
ConsolePanels(List<ConsolePanelView> panels, Container container, InstallData installData)
          Constructs a ConsolePanels.
 
Method Summary
 void initialise()
          Initialises the ConsolePanelView instances.
 void setAction(ConsoleAction action)
          Sets the action to invoke when switching panels.
protected  boolean switchPanel(ConsolePanelView newPanel, ConsolePanelView oldPanel)
          Switches panels.
 
Methods inherited from class com.izforge.izpack.installer.panel.AbstractPanels
executeValidationActions, getIndex, getNext, getNext, getPanel, getPanels, getPanelView, getPanelViews, getPrevious, getPrevious, getView, getVisible, getVisibleIndex, hasNext, hasPrevious, isValid, next, next, previous, previous, switchPanel, writeInstallationRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsolePanels

public ConsolePanels(List<ConsolePanelView> panels,
                     Container container,
                     InstallData installData)
Constructs a ConsolePanels.

Parameters:
panels - the panels
container - the container to get instances from
installData - install data
Method Detail

initialise

public void initialise()
Initialises the ConsolePanelView instances.


setAction

public void setAction(ConsoleAction action)
Sets the action to invoke when switching panels.

Parameters:
action - the action

switchPanel

protected boolean switchPanel(ConsolePanelView newPanel,
                              ConsolePanelView oldPanel)
Switches panels.

Specified by:
switchPanel in class AbstractPanels<ConsolePanelView,ConsolePanel>
Parameters:
newPanel - the panel to switch to
oldPanel - the panel to switch from, or null if there was no prior panel
Returns:
true if the switch was successful


Copyright © 2018. All rights reserved.