public abstract class AbstractUninstallerScreen extends AbstractBean implements UninstallerScreen, InstallerEventListener
Constructor and Description |
---|
AbstractUninstallerScreen() |
Modifier and Type | Method and Description |
---|---|
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.
|
ProgressInterface |
getProgressInterface(ProgressInterface defaultProgressInterface)
Replace the default progress interface for actions with a custom progress interface.
|
UninstallerContext |
getUninstallerContext()
Returns the UninstallerContext that the framework has associated with
this custom screen in setUninstallerContext.
|
boolean |
handleConsole(Console console)
Handle the console mode.
|
boolean |
handleUnattended()
Handle the unattended mode.
|
boolean |
hasDefaultButtons()
This method is called by the framework in order to decide whether the default navigation buttons should be shown
at the bottom of this screen.
|
boolean |
hasDefaultInsets()
This method is called by the framework in order to decide whether the default insets should be applied to
this screen.
|
boolean |
hasTitlePanel()
This method is called by the framework to determine if this screen wants a title area or not.
|
void |
installerEvent(InstallerEvent event)
Called when an installer event is fired.
|
boolean |
isCancelVisible()
Returns whether the "Cancel" button is visible or not for this screen.
|
boolean |
isCreateLazily()
This method is called by the framework to determine if the screen should only be created when it is shown.
|
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 |
isShowIndex()
This method is called by the framework to determine if an active
WizardIndex
that has been set via the API should be shown 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 |
setUninstallerContext(UninstallerContext context)
This method is called by the framework to set the UninstallerContext.
|
void |
willActivate()
Called by the framework just before the screen is activated.
|
replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables, replaceVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createComponent, getSubTitle, getTitle, isFillHorizontal, isFillVertical
public void setUninstallerContext(UninstallerContext context)
UninstallerScreen
setUninstallerContext
in interface UninstallerScreen
context
- the uninstaller context.public boolean isNextVisible()
Screen
In console or unattended mode, this method is never called.
isNextVisible
in interface Screen
WizardContext
public boolean isPreviousVisible()
Screen
In console or unattended mode, this method is never called.
isPreviousVisible
in interface Screen
WizardContext
public boolean isCancelVisible()
Screen
In console or unattended mode, this method is never called.
isCancelVisible
in interface Screen
WizardContext
public boolean isHiddenForNext()
Screen
This method is also called in console or unattended mode.
isHiddenForNext
in interface Screen
public boolean isHiddenForPrevious()
Screen
This method is also called in console or unattended mode.
isHiddenForPrevious
in interface Screen
public void activated()
Screen
In console or unattended mode, this method is never called.
public void deactivated()
Screen
In console or unattended mode, this method is never called.
deactivated
in interface Screen
public void installerEvent(InstallerEvent event)
InstallerEventListener
installerEvent
in interface InstallerEventListener
event
- the eventpublic boolean next()
Screen
In console or unattended mode, this method is never called.
public boolean previous()
Screen
In console or unattended mode, this method is never called.
public boolean cancel()
Screen
public void willActivate()
Screen
In console or unattended mode, this method is never called.
willActivate
in interface Screen
public boolean isHidden()
Screen
This method is also called in console or unattended mode.
isHidden
in interface Screen
Screen.isHiddenForNext()
,
Screen.isHiddenForPrevious()
public boolean handleUnattended()
Screen
handleUnattended
in interface Screen
public boolean handleConsole(Console console) throws UserCanceledException
Screen
If 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 Screen
console
- the Console objectUserCanceledException
- if the user cancels a question or notice. These exceptions are thrown by methods in the Console object.FormEnvironment.handleConsole(Console)
public ProgressInterface getProgressInterface(ProgressInterface defaultProgressInterface)
Screen
getProgressInterface
in interface Screen
defaultProgressInterface
- the default progress interfacepublic boolean hasTitlePanel()
Screen
hasTitlePanel
in interface Screen
public boolean isShowIndex()
Screen
WizardIndex
that has been set via the API should be shown for this screen.isShowIndex
in interface Screen
public boolean isCreateLazily()
Screen
Screen.createComponent()
can be called, then you should return true in
this method.
If you have many screens that are created lazily and want to initialize them all at once, maybe after the
"Install files" action, you can call Context.initializeLazilyCreatedScreens()
.
isCreateLazily
in interface Screen
public boolean hasDefaultInsets()
Screen
hasDefaultInsets
in interface Screen
public boolean hasDefaultButtons()
Screen
hasDefaultButtons
in interface Screen
public UninstallerContext getUninstallerContext()