|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for all application types.
YASLApplicationType
Field Summary | |
static String |
KEY_ACTION_APPLICATION_EXIT
Standard key used for storing and accessing the action invoked for application exit. |
static String |
KEY_ACTION_APPLICATION_START
Standard key used for storing and accessing the action invoked for application initialization. |
static String |
KEY_ACTION_HANDLER
Standard key used for storing and accessing the action handler. |
static String |
KEY_APPLICATION
Standard key used for storing and accessing the application instance. |
static String |
KEY_ERROR_HANDLER
Standard key used for storing and accessing the error handler. |
static String |
KEY_GUI_APP_ROOTPANE
Standard key used for storing and accessing the JRootPane object. |
static String |
KEY_PREFERENCES_MANAGER
Standard key used for storing and accessing the preferences manager. |
static String |
KEY_RESOURCE_MANAGER
Standard key used for storing and accessing the resource manager. |
static String |
KEY_SWING_APP_FRAME
Standard key used for storing and accessing the swing app frame object. |
Method Summary | |
YASLActionHandler |
getActionHandler()
Returns the action handler using the standard action handler key. |
YASLApplicationType |
getApplicationType()
Returns application type, either gui, command line, or applet. |
YASLErrorHandler |
getErrorHandler()
Returns the error handler using the standard error handler key. |
YASLResourceManager |
getResourceManager()
Returns the resource manager using the standard resource manager key. |
Object |
getSingleton(String key)
Singletons are stored in a map with items accessed via a key. |
Set |
getSingletonKeys()
Returns a non-modifiable set of the keys used to map singletons in the application. |
boolean |
isInitialized(StringBuffer errBuf)
Returns true if the application object is fully initialized. |
boolean |
isSingletonMapped(String key)
Returns true if a singleton is mapped to the passed key. |
void |
setResourceManager(YASLResourceManager rmanager)
Sets the resource manager using the standard resource manager key. |
void |
setSingleton(String key,
Object singleton)
Maps an application-specific object to a key. |
Field Detail |
public static final String KEY_GUI_APP_ROOTPANE
public static final String KEY_SWING_APP_FRAME
public static final String KEY_PREFERENCES_MANAGER
public static final String KEY_ACTION_HANDLER
public static final String KEY_RESOURCE_MANAGER
public static final String KEY_APPLICATION
public static final String KEY_ERROR_HANDLER
public static final String KEY_ACTION_APPLICATION_EXIT
public static final String KEY_ACTION_APPLICATION_START
Method Detail |
public YASLActionHandler getActionHandler()
For most applications the default action handler is sufficient.
public Object getSingleton(String key) throws YASLApplicationException
key
- String
YASLApplicationException
public YASLResourceManager getResourceManager()
public void setResourceManager(YASLResourceManager rmanager) throws YASLApplicationException
rmanager
- YASLResourceManager
YASLApplicationException
public boolean isSingletonMapped(String key)
key
- String
public void setSingleton(String key, Object singleton) throws YASLApplicationException
key
- Stringsingleton
- Object
YASLApplicationException
public Set getSingletonKeys()
public YASLApplicationType getApplicationType()
public YASLErrorHandler getErrorHandler()
public boolean isInitialized(StringBuffer errBuf)
errBuf
- StringBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |