|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.izforge.izpack.installer.gui.InstallerFrame
public class InstallerFrame
The IzPack installer frame.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JPanel |
contentPane
The frame content pane. |
protected ArrayList<GUIListener> |
guiListener
Registered GUICreationListener. |
protected JComponent |
headingCounterComponent
The heading counter component. |
protected JLabel[] |
headingLabels
Heading major text. |
protected JPanel |
headingPanel
Panel which contains the heading text and/or icon |
protected JButton |
helpButton
The help button. |
protected JPanel |
panelsContainer
The panels container. |
protected RulesEngine |
rules
conditions |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
InstallerFrame(GUIInstallData installData,
RulesEngine rules,
IconsDatabase icons,
IzPanels panels,
UninstallDataWriter uninstallDataWriter,
ResourceManager resourceManager,
UninstallData uninstallData,
Housekeeper housekeeper,
DefaultNavigator navigator,
Log log,
Locales locales)
Constructs an InstallerFrame. |
|
| Method Summary | |
|---|---|
void |
addGuiListener(GUIListener listener)
Add a listener to the listener list. |
void |
blockGUI()
Blocks GUI interaction. |
void |
buildGUI()
Builds the GUI. |
void |
centerFrame(Window frame)
Centers a window on screen. |
void |
exit()
Exits the installer, if quit is enabled. |
Debugger |
getDebugger()
|
List<GUIListener> |
getGuiListener()
Returns the gui creation listener list. |
IconsDatabase |
getIcons()
|
Messages |
getMessages()
Returns the locale-specific messages. |
Navigator |
getNavigator()
Returns the panel navigator. |
Dimension |
getPanelsContainerSize()
Returns the panels container size. |
String |
getTitle()
|
void |
install(ProgressListener listener)
Launches the installation. |
boolean |
isHeading(IzPanel caller)
Returns whether this installer frame uses with the given panel a separated heading panel or not. |
void |
lockNextButton()
Locks the 'next' button. |
void |
lockPrevButton()
Locks the 'previous' button. |
void |
lockQuitButton()
Locks the 'Quit' button. |
void |
navigateNext()
This function moves to the next panel |
void |
navigatePrevious()
This function moves to the previous panel |
void |
releaseGUI()
Releases GUI interaction. |
void |
setIcons(IconsDatabase icons)
|
void |
setQuitButtonIcon(String iconName)
Sets a new icon into the quit button if icons should be used, else nothing will be done. |
void |
setQuitButtonText(String text)
Changes the quit button text. |
void |
setUnpacker(IUnpacker unpacker)
Sets the unpacker. |
void |
showHelp()
Show help Window |
void |
sizeFrame()
|
void |
skipPanel()
Allows a panel to ask to be skipped. |
protected void |
switchPanel(IzPanelView newPanel,
IzPanelView oldPanel)
Switches the current panel. |
void |
unlockNextButton()
Unlocks the 'next' button. |
void |
unlockNextButton(boolean requestFocus)
Unlocks the 'next' button. |
void |
unlockPrevButton()
Unlocks the 'previous' button. |
void |
unlockQuitButton()
Unlocks the 'Quit' button. |
void |
updateProgressBar(int maximum,
int value,
String message)
|
void |
updateProgressCounter(String message)
|
protected void |
wipeAborted()
Wipes the written files when you abort the installation. |
void |
writeInstallationRecord(File file,
UninstallData uninstallData)
Writes the installation record to a file. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
protected JPanel panelsContainer
protected JPanel contentPane
protected JButton helpButton
protected final ArrayList<GUIListener> guiListener
protected JLabel[] headingLabels
protected JPanel headingPanel
protected JComponent headingCounterComponent
protected final RulesEngine rules
| Constructor Detail |
|---|
public InstallerFrame(GUIInstallData installData,
RulesEngine rules,
IconsDatabase icons,
IzPanels panels,
UninstallDataWriter uninstallDataWriter,
ResourceManager resourceManager,
UninstallData uninstallData,
Housekeeper housekeeper,
DefaultNavigator navigator,
Log log,
Locales locales)
installData - the installation datarules - the rules engineicons - the icons databasepanels - the panelsuninstallDataWriter - the uninstallation data writerresourceManager - the resourcesuninstallData - the uninstallation datahousekeeper - the house-keepernavigator - the panel navigatorlog - the log| Method Detail |
|---|
public void setUnpacker(IUnpacker unpacker)
unpacker - the unpackerpublic void sizeFrame()
sizeFrame in interface InstallerViewpublic Debugger getDebugger()
public void buildGUI()
public Navigator getNavigator()
protected void switchPanel(IzPanelView newPanel,
IzPanelView oldPanel)
newPanel - the new paneloldPanel - the old panel. May be nullpublic void centerFrame(Window frame)
frame - The window tp center.public Dimension getPanelsContainerSize()
public void exit()
protected void wipeAborted()
public void install(ProgressListener listener)
listener - The installation listener.
public void writeInstallationRecord(File file,
UninstallData uninstallData)
throws Exception
writeInstallationRecord in interface InstallerBasefile - The file to write to.uninstallData - The uninstall data.
Exception - Description of the Exceptionpublic void setQuitButtonText(String text)
text - text to be used for changespublic void setQuitButtonIcon(String iconName)
iconName - name of the icon to be usedpublic void blockGUI()
public void releaseGUI()
public void lockPrevButton()
lockPrevButton in interface InstallerViewpublic void lockNextButton()
lockNextButton in interface InstallerViewpublic void lockQuitButton()
lockQuitButton in interface InstallerViewpublic void unlockPrevButton()
unlockPrevButton in interface InstallerViewpublic void unlockNextButton()
unlockNextButton in interface InstallerViewpublic void unlockQuitButton()
unlockQuitButton in interface InstallerViewpublic void unlockNextButton(boolean requestFocus)
unlockNextButton in interface InstallerViewrequestFocus - if true focus goes to nextButtonpublic void skipPanel()
public void navigateNext()
navigateNext in interface InstallerViewpublic void navigatePrevious()
navigatePrevious in interface InstallerViewpublic void showHelp()
showHelp in interface InstallerViewpublic Messages getMessages()
public IconsDatabase getIcons()
public void setIcons(IconsDatabase icons)
public List<GUIListener> getGuiListener()
public void addGuiListener(GUIListener listener)
listener - to be added as gui creation listenerpublic boolean isHeading(IzPanel caller)
caller - the IzPanel for which heading should be resolved
public void updateProgressCounter(String message)
public void updateProgressBar(int maximum,
int value,
String message)
public String getTitle()
getTitle in class Frame
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||