public class MenuToolBarEvent extends AppEvent
Note that if you add a menu entry with the same logical menu name as an existing menu, the add request will be ignored. Thus, if two dialogs share entries in a menu that is not created outside of those dialogs but implicitly from within the dialogs, you must separate the JMenu and the JMenuItem in the event. If you add a JMenu that already contains the JMenuItem only one of the dialogs will "win". Also note that deleting a shared menu is not (yet) clearly defined.
source| Constructor and Description | 
|---|
MenuToolBarEvent(Object pSource)
Create a non-consumed event with no menu/toolbar to add. 
 | 
MenuToolBarEvent(Object pSource,
                List<Component> pToolBarButtons)
Create a non-consumed event with toolbar buttons to add. 
 | 
MenuToolBarEvent(Object pSource,
                List<Component> pToolBarButtons,
                boolean pDelete)
Create a non-consumed event with toolbar buttons to add/delete. 
 | 
MenuToolBarEvent(Object pSource,
                List<Component> pToolBarButtons,
                Map<String,Object> pMenus)
Create a non-consumed event with toolbar buttons and menus to add. 
 | 
MenuToolBarEvent(Object pSource,
                List<Component> pToolBarButtons,
                Map<String,Object> pMenus,
                boolean pDelete)
Create a non-consumed event with toolbar buttons and menus to add/delete. 
 | 
MenuToolBarEvent(Object pSource,
                List<Component> pToolBarButtons,
                Map<String,Object> pMenus,
                Map<String,Integer> pMenuInsertionIndeces)
Create a non-consumed event with toolbar buttons and menus to add. 
 | 
MenuToolBarEvent(Object pSource,
                List<Component> pToolBarButtons,
                Map<String,Object> pMenus,
                Map<String,Integer> pMenuInsertionIndeces,
                boolean pDelete)
Create a non-consumed event with toolbar buttons and menus to add/delete. 
 | 
MenuToolBarEvent(Object pSource,
                Map<String,Object> pMenus)
Create a non-consumed event with menus to add. 
 | 
MenuToolBarEvent(Object pSource,
                Map<String,Object> pMenus,
                boolean pDelete)
Create a non-consumed event with menus to add/delete. 
 | 
MenuToolBarEvent(Object pSource,
                Map<String,Object> pMenus,
                Map<String,Integer> pMenuInsertionIndeces)
Create a non-consumed event with menus to add. 
 | 
MenuToolBarEvent(Object pSource,
                Map<String,Object> pMenus,
                Map<String,Integer> pMenuInsertionIndeces,
                boolean pDelete)
Create a non-consumed event with menus to add. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Map<String,Integer> | 
getMenuInsertionIndeces()
Returns the menu insertion map. 
 | 
Map<String,Object> | 
getMenus()
Returns the menu map. 
 | 
List<Component> | 
getToolBarButtons()
Return the toolbar buttons. 
 | 
boolean | 
isDelete()
Check if this event adds or removes stuff. 
 | 
consume, forward, isConsumed, toStringgetSourcepublic MenuToolBarEvent(Object pSource, List<Component> pToolBarButtons, Map<String,Object> pMenus, Map<String,Integer> pMenuInsertionIndeces, boolean pDelete)
pSource - null or event sourcepToolBarButtons - list of tool bar buttons, must not be nullpMenus - map of menus, must not be nullpMenuInsertionIndeces - map of menu insertion indices, must not be nullpDelete - flag, if true we delete the toolbar buttons/menuspublic MenuToolBarEvent(Object pSource)
pSource - null or event sourcepublic MenuToolBarEvent(Object pSource, List<Component> pToolBarButtons)
pSource - null or event sourcepToolBarButtons - list of tool bar buttons, must not be nullpublic MenuToolBarEvent(Object pSource, List<Component> pToolBarButtons, boolean pDelete)
pSource - null or event sourcepToolBarButtons - list of tool bar buttons, must not be nullpDelete - flag, if true we delete the buttonspublic MenuToolBarEvent(Object pSource, Map<String,Object> pMenus)
pSource - null or event sourcepMenus - map of menus, must not be nullpublic MenuToolBarEvent(Object pSource, Map<String,Object> pMenus, Map<String,Integer> pMenuInsertionIndeces)
pSource - null or event sourcepMenus - map of menus, must not be nullpMenuInsertionIndeces - map of menu insertion indeces, must not be nullpublic MenuToolBarEvent(Object pSource, Map<String,Object> pMenus, Map<String,Integer> pMenuInsertionIndeces, boolean pDelete)
pSource - null or event sourcepMenus - map of menus, must not be nullpMenuInsertionIndeces - map of menu insertion indeces, must not be nullpDelete - flag, if true we delete the menuspublic MenuToolBarEvent(Object pSource, Map<String,Object> pMenus, boolean pDelete)
pSource - null or event sourcepMenus - map of menus, must not be nullpDelete - flag, if true we delete the menuspublic MenuToolBarEvent(Object pSource, List<Component> pToolBarButtons, Map<String,Object> pMenus)
pSource - null or event sourcepToolBarButtons - list of tool bar buttons, must not be nullpMenus - map of menus, must not be nullpublic MenuToolBarEvent(Object pSource, List<Component> pToolBarButtons, Map<String,Object> pMenus, boolean pDelete)
pSource - null or event sourcepToolBarButtons - list of tool bar buttons, must not be nullpMenus - map of menus, must not be nullpDelete - flag, if true we delete the toolbar buttons/menuspublic MenuToolBarEvent(Object pSource, List<Component> pToolBarButtons, Map<String,Object> pMenus, Map<String,Integer> pMenuInsertionIndeces)
pSource - null or event sourcepToolBarButtons - list of tool bar buttons, must not be nullpMenus - map of menus, must not be nullpMenuInsertionIndeces - map of menu insertion indeces, must not be nullpublic List<Component> getToolBarButtons()
public Map<String,Object> getMenus()
public Map<String,Integer> getMenuInsertionIndeces()
public boolean isDelete()
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.