public class AssistantPane extends Object implements AssistantPageContext
assitant pages
with an dialog.Constructor and Description |
---|
AssistantPane(Window parent,
String title)
Creates a new
AssistantPane . |
Modifier and Type | Method and Description |
---|---|
AssistantPage |
getCurrentPage()
Gets the currently displayed
page . |
Window |
getWindow()
The window in which the
AssistantPage is shown. |
void |
setCurrentPage(AssistantPage currentPage)
Sets the currently displayed
page . |
void |
show(AssistantPage firstPage)
Displays the dialog if this
AssistantPane with
the given page as first page. |
void |
show(AssistantPage firstPage,
Rectangle bounds)
Displays the dialog if this
AssistantPane with
the given page as first page. |
void |
showErrorDialog(String message)
Shows an error dialog with the given message.
|
void |
updateState()
Forces an updated of the state.
|
public Window getWindow()
AssistantPageContext
AssistantPage
is shown.getWindow
in interface AssistantPageContext
public AssistantPage getCurrentPage()
AssistantPageContext
page
.getCurrentPage
in interface AssistantPageContext
public void setCurrentPage(AssistantPage currentPage)
AssistantPageContext
page
.
Should only be called by the framwoerk.setCurrentPage
in interface AssistantPageContext
currentPage
- The current page.public void updateState()
AssistantPageContext
updateState
in interface AssistantPageContext
public void showErrorDialog(String message)
AssistantPageContext
showErrorDialog
in interface AssistantPageContext
message
- The error message to display.public void show(AssistantPage firstPage)
AssistantPane
with
the given page
as first page.firstPage
- The first page which is displayed in the dialog.public void show(AssistantPage firstPage, Rectangle bounds)
AssistantPane
with
the given page
as first page.firstPage
- The first page which is displayed in the dialog.bounds
- The screen bounds of the window, may be null
.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.