|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Application
The Application
interface is an attempt
to create common classes and interfaces (the package
de.sciss.app
) which can be shared by
different programmes, such as Meloncillo or FScape,
without having to make adjustments in different places
each time a modification is made. This interface
describes the most prominent methods needed for
a general GUI based application.
Method Summary | |
---|---|
void |
addComponent(java.lang.Object key,
java.lang.Object component)
Adds a newly created component (e.g. a specific frame) to the application. |
java.awt.datatransfer.Clipboard |
getClipboard()
Returns the clipboard used by the application. |
java.lang.Object |
getComponent(java.lang.Object key)
Retrieves a specific component (such as a GUI frame) of the application. |
DocumentHandler |
getDocumentHandler()
|
GraphicsHandler |
getGraphicsHandler()
|
java.lang.String |
getMacOSCreator()
Returns the four character Mac OS specific creator code as registered on the Apple Developer Connection. |
net.roydesign.app.Application |
getMRJApplication()
Returns an instance of MRJAdapter's Application
class which will deal with basic platform dependent GUI
operations such as providing a Quit or Preferences menu item,
handling file open requests from the system etc. |
java.lang.String |
getName()
Returns the application's name. |
java.lang.String |
getResourceString(java.lang.String key)
Returns a localized string for a given key. |
java.lang.String |
getResourceString(java.lang.String key,
java.lang.String defaultValue)
Returns a localized string for a given key. |
java.util.prefs.Preferences |
getSystemPrefs()
Returns the applications system wide preferences. |
java.util.prefs.Preferences |
getUserPrefs()
Returns the applications user specific preferences. |
double |
getVersion()
Returns the application programme version. |
WindowHandler |
getWindowHandler()
|
void |
quit()
Forces to application to quit. |
void |
removeComponent(java.lang.Object key)
Unregisters a component, for example when a frame has been disposed. |
Method Detail |
---|
java.util.prefs.Preferences getSystemPrefs()
Preferences.systemNodeForPackage( Class )
java.util.prefs.Preferences getUserPrefs()
Preferences.userNodeForPackage( Class )
double getVersion()
java.lang.String getName()
java.lang.String getMacOSCreator()
null
if there hasn't been registered any code.MRJAdapter.setFileCreator( java.io.File, java.lang.String )
java.awt.datatransfer.Clipboard getClipboard()
Toolkit.getSystemClipboard()
java.lang.Object getComponent(java.lang.Object key)
key
- agreed upon idenfier for the component,
e.g. a string or class
null
if absent or unknownvoid addComponent(java.lang.Object key, java.lang.Object component)
getComponent
method.
key
- agreed upon idenfier for the component,
e.g. a string or classcomponent
- the component to be registeredvoid removeComponent(java.lang.Object key)
key
- agreed upon idenfier for the component to be removed,
e.g. a string or classDocumentHandler getDocumentHandler()
WindowHandler getWindowHandler()
GraphicsHandler getGraphicsHandler()
net.roydesign.app.Application getMRJApplication()
Application
class which will deal with basic platform dependent GUI
operations such as providing a Quit or Preferences menu item,
handling file open requests from the system etc.
Application
class providing access to
common menu items and system events registrationjava.lang.String getResourceString(java.lang.String key)
key
- a key into the application's main string recource file
ResourceBundle.getString( String )
java.lang.String getResourceString(java.lang.String key, java.lang.String defaultValue)
key
- a key into the application's main string recource filedefaultValue
- the text to return if the key is
not in the dictionary
ResourceBundle.getString( String )
void quit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |