|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.fopps.ui.MenuBuilder
MenuBuilder creates menue from an actions list. The contents of each menu depends on the action's
group. The technique is very similar to ToolBarBuilder.
| Field Summary | |
static char |
GROUP_SEPERATOR
Seperator char used to identify new group name |
| Constructor Summary | |
MenuBuilder()
|
|
| Method Summary | |
static java.util.Map |
createMenu(ActionHandler pHandler)
Create menu |
static java.util.Map |
createMenu(ActionHandler pHandler,
java.lang.String[] pMenuesToGlue)
Create tool bars from an action list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char GROUP_SEPERATOR
| Constructor Detail |
public MenuBuilder()
| Method Detail |
public static java.util.Map createMenu(ActionHandler pHandler)
pHandler - ActionHandler which contains the actions
public static java.util.Map createMenu(ActionHandler pHandler,
java.lang.String[] pMenuesToGlue)
pHandler - ActionHandler which contains the actionspMenuesToGlue - List containing the group names of the menues to put together. To glue bars a,b, and d,e, the
array contents has to look like {"a,b,c", "d,e"}. To assign a different group name, use {"myGroupname;a,b,c"}
GROUP_SEPERATOR,
ActionGroups.MENU_FILE,
ActionGroups.MENU_EDIT,
ActionGroups.MENU_VIEW
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||