Package org.esa.snap.ui.assistant
Interface AssistantPage
-
- All Known Implementing Classes:
AbstractAssistantPage,AbstractLayerSourceAssistantPage,CollectionLayerAssistantPage,SelectLayerSourceAssistantPage
public interface AssistantPageAnAssistantPageis part of a sequence of pages.
It is used by anAssistantPaneto assists the user to accomplish a specific task by stepping through the pages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanFinish()Determines if the page can finish the current assitant or not.booleancanHelp()Determines if the page can show help information.AssistantPageContextgetContext()Gets the current context for this page.AssistantPagegetNextPage()ComponentgetPageComponent()Gets the component of the page.StringgetPageTitle()Gets the title of the page.booleanhasNextPage()voidperformCancel()Cancels the current execution of the assitant.booleanperformFinish()voidperformHelp()Only called if @link #canHelp ()} returnstrue.voidsetContext(AssistantPageContext pageContext)Sets the current context for this page.booleanvalidatePage()Called fromAssistantPageContext.updateState()in order to validate user inputs.
-
-
-
Method Detail
-
getPageTitle
String getPageTitle()
Gets the title of the page.- Returns:
- The page title.
-
getPageComponent
Component getPageComponent()
Gets the component of the page.- Returns:
- The page component.
-
hasNextPage
boolean hasNextPage()
- Returns:
- true, if a next page is available
-
getNextPage
AssistantPage getNextPage()
- Returns:
- the next page, or
nullif no next page exists or the page could not be created.
-
validatePage
boolean validatePage()
Called fromAssistantPageContext.updateState()in order to validate user inputs.- Returns:
- true, if the current page is valid
-
canFinish
boolean canFinish()
Determines if the page can finish the current assitant or not.- Returns:
trueif the page can perform finish, otherwisefalse
-
performFinish
boolean performFinish()
- Returns:
trueif finishing was successful, otherwisefalse.
-
performCancel
void performCancel()
Cancels the current execution of the assitant. Implementors shall release allocated resources.
-
canHelp
boolean canHelp()
Determines if the page can show help information.- Returns:
trueif the page can show help information, otherwisefalse
-
performHelp
void performHelp()
Only called if @link #canHelp ()} returnstrue.
-
setContext
void setContext(AssistantPageContext pageContext)
Sets the current context for this page.- Parameters:
pageContext- The context of the page.
-
getContext
AssistantPageContext getContext()
Gets the current context for this page.- Returns:
- The context of the page.
-
-