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 theAssistantPage
is shown.void
setCurrentPage
(AssistantPage currentPage) Sets the currently displayedpage
.void
show
(AssistantPage firstPage) Displays the dialog if thisAssistantPane
with the givenpage
as first page.void
show
(AssistantPage firstPage, Rectangle bounds) Displays the dialog if thisAssistantPane
with the givenpage
as first page.void
showErrorDialog
(String message) Shows an error dialog with the given message.void
Forces 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:AssistantPageContext
The window in which theAssistantPage
is shown.- Specified by:
getWindow
in interfaceAssistantPageContext
- Returns:
- The window.
-
getCurrentPage
Description copied from interface:AssistantPageContext
Gets the currently displayedpage
.- Specified by:
getCurrentPage
in interfaceAssistantPageContext
- Returns:
- The current page.
-
setCurrentPage
Description copied from interface:AssistantPageContext
Sets the currently displayedpage
. Should only be called by the framwoerk.- Specified by:
setCurrentPage
in interfaceAssistantPageContext
- Parameters:
currentPage
- The current page.
-
updateState
public void updateState()Description copied from interface:AssistantPageContext
Forces an updated of the state.- Specified by:
updateState
in interfaceAssistantPageContext
-
showErrorDialog
Description copied from interface:AssistantPageContext
Shows an error dialog with the given message.- Specified by:
showErrorDialog
in interfaceAssistantPageContext
- Parameters:
message
- The error message to display.
-
show
Displays the dialog if thisAssistantPane
with the givenpage
as first page.- Parameters:
firstPage
- The first page which is displayed in the dialog.
-
show
Displays the dialog if thisAssistantPane
with the givenpage
as first page.- Parameters:
firstPage
- The first page which is displayed in the dialog.bounds
- The screen bounds of the window, may benull
.
-