|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.ui.assistant.AbstractAssistantPage
public abstract class AbstractAssistantPage
An abstract implementation of 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.
| Constructor Summary | |
|---|---|
protected |
AbstractAssistantPage(String pageTitle)
Creates a new instance with the given page title. |
| Method Summary | |
|---|---|
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()
Called only if AssistantPage.validatePage() and AssistantPage.hasNextPage() return true. |
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()
Ccalled only if AssistantPage.validatePage() and AssistantPage.canFinish() return true. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractAssistantPage(String pageTitle)
pageTitle - The title of the page.| Method Detail |
|---|
public void setContext(AssistantPageContext pageContext)
AssistantPage
setContext in interface AssistantPagepageContext - The context of the page.public AssistantPageContext getContext()
AssistantPage
getContext in interface AssistantPagepublic String getPageTitle()
AssistantPage
getPageTitle in interface AssistantPagepublic final Component getPageComponent()
AssistantPage
getPageComponent 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()
AssistantPageAssistantPage.validatePage() and AssistantPage.hasNextPage() return true.
getNextPage in interface AssistantPagenull if no next page exists or the page could not be created.public boolean canFinish()
AssistantPage
canFinish in interface AssistantPagetrue if the page can perform finish, otherwise falsepublic boolean performFinish()
AssistantPageAssistantPage.validatePage() and AssistantPage.canFinish() return true.
performFinish in interface AssistantPagetrue if finishing was successful, otherwise false.public void performCancel()
AssistantPage
performCancel in interface AssistantPagepublic boolean canHelp()
AssistantPage
canHelp in interface AssistantPagetrue if the page can show help information, otherwise falsepublic void performHelp()
AssistantPagetrue.
performHelp in interface AssistantPage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||