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
public class AssistantPane extends Object implements AssistantPageContext
Shows a sequence ofassitant pages
with an dialog.
-
-
Constructor Summary
Constructors Constructor Description AssistantPane(Window parent, String title)
Creates a newAssistantPane
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssistantPage
getCurrentPage()
Gets the currently displayedpage
.Window
getWindow()
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
updateState()
Forces an updated of the state.
-
-
-
Method Detail
-
getWindow
public Window getWindow()
Description copied from interface:AssistantPageContext
The window in which theAssistantPage
is shown.- Specified by:
getWindow
in interfaceAssistantPageContext
- Returns:
- The window.
-
getCurrentPage
public AssistantPage getCurrentPage()
Description copied from interface:AssistantPageContext
Gets the currently displayedpage
.- Specified by:
getCurrentPage
in interfaceAssistantPageContext
- Returns:
- The current page.
-
setCurrentPage
public void setCurrentPage(AssistantPage currentPage)
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
public void showErrorDialog(String message)
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
public void show(AssistantPage firstPage)
Displays the dialog if thisAssistantPane
with the givenpage
as first page.- Parameters:
firstPage
- The first page which is displayed in the dialog.
-
show
public void show(AssistantPage firstPage, Rectangle bounds)
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
.
-
-