|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface Application defines the responsibility for an
application using the framework by providing a command registry, preferences,
the internationalization and a keystroke provider. It also defines the
application's entry point launch() and can be terminated using the
shutDown() method.
Applications with a GUI are using ApplicationFrames
to display it.
| Method Summary | |
Applet |
getApplet()
Returns the applet if this application runs in an applet context or null if this is a standalone application. |
ApplicationFrame |
getApplicationFrame()
Returns the active ApplicationFrame of this application. |
ApplicationFrame[] |
getApplicationFrames()
Returns all ApplicationFrames of this application. |
CommandRegistry |
getCommandRegistry()
Returns the CommandRegistry of this Application. |
java.lang.String |
getDefaultPreferencesFileName()
Returns the file name that should be used for reading the default preferences |
java.lang.Class |
getDefaultPreferencesLoadClass()
Returns the reference class that should be used to load the default preferences |
KeyStrokeProvider |
getKeyStrokeProvider()
Returns the KeyStrokeProvider of this Application. |
java.util.Locale |
getLocale()
Returns the currently set Locale. |
PreferenceHelp |
getPreferenceHelp()
Returns a PreferenceHelp instance that can be used to
perform common tasks involving preferences. |
Preferences |
getPreferences()
Returns the Preferences instance used by this Application. |
java.lang.String |
getPreferencesFileName()
Returns the file name that should be used for storing the preferences |
java.lang.String |
getTitle()
Returns the name of this Application. |
UIManager |
getUIManager()
Returns the UIManager of this Application. |
java.util.List |
getUIManagerResources()
Returns a list with all resource bundles the UIManager should load at initialization time. |
boolean |
launch()
Launches the application. |
void |
savePreferences()
Saves the currently stored Preferences of this application. |
void |
setPreferenceHelp(PreferenceHelp preferenceHelp)
Sets the PreferenceHelp instance that can be used to
perform common tasks involving preferences. |
void |
setPreferences(Preferences preferences)
Sets the Preferences instance used by this Application. |
void |
showError(java.lang.String errormessage)
Asks the application to show an error message-box with the given text. |
boolean |
shutDown()
Invoked when the Application should be shut down.
|
| Method Detail |
public Preferences getPreferences()
Preferences instance used by this Application.
Preferences instance of this Application.public java.lang.String getPreferencesFileName()
public java.lang.String getDefaultPreferencesFileName()
public java.lang.Class getDefaultPreferencesLoadClass()
public PreferenceHelp getPreferenceHelp()
PreferenceHelp instance that can be used to
perform common tasks involving preferences.
PreferenceHelp instance that can be used to
perform common tasks involving preferences.public void setPreferenceHelp(PreferenceHelp preferenceHelp)
PreferenceHelp instance that can be used to
perform common tasks involving preferences.
preferenceHelp - the PreferenceHelp instance that can
be used to perform common tasks involving
preferences.public void setPreferences(Preferences preferences)
Preferences instance used by this Application.
preferences - the Preferences instance of this Application.public void savePreferences()
getPreferences() returns null.
public UIManager getUIManager()
UIManager of this Application.
UIManager.public java.util.List getUIManagerResources()
public KeyStrokeProvider getKeyStrokeProvider()
KeyStrokeProvider of this Application.
KeyStrokeProvider instance of this Application.public CommandRegistry getCommandRegistry()
CommandRegistry of this Application.
CommandRegistry instance of this Application.public java.util.Locale getLocale()
Locale.
Locale.public java.lang.String getTitle()
Application.
Application.public boolean shutDown()
Application should be shut down.
Returns false if the shut down should be canceled,
otherwise true.
Usually this method does not return at all and ends with a
System.exit(0) call.
false if the shut down should be canceled.public boolean launch()
public void showError(java.lang.String errormessage)
errormessage - the text to display as the error.public ApplicationFrame getApplicationFrame()
ApplicationFrame of this application.
ApplicationFrame of this application.public ApplicationFrame[] getApplicationFrames()
ApplicationFrames of this application.
ApplicationFrames of this application.public Applet getApplet()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||