|
||||||||||
| 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
public abstract class MenuApplication
Application class that implements a menu from the application resource bundle
| Field Summary | |
|---|---|
static String |
menuSeparatorKey
indicator for menu separators |
static String |
RB_KEY_APP_MENUBAR
resource bundle key to identify the string to use to read the menu bar definition |
| 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 | |
|---|---|
MenuApplication()
|
|
MenuApplication(Level level,
String logDir)
constructor Looks for a resource bundle which is named similar to the class name inside the package of this class |
|
MenuApplication(OutputStream logStream,
Level level,
String logDir)
constructor Looks for a resource bundle which is named similar to the class name inside the package of this class |
|
| Method Summary | |
|---|---|
JMenu |
createMenu(String key)
Create a menu for the app. |
JMenuBar |
createMenubar(String name)
Create a menu bar. |
JMenuBar |
createMenubar(String name,
Color menuBackgroundColor)
Create a menu bar. |
JMenuItem |
createMenuItem(String cmd)
create a menu item |
JToolBar |
createToolBar(String nm)
Create a tool bar. |
JMenuItem |
getMenuItem(String cmd)
|
| Methods inherited from class com.lightdev.app.Application |
|---|
about, addAction, canExit, exitApplication, getAction, getAppName, getBundle, getHelpBroker, getIconForCommand, getIconForName, getResource, getResourceString, initActions, 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 RB_KEY_APP_MENUBAR
public static final String menuSeparatorKey
| Constructor Detail |
|---|
public MenuApplication()
public MenuApplication(OutputStream logStream,
Level level,
String logDir)
Looks for a resource bundle which is named similar to the class name inside the package of this class
logStream - OutputStream the stream to log tolevel - Level log level to recognize in logslogDir - String a directory to log to (e.g. ".appName" + File.separator + "logs")
public MenuApplication(Level level,
String logDir)
Looks for a resource bundle which is named similar to the class name inside the package of this class
level - Level log level to recognize in logslogDir - String a directory to log to (e.g. ".appName" + File.separator + "logs")| Method Detail |
|---|
public JToolBar createToolBar(String nm)
resources - the ResourceBundle to get the tool bar definition fromnm - the name of the tool bar definition in the resource file
public JMenuBar createMenubar(String name)
name - name of the menu bar definition
public JMenuBar createMenubar(String name,
Color menuBackgroundColor)
name - name of the menu bar definitionmenuBackgroundColor - background color of menu bar
public JMenu createMenu(String key)
resources - the ResourceBundle to get the menu definition fromkey - the key of the menu definition in the resource file
public JMenuItem getMenuItem(String cmd)
public JMenuItem createMenuItem(String cmd)
resources - the ResourceBundle to get the item definition fromcmd - the action command to be associated
with the new menu item
|
Copyright (c) 2004, 2005 Ulrich Hilger | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||