|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.installer.gui.DefaultNavigator
public class DefaultNavigator
Default implementation of Navigator.
| Constructor Summary | |
|---|---|
DefaultNavigator(Panels panels,
IconsDatabase icons,
GUIInstallData installData)
Constructs a DefaultNavigator. |
|
| Method Summary | |
|---|---|
protected JButton |
getNext()
Returns the button to navigate to the next panel. |
protected JButton |
getPrevious()
Returns the button to navigate to the previous panel. |
protected JButton |
getQuit()
Returns the button to quit installation. |
boolean |
isNextEnabled()
Determines if the next panel may be navigated to. |
boolean |
isPreviousEnabled()
Determines if the previous panel may be navigated to. |
boolean |
isQuitEnabled()
Determines if the 'quit' button is enabled. |
boolean |
next()
Navigates to the next panel. |
boolean |
next(boolean validate)
Navigates to the next panel. |
boolean |
previous()
Navigates to the previous panel. |
void |
quit()
Quits installation, if quit is enabled, and installation is complete. |
void |
reserveNavigatorButtonMnemonics()
Call to reserve mnemonics for the buttons used by the navigator. |
protected JButton |
setDefaultButton()
Sets the default button. |
void |
setInstallerFrame(InstallerFrame frame)
Registers the parent installer frame. |
void |
setNextEnabled(boolean enable)
Determines if the next panel may be navigated to. |
void |
setNextIcon(Icon icon)
Sets the icon for the 'next' button. |
void |
setNextText(String text)
Sets the text for the 'next' button. |
void |
setNextVisible(boolean visible)
Makes the next button visible or invisible. |
void |
setPreviousEnabled(boolean enable)
Determines if the previous panel may be navigated to. |
void |
setPreviousIcon(Icon icon)
Sets the icon for the 'previous' button. |
void |
setPreviousText(String text)
Sets the text for the 'previous' button. |
void |
setPreviousVisible(boolean visible)
Makes the previous button visible/invisible. |
void |
setQuitEnabled(boolean enable)
Determines if the 'quit' button is enabled. |
void |
setQuitIcon(Icon icon)
Sets the icon for the 'quit' button. |
void |
setQuitText(String text)
Sets the text for the 'quit' button. |
void |
setQuitVisible(boolean visible)
Makes the 'quit' button visible/invisible. |
protected void |
updateButtonText(Messages messages)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultNavigator(Panels panels,
IconsDatabase icons,
GUIInstallData installData)
DefaultNavigator.
panels - the panelsicons - the iconsinstallData - the installation data| Method Detail |
|---|
protected void updateButtonText(Messages messages)
public void reserveNavigatorButtonMnemonics()
public void setInstallerFrame(InstallerFrame frame)
frame - the frame.public boolean isNextEnabled()
isNextEnabled in interface Navigatortrue if the next panel may be navigated topublic void setNextEnabled(boolean enable)
setNextEnabled in interface Navigatorenable - if true, enable navigation, otherwise disable itpublic void setNextVisible(boolean visible)
setNextVisible in interface Navigatorvisible - if true makes the button visible, otherwise makes it invisible.public void setNextText(String text)
setNextText in interface Navigatortext - the button text. May be nullpublic void setNextIcon(Icon icon)
setNextIcon in interface Navigatoricon - the icon. May be nullpublic boolean isPreviousEnabled()
isPreviousEnabled in interface Navigatortrue if the previous panel may be navigated topublic void setPreviousEnabled(boolean enable)
setPreviousEnabled in interface Navigatorenable - if true, enable navigation, otherwise disable itpublic void setPreviousVisible(boolean visible)
setPreviousVisible in interface Navigatorvisible - if true makes the button visible, otherwise makes it invisible.public void setPreviousText(String text)
setPreviousText in interface Navigatortext - the button text. May be nullpublic void setPreviousIcon(Icon icon)
setPreviousIcon in interface Navigatoricon - the icon. May be nullpublic boolean isQuitEnabled()
isQuitEnabled in interface Navigatortrue if the 'quit' button is enabledpublic void setQuitEnabled(boolean enable)
setQuitEnabled in interface Navigatorenable - if true, enable quit, otherwise disable itpublic void setQuitVisible(boolean visible)
setQuitVisible in interface Navigatorvisible - if true makes the button visible, otherwise makes it invisible.public void setQuitText(String text)
setQuitText in interface Navigatortext - the button text. May be nullpublic void setQuitIcon(Icon icon)
setQuitIcon in interface Navigatoricon - the icon. May be nullpublic boolean next()
next in interface Navigatortrue if the next panel was displayed, or false if the last panel is displayedpublic boolean next(boolean validate)
validate - if true, only move to the next panel if validation succeeds
true if the next panel was navigated topublic boolean previous()
previous in interface Navigatortrue if the previous panel was displayed, or false if the first panel is displayedpublic void quit()
quit in interface Navigatorprotected JButton getNext()
protected JButton getPrevious()
protected JButton getQuit()
protected JButton setDefaultButton()
null if the buttons aren't enabled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||