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 pageswith 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 AssistantPagegetCurrentPage()Gets the currently displayedpage.WindowgetWindow()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.voidupdateState()Forces an updated of the state.
-
-
-
Method Detail
-
getWindow
public Window getWindow()
Description copied from interface:AssistantPageContextThe window in which theAssistantPageis shown.- Specified by:
getWindowin interfaceAssistantPageContext- Returns:
- The window.
-
getCurrentPage
public AssistantPage getCurrentPage()
Description copied from interface:AssistantPageContextGets the currently displayedpage.- Specified by:
getCurrentPagein interfaceAssistantPageContext- Returns:
- The current page.
-
setCurrentPage
public void setCurrentPage(AssistantPage currentPage)
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
public void showErrorDialog(String message)
Description copied from interface:AssistantPageContextShows an error dialog with the given message.- Specified by:
showErrorDialogin interfaceAssistantPageContext- Parameters:
message- The error message to display.
-
show
public void show(AssistantPage firstPage)
Displays the dialog if thisAssistantPanewith the givenpageas 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 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.
-
-