@Dependent public class DMNCanvasShortcutsControlProxy extends Object implements DMNCanvasShortcutsControl
AbstractCanvasShortcutsControlImpl for use
in DMNEditorSession that delegates everything to the correct Alternative implementation
(for Business Central or Kogito environments). ManagedSession uses ManagedInstance.select() that does
not honour Alternative annotations. Consequentially attempts to register AbstractCanvasShortcutsControlImpl
directly leads to multiple bean implementation CDI exceptions at runtime (when the lookup is performed).CanvasControl.SessionAware<S extends ClientSession>| Constructor and Description |
|---|
DMNCanvasShortcutsControlProxy(AbstractCanvasShortcutsControlImpl delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(EditorSession session) |
void |
destroy() |
void |
init(AbstractCanvasHandler context) |
void |
onKeyShortcut(KeyboardEvent.Key... keys) |
void |
onKeyUp(KeyboardEvent.Key key) |
@Inject public DMNCanvasShortcutsControlProxy(AbstractCanvasShortcutsControlImpl delegate)
public void init(AbstractCanvasHandler context)
init in interface CanvasControl<AbstractCanvasHandler>public void destroy()
destroy in interface CanvasControl<AbstractCanvasHandler>public void bind(EditorSession session)
bind in interface CanvasControl.SessionAware<EditorSession>public void onKeyShortcut(KeyboardEvent.Key... keys)
onKeyShortcut in interface KeyboardControl.KeyShortcutCallbackpublic void onKeyUp(KeyboardEvent.Key key)
onKeyUp in interface KeyboardControl.KeyShortcutCallbackCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.