|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.install4j.api.beans.AbstractBean
com.install4j.api.screens.AbstractInstallerScreen
public abstract class AbstractInstallerScreen
Abstract base class for installer screens. All methods that have a reasonable default answer are overridden in the class. This class saves the installer context that is set by the framework and provides a getter for it.
| Constructor Summary | |
|---|---|
AbstractInstallerScreen()
|
|
| Method Summary | |
|---|---|
void |
activated()
Called by the framework just after the screen has been activated. |
boolean |
cancel()
Called when the user clicks the "Cancel" button for this screen. |
void |
deactivated()
Called by the framework just after the screen has been deactivated. |
InstallerContext |
getInstallerContext()
Returns the InstallerContext that the framework has associated with this custom screen in setInstallerContext. |
ProgressInterface |
getProgressInterface(ProgressInterface defaultProgressInterface)
Replace the default prorgess interface for actions with a custom progress interface. |
boolean |
handleConsole(Console console)
Handle the console mode. |
boolean |
handleUnattended()
Handle the unattended mode. |
boolean |
hasTitlePanel()
This method is called by the framework to determine if this screen wants a title area or not. |
boolean |
isCancelVisible()
Returns whether the "Cancel" button is visible or not for this screen. |
boolean |
isHidden()
Returns whether this screen should be hidden. |
boolean |
isHiddenForNext()
Returns whether this screen should be hidden when the user traverses screens in the forward direction. |
boolean |
isHiddenForPrevious()
Returns whether this screen should be hidden when the user traverses screens in the backward direction. |
boolean |
isNextVisible()
Returns whether the "Next" button is visible or not for this screen. |
boolean |
isPreviousVisible()
Returns whether the "Back" button is visible or not for this screen. |
boolean |
next()
Called when the user clicks the "Next" button for this screen. |
boolean |
previous()
Called when the user clicks the "Back" button for this screen. |
void |
setInstallerContext(InstallerContext context)
This method is called by the framework to set the InstallerContext just after the screen has been constructed. |
void |
willActivate()
Called by the framework just before the screen is activated. |
| Methods inherited from class com.install4j.api.beans.AbstractBean |
|---|
replaceVariables, replaceVariables, replaceVariables, replaceVariables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.install4j.api.screens.Screen |
|---|
createComponent, getSubTitle, getTitle, isFillHorizontal, isFillVertical |
| Constructor Detail |
|---|
public AbstractInstallerScreen()
| Method Detail |
|---|
public void setInstallerContext(InstallerContext context)
InstallerScreen
setInstallerContext in interface InstallerScreencontext - the installer context.public boolean isNextVisible()
ScreenIn console or unattended mode, this method is never called.
isNextVisible in interface ScreenWizardContextpublic boolean isPreviousVisible()
ScreenIn console or unattended mode, this method is never called.
isPreviousVisible in interface ScreenWizardContextpublic boolean isCancelVisible()
ScreenIn console or unattended mode, this method is never called.
isCancelVisible in interface ScreenWizardContextpublic boolean isHiddenForNext()
ScreenThis method is also called in console or unattended mode.
isHiddenForNext in interface Screenpublic boolean isHiddenForPrevious()
ScreenThis method is also called in console or unattended mode.
isHiddenForPrevious in interface Screenpublic void activated()
ScreenIn console or unattended mode, this method is never called.
activated in interface Screenpublic void deactivated()
ScreenIn console or unattended mode, this method is never called.
deactivated in interface Screenpublic boolean next()
ScreenIn console or unattended mode, this method is never called.
next in interface Screenpublic boolean previous()
ScreenIn console or unattended mode, this method is never called.
previous in interface Screenpublic boolean cancel()
Screen
cancel in interface ScreenIn console or unattended mode, this method is never called.
public void willActivate()
ScreenIn console or unattended mode, this method is never called.
willActivate in interface Screenpublic boolean isHidden()
ScreenThis method is also called in console or unattended mode.
isHidden in interface ScreenScreen.isHiddenForNext(),
Screen.isHiddenForPrevious()public boolean handleUnattended()
Screen
handleUnattended in interface Screenpublic boolean handleConsole(Console console)
ScreenIf this screen has a form panel (i.e. hasFormPanel() returns true), you should call FormEnvironment.handleConsole in this method to handle console mode for the contained form components.
handleConsole in interface Screenconsole - the Console object
FormEnvironment.handleConsole(Console)public ProgressInterface getProgressInterface(ProgressInterface defaultProgressInterface)
Screen
getProgressInterface in interface ScreendefaultProgressInterface - the default progress interface
public boolean hasTitlePanel()
Screen
hasTitlePanel in interface Screenpublic InstallerContext getInstallerContext()
|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||