com.izforge.izpack.installer.gui
Interface Navigator

All Known Implementing Classes:
DefaultNavigator

public interface Navigator

Panel navigator.

Author:
Tim Anderson

Method Summary
 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 previous()
          Navigates to the previous panel.
 void quit()
          Quits installation, if quit is enabled, and installation is complete.
 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.
 

Method Detail

isNextEnabled

boolean isNextEnabled()
Determines if the next panel may be navigated to.

Returns:
true if the next panel may be navigated to

setNextEnabled

void setNextEnabled(boolean enable)
Determines if the next panel may be navigated to.

Parameters:
enable - if true, enable navigation, otherwise disable it

setNextVisible

void setNextVisible(boolean visible)
Makes the 'next' button visible or invisible.

Parameters:
visible - if true makes the button visible, otherwise makes it invisible.

setNextText

void setNextText(String text)
Sets the text for the 'next' button.

Parameters:
text - the button text. May be null

setNextIcon

void setNextIcon(Icon icon)
Sets the icon for the 'next' button.

Parameters:
icon - the icon. May be null

isPreviousEnabled

boolean isPreviousEnabled()
Determines if the previous panel may be navigated to.

Returns:
true if the previous panel may be navigated to

setPreviousEnabled

void setPreviousEnabled(boolean enable)
Determines if the previous panel may be navigated to.

Parameters:
enable - if true, enable navigation, otherwise disable it

setPreviousVisible

void setPreviousVisible(boolean visible)
Makes the 'previous' button visible/invisible.

Parameters:
visible - if true makes the button visible, otherwise makes it invisible.

setPreviousText

void setPreviousText(String text)
Sets the text for the 'previous' button.

Parameters:
text - the button text. May be null

setPreviousIcon

void setPreviousIcon(Icon icon)
Sets the icon for the 'previous' button.

Parameters:
icon - the icon. May be null

isQuitEnabled

boolean isQuitEnabled()
Determines if the 'quit' button is enabled.

Returns:
true if the 'quit' button is enabled

setQuitEnabled

void setQuitEnabled(boolean enable)
Determines if the 'quit' button is enabled.

Parameters:
enable - if true, enable quit, otherwise disable it

setQuitVisible

void setQuitVisible(boolean visible)
Makes the 'quit' button visible/invisible.

Parameters:
visible - if true makes the button visible, otherwise makes it invisible.

setQuitText

void setQuitText(String text)
Sets the text for the 'quit' button.

Parameters:
text - the button text. May be null

setQuitIcon

void setQuitIcon(Icon icon)
Sets the icon for the 'quit' button.

Parameters:
icon - the icon. May be null

next

boolean next()
Navigates to the next panel.

Returns:
true if the next panel was displayed, or false if the last panel is displayed

previous

boolean previous()
Navigates to the previous panel.

Returns:
true if the previous panel was displayed, or false if the first panel is displayed

quit

void quit()
Quits installation, if quit is enabled, and installation is complete.

This method does not return if the quit is accepted.



Copyright © 2018. All rights reserved.