Package org.esa.snap.ui.assistant
Class AssistantPane
java.lang.Object
org.esa.snap.ui.assistant.AssistantPane
- All Implemented Interfaces:
AssistantPageContext
- Direct Known Subclasses:
LayerSourceAssistantPane
Shows a sequence of
assitant pages with an dialog.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the currently displayedpage.The window in which theAssistantPageis shown.voidsetCurrentPage(AssistantPage currentPage) Sets the currently displayedpage.voidshow(AssistantPage firstPage) Displays the dialog if thisAssistantPanewith the givenpageas first page.voidshow(AssistantPage firstPage, Rectangle bounds) Displays the dialog if thisAssistantPanewith the givenpageas first page.voidshowErrorDialog(String message) Shows an error dialog with the given message.voidForces an updated of the state.
-
Constructor Details
-
AssistantPane
Creates a newAssistantPane.- Parameters:
parent- The parent window.title- The title of the dialog.
-
-
Method Details
-
getWindow
Description copied from interface:AssistantPageContextThe window in which theAssistantPageis shown.- Specified by:
getWindowin interfaceAssistantPageContext- Returns:
- The window.
-
getCurrentPage
Description copied from interface:AssistantPageContextGets the currently displayedpage.- Specified by:
getCurrentPagein interfaceAssistantPageContext- Returns:
- The current page.
-
setCurrentPage
Description copied from interface:AssistantPageContextSets the currently displayedpage. Should only be called by the framwoerk.- Specified by:
setCurrentPagein interfaceAssistantPageContext- Parameters:
currentPage- The current page.
-
updateState
public void updateState()Description copied from interface:AssistantPageContextForces an updated of the state.- Specified by:
updateStatein interfaceAssistantPageContext
-
showErrorDialog
Description copied from interface:AssistantPageContextShows an error dialog with the given message.- Specified by:
showErrorDialogin interfaceAssistantPageContext- Parameters:
message- The error message to display.
-
show
Displays the dialog if thisAssistantPanewith the givenpageas first page.- Parameters:
firstPage- The first page which is displayed in the dialog.
-
show
Displays the dialog if thisAssistantPanewith the givenpageas first page.- Parameters:
firstPage- The first page which is displayed in the dialog.bounds- The screen bounds of the window, may benull.
-