com.izforge.izpack.installer.gui
Class IzPanels

java.lang.Object
  extended by com.izforge.izpack.installer.panel.AbstractPanels<IzPanelView,IzPanel>
      extended by com.izforge.izpack.installer.gui.IzPanels
All Implemented Interfaces:
Panels, PanelViews<IzPanelView,IzPanel>

public class IzPanels
extends AbstractPanels<IzPanelView,IzPanel>

Implementation of AbstractPanels for IzPanel.

Author:
Tim Anderson

Constructor Summary
IzPanels(List<IzPanelView> panels, Container container, GUIInstallData installData)
          Constructs a IzPanels.
 
Method Summary
 void initialise()
          Initialises the IzPanel instances.
 boolean isBack()
          Determines if the current panel switch is navigating backwards or forwards.
 void setListener(IzPanelsListener listener)
          Sets the listener to notify of events.
protected  boolean switchPanel(IzPanelView newPanel, IzPanelView 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

IzPanels

public IzPanels(List<IzPanelView> panels,
                Container container,
                GUIInstallData installData)
Constructs a IzPanels.

Parameters:
panels - the panels
container - the container to register IzPanels with
installData - the installation data
Method Detail

initialise

public void initialise()
Initialises the IzPanel instances.


setListener

public void setListener(IzPanelsListener listener)
Sets the listener to notify of events.

Parameters:
listener - the listener. May be null

isBack

public boolean isBack()
Determines if the current panel switch is navigating backwards or forwards.

Returns:
true if the current panel switch is navigating backwards, false if navigating forwards or no panel switch is in progress

switchPanel

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

Specified by:
switchPanel in class AbstractPanels<IzPanelView,IzPanel>
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.