com.izforge.izpack.installer.panel
Interface PanelViews<T extends AbstractPanelView<V>,V>

All Superinterfaces:
Panels
All Known Implementing Classes:
AbstractPanels, AutomatedPanels, ConsolePanels, IzPanels

public interface PanelViews<T extends AbstractPanelView<V>,V>
extends Panels

Manages navigation between panels, providing access to the view of each panel.

Author:
Tim Anderson

Method Summary
 T getPanelView()
          Returns the current panel view.
 List<T> getPanelViews()
          Returns the panel views.
 V getView()
          Returns the current view.
 int getVisibleIndex(T panel)
          Returns the index of a visible panel, relative to other visible panels.
 void writeInstallationRecord(File file, UninstallData uninstallData)
          Writes an XML tree to a file.
 
Methods inherited from interface com.izforge.izpack.installer.panel.Panels
getIndex, getNext, getNext, getPanel, getPanels, getPrevious, getPrevious, getVisible, hasNext, hasPrevious, isValid, next, next, previous, previous
 

Method Detail

getPanelViews

List<T> getPanelViews()
Returns the panel views.

Returns:
the panel views

getView

V getView()
Returns the current view.

Returns:
the current view, or null if there is none

getPanelView

T getPanelView()
Returns the current panel view.

Returns:
the current panel view, or null if there is none

getVisibleIndex

int getVisibleIndex(T panel)
Returns the index of a visible panel, relative to other visible panels.

Parameters:
panel - the panel
Returns:
the panel's visible index, or -1 if the panel is not visible

writeInstallationRecord

void writeInstallationRecord(File file,
                             UninstallData uninstallData)
                             throws Exception
Writes an XML tree to a file.

Parameters:
file - file of where the auto-install will be placed
uninstallData - used to ensure that the file will be removed by the uninstaller
Throws:
Exception


Copyright © 2018. All rights reserved.