public abstract class AbstractAssistantPage extends Object implements AssistantPage
AssistantPage.
The user has only to implement the createPageComponent() method.
Other methods have meaningful default implementations, which can be overriden
according to the concrete implementation.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAssistantPage(String pageTitle)
Creates a new instance with the given page title.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFinish()
Determines if the page can finish the current assitant or not.
|
boolean |
canHelp()
Determines if the page can show help information.
|
protected abstract Component |
createPageComponent()
Creates the component of this page.
|
AssistantPageContext |
getContext()
Gets the current context for this page.
|
AssistantPage |
getNextPage()
|
Component |
getPageComponent()
Gets the component of the page.
|
String |
getPageTitle()
Gets the title of the page.
|
boolean |
hasNextPage() |
void |
performCancel()
Cancels the current execution of the assitant.
|
boolean |
performFinish()
|
void |
performHelp()
Only called if @link #canHelp ()} returns
true. |
void |
setContext(AssistantPageContext pageContext)
Sets the current context for this page.
|
boolean |
validatePage()
Called from
AssistantPageContext.updateState() in order to validate user inputs. |
protected AbstractAssistantPage(String pageTitle)
pageTitle - The title of the page.public void setContext(AssistantPageContext pageContext)
AssistantPagesetContext in interface AssistantPagepageContext - The context of the page.public AssistantPageContext getContext()
AssistantPagegetContext in interface AssistantPagepublic String getPageTitle()
AssistantPagegetPageTitle in interface AssistantPagepublic final Component getPageComponent()
AssistantPagegetPageComponent in interface AssistantPageprotected abstract Component createPageComponent()
public boolean validatePage()
AssistantPageAssistantPageContext.updateState() in order to validate user inputs.validatePage in interface AssistantPagepublic boolean hasNextPage()
hasNextPage in interface AssistantPagepublic AssistantPage getNextPage()
AssistantPagegetNextPage in interface AssistantPagenull if no next page exists or the page could not be created.public boolean canFinish()
AssistantPagecanFinish in interface AssistantPagetrue if the page can perform finish, otherwise falsepublic boolean performFinish()
AssistantPageperformFinish in interface AssistantPagetrue if finishing was successful, otherwise false.public void performCancel()
AssistantPageperformCancel in interface AssistantPagepublic boolean canHelp()
AssistantPagecanHelp in interface AssistantPagetrue if the page can show help information, otherwise falsepublic void performHelp()
AssistantPagetrue.performHelp in interface AssistantPageCopyright © 2014–2019 European Space Agency (ESA). All rights reserved.