Package org.esa.snap.ui.assistant
Interface AssistantPageContext
- All Known Subinterfaces:
LayerSourcePageContext
- All Known Implementing Classes:
AssistantPane
,LayerSourceAssistantPane
public interface AssistantPageContext
Instances of this interface provide the context for
implementations of
AssistantPage
.-
Method Summary
Modifier and TypeMethodDescriptionGets the currently displayedpage
.The window in which theAssistantPage
is shown.void
setCurrentPage
(AssistantPage page) Sets the currently displayedpage
.void
showErrorDialog
(String message) Shows an error dialog with the given message.void
Forces an updated of the state.
-
Method Details
-
getWindow
Window getWindow()The window in which theAssistantPage
is shown.- Returns:
- The window.
-
getCurrentPage
AssistantPage getCurrentPage()Gets the currently displayedpage
.- Returns:
- The current page.
-
setCurrentPage
Sets the currently displayedpage
. Should only be called by the framwoerk.- Parameters:
page
- The current page.
-
updateState
void updateState()Forces an updated of the state. -
showErrorDialog
Shows an error dialog with the given message.- Parameters:
message
- The error message to display.
-