|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.Application
com.lightdev.app.MenuApplication
com.lightdev.app.DefaultApplication
public class DefaultApplication
Default application class
This class can be used as an example for how to make use of the Light
Development Application Package. It extends the abstract base class
MenuApplication which in turn extends Application
and initializes some basic elements such as
a resource bundle or an action to exit the application.
| Field Summary | |
|---|---|
static String |
ACTION_ABOUT_APP
name of the action that shows information about this application |
static String |
ACTION_EXIT_APP
name of the action that exits this application |
static String |
ACTION_SHOW_HELP_CONTENTS
name of the action that shows help for this application |
| Fields inherited from class com.lightdev.app.MenuApplication |
|---|
menuSeparatorKey, RB_KEY_APP_MENUBAR |
| Fields inherited from class com.lightdev.app.Application |
|---|
actionSuffix, APP_HELP_NAME, imageSuffix, JAVA_HELP_EXT, labelSuffix, logger, RB_KEY_ABOUT_APP_DIALOG_TITLE, RB_KEY_LOG_APP_CAN_NOT_EXIT, RB_KEY_LOG_APP_STARTED, RB_KEY_LOG_APP_TERMINATED, RESOURCE_NOT_FOUND, resources, selectedIconSuffix, toolTipSuffix, URL_SEPARATOR |
| Constructor Summary | |
|---|---|
DefaultApplication()
constructor |
|
DefaultApplication(Level level,
String logDir)
|
|
DefaultApplication(Level level,
String logDir,
boolean showUi)
|
|
DefaultApplication(OutputStream logStream,
Level level,
String logDir,
boolean showUi)
|
|
| Method Summary | |
|---|---|
static MainFrame |
findMainFrame()
find the application's main frame |
protected void |
initActions()
initialize this application's action table |
protected void |
initMainFrame(boolean showUi)
initialize this application's main frame |
static void |
main(String[] args)
main method |
| Methods inherited from class com.lightdev.app.MenuApplication |
|---|
createMenu, createMenubar, createMenubar, createMenuItem, createToolBar, getMenuItem |
| Methods inherited from class com.lightdev.app.Application |
|---|
about, addAction, canExit, exitApplication, getAction, getAppName, getBundle, getHelpBroker, getIconForCommand, getIconForName, getResource, getResourceString, log, logStackTrace, setLogging, setLogLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ACTION_EXIT_APP
public static final String ACTION_ABOUT_APP
public static final String ACTION_SHOW_HELP_CONTENTS
| Constructor Detail |
|---|
public DefaultApplication()
public DefaultApplication(Level level,
String logDir)
public DefaultApplication(Level level,
String logDir,
boolean showUi)
public DefaultApplication(OutputStream logStream,
Level level,
String logDir,
boolean showUi)
| Method Detail |
|---|
protected void initActions()
initActions in class Applicationprotected void initMainFrame(boolean showUi)
public static MainFrame findMainFrame()
public static void main(String[] args)
args - String[] command line arguments
|
Copyright (c) 2004, 2005 Ulrich Hilger | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||