public final class MenuModelKeyBinding
extends java.lang.Object
| Constructor and Description | 
|---|
MenuModelKeyBinding(java.util.Collection<? extends IMenuModel> menus,
                   IComponent component)
Creates a new binding for a collection of menus and a component that contains the menu. 
 | 
MenuModelKeyBinding(java.util.Collection<? extends IMenuModel> menus,
                   IKeyObservable sourceKeyObservable,
                   IWidget source)
Creates a new key binding for collection of menus and a given key observable 
 | 
MenuModelKeyBinding(IMenuModel menu,
                   IComponent component)
Creates a new binding for a menu and a component that contains the menu. 
 | 
MenuModelKeyBinding(IMenuModel menu,
                   IKeyObservable sourceKeyObservable,
                   IWidget source)
Creates a new key binding for menu and a given key observable 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addMenu(IMenuModel menu)
Adds a menu to the key binding 
 | 
static MenuModelKeyBinding | 
bind(java.util.Collection<? extends IMenuModel> menus,
    IComponent component)
Binds a collection of menus to a component
 
 When bound all key events of the component (recursive, if component is a IContainer) will be
 checked against the key accelerators of the menu and the actions will be performed if accelerator
 matches. 
 | 
static MenuModelKeyBinding | 
bind(IMenuModel menu,
    IComponent component)
Binds a menu to a component
 
 When bound all key events of the component (recursive, if component is a IContainer) will be
 checked against the key accelerators of the menu and the actions will be performed if accelerator
 matches. 
 | 
void | 
dispose()
Disposes the key binding 
 | 
public MenuModelKeyBinding(IMenuModel menu, IComponent component)
menu - The menu which actions should be boundcomponent - The component which receives the key eventspublic MenuModelKeyBinding(java.util.Collection<? extends IMenuModel> menus, IComponent component)
menu - The menu which actions should be boundcomponent - The component which receives the key eventspublic MenuModelKeyBinding(IMenuModel menu, IKeyObservable sourceKeyObservable, IWidget source)
menu - The menu for the key bindingsourceKeyObservable - The key observable that receives the key eventssource - The source widget that will be used for the execution contextpublic MenuModelKeyBinding(java.util.Collection<? extends IMenuModel> menus, IKeyObservable sourceKeyObservable, IWidget source)
menu - The menu for the key bindingsourceKeyObservable - The key observable that receives the key eventssource - The source widget that will be used for the execution contextpublic static MenuModelKeyBinding bind(java.util.Collection<? extends IMenuModel> menus, IComponent component)
menus - The menus to bindcomponent - The component to bind topublic static MenuModelKeyBinding bind(IMenuModel menu, IComponent component)
menus - The menus to bindcomponent - The component to bind topublic void addMenu(IMenuModel menu)
menu - public void dispose()
Siehe auch Jowidgets Nutzerhandbuch