public interface GUIApplication
AbstractGUIApplication.| Modifier and Type | Method and Description |
|---|---|
Defaults |
getApplicationDefaults()
Get the default values of settings for this application
|
String |
getApplicationID()
Get the ID of this application - any string unique to this application can
be used
|
String |
getApplicationName()
Get the name of this application
|
Settings |
getApplicationSettings()
Get the current settings for this application
|
Perspective |
getMainPerspective()
Get the main
Perspective of this application - i.e. |
PerspectiveManager |
getPerspectiveManager()
Get the
PerspectiveManager in use by this application |
void |
hidePerspectivesToolBar()
Hide the perspectives toolbar
|
boolean |
isPerspectivesToolBarVisible()
Returns true if the perspectives toolbar is visible at the current time
|
void |
revalidate()
Force a re-validation and repaint() of the application
|
void |
settingsChanged()
Called when settings are changed by the user
|
void |
showErrorDialog(Exception cause)
Popup a dialog displaying the supplied Exception
|
void |
showInfoDialog(Object information,
String title,
boolean isWarning)
Popup an information dialog
|
void |
showMenuBar(JFrame topLevelAncestor)
Show the menu bar for the application
|
void |
showPerspectivesToolBar()
Show the perspectives toolbar
|
String getApplicationName()
String getApplicationID()
PerspectiveManager getPerspectiveManager()
PerspectiveManager in use by this applicationPerspective ManagerPerspective getMainPerspective()
Perspective of this application - i.e. this is the
panel, tab, screen etc. that is visible first at start-up.boolean isPerspectivesToolBarVisible()
void hidePerspectivesToolBar()
void showPerspectivesToolBar()
void showErrorDialog(Exception cause)
cause - the exception to showvoid showInfoDialog(Object information, String title, boolean isWarning)
information - the "information" (typically some text) to displaytitle - the title for the dialogisWarning - true if this is a warning rather than just informationDefaults getApplicationDefaults()
Settings getApplicationSettings()
void settingsChanged()
void revalidate()
void showMenuBar(JFrame topLevelAncestor)
topLevelAncestor - the JFrame that contains the applicationCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.