Package weka.gui
Interface GUIApplication
-
- All Known Implementing Classes:
AbstractGUIApplication,KnowledgeFlowApp,WorkbenchApp
public interface GUIApplicationInterface to a GUIApplication that can have multiple "perspectives" and provide application-level and perspective-level settings. Implementations would typically extendAbstractGUIApplication.- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DefaultsgetApplicationDefaults()Get the default values of settings for this applicationjava.lang.StringgetApplicationID()Get the ID of this application - any string unique to this application can be usedjava.lang.StringgetApplicationName()Get the name of this applicationSettingsgetApplicationSettings()Get the current settings for this applicationPerspectivegetMainPerspective()Get the mainPerspectiveof this application - i.e.PerspectiveManagergetPerspectiveManager()Get thePerspectiveManagerin use by this applicationvoidhidePerspectivesToolBar()Hide the perspectives toolbarbooleanisPerspectivesToolBarVisible()Returns true if the perspectives toolbar is visible at the current timevoidrevalidate()Force a re-validation and repaint() of the applicationvoidsettingsChanged()Called when settings are changed by the uservoidshowErrorDialog(java.lang.Exception cause)Popup a dialog displaying the supplied ExceptionvoidshowInfoDialog(java.lang.Object information, java.lang.String title, boolean isWarning)Popup an information dialogvoidshowMenuBar(javax.swing.JFrame topLevelAncestor)Show the menu bar for the applicationvoidshowPerspectivesToolBar()Show the perspectives toolbar
-
-
-
Method Detail
-
getApplicationName
java.lang.String getApplicationName()
Get the name of this application- Returns:
- the name of this application
-
getApplicationID
java.lang.String getApplicationID()
Get the ID of this application - any string unique to this application can be used- Returns:
- the ID of this application
-
getPerspectiveManager
PerspectiveManager getPerspectiveManager()
Get thePerspectiveManagerin use by this application- Returns:
- the
Perspective Manager
-
getMainPerspective
Perspective getMainPerspective()
Get the mainPerspectiveof this application - i.e. this is the panel, tab, screen etc. that is visible first at start-up.- Returns:
- the main perspective
-
isPerspectivesToolBarVisible
boolean isPerspectivesToolBarVisible()
Returns true if the perspectives toolbar is visible at the current time- Returns:
- true if the perspectives toolbar is visible
-
hidePerspectivesToolBar
void hidePerspectivesToolBar()
Hide the perspectives toolbar
-
showPerspectivesToolBar
void showPerspectivesToolBar()
Show the perspectives toolbar
-
showErrorDialog
void showErrorDialog(java.lang.Exception cause)
Popup a dialog displaying the supplied Exception- Parameters:
cause- the exception to show
-
showInfoDialog
void showInfoDialog(java.lang.Object information, java.lang.String title, boolean isWarning)Popup an information dialog- Parameters:
information- the "information" (typically some text) to displaytitle- the title for the dialogisWarning- true if this is a warning rather than just information
-
getApplicationDefaults
Defaults getApplicationDefaults()
Get the default values of settings for this application- Returns:
- the default values of the settings for this applications
-
getApplicationSettings
Settings getApplicationSettings()
Get the current settings for this application- Returns:
- the current settings for this application
-
settingsChanged
void settingsChanged()
Called when settings are changed by the user
-
revalidate
void revalidate()
Force a re-validation and repaint() of the application
-
showMenuBar
void showMenuBar(javax.swing.JFrame topLevelAncestor)
Show the menu bar for the application- Parameters:
topLevelAncestor- the JFrame that contains the application
-
-