Class UiBindingRegistry
- All Implemented Interfaces:
IUiBindingRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDoubleClickAction
(org.eclipse.swt.events.MouseEvent event) getDragMode
(org.eclipse.swt.events.MouseEvent event) getKeyEventAction
(org.eclipse.swt.events.KeyEvent event) getMouseDownAction
(org.eclipse.swt.events.MouseEvent event) getMouseEnterAction
(org.eclipse.swt.events.MouseEvent event) getMouseExitAction
(org.eclipse.swt.events.MouseEvent event) getMouseHoverAction
(org.eclipse.swt.events.MouseEvent event) getMouseMoveAction
(org.eclipse.swt.events.MouseEvent event) getSingleClickAction
(org.eclipse.swt.events.MouseEvent event) void
registerDoubleClickBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseListener.mouseDoubleClick(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstDoubleClickBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseListener.mouseDoubleClick(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstKeyBinding
(IKeyEventMatcher keyMatcher, IKeyAction action) Register aIKeyAction
that should be executed onKeyListener.keyPressed(KeyEvent)
if the givenIKeyEventMatcher
matches.void
registerFirstMouseDownBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseListener.mouseDown(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstMouseDragMode
(IMouseEventMatcher mouseEventMatcher, IDragMode dragMode) Register aIDragMode
that should be executed on a mouse drag operation if the givenIMouseEventMatcher
matches.void
registerFirstMouseEnterBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseEnter(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstMouseExitBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseExit(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstMouseHoverBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseHover(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstMouseMoveBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Deprecated.void
registerFirstMouseMoveBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstMouseMoveBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerFirstSingleClickBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed on a single click if the givenIMouseEventMatcher
matches.void
registerKeyBinding
(IKeyEventMatcher keyMatcher, IKeyAction action) Register aIKeyAction
that should be executed onKeyListener.keyPressed(KeyEvent)
if the givenIKeyEventMatcher
matches.void
registerMouseDownBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseListener.mouseDown(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerMouseDragMode
(IMouseEventMatcher mouseEventMatcher, IDragMode dragMode) Register aIDragMode
that should be executed on a mouse drag operation if the givenIMouseEventMatcher
matches.void
registerMouseEnterBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseEnter(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerMouseExitBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseExit(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerMouseHoverBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseHover(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerMouseMoveBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Deprecated.UseregisterFirstMouseMoveBinding(IMouseEventMatcher, IMouseAction, IMouseAction)
to directly configure enter/exit behavior on movement.void
registerMouseMoveBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerMouseMoveBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches.void
registerSingleClickBinding
(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed on a single click if the givenIMouseEventMatcher
matches.void
unregisterDoubleClickBinding
(IMouseEventMatcher mouseEventMatcher) Removes the mouse double click binding for the givenIMouseEventMatcher
.void
unregisterKeyBinding
(IKeyEventMatcher keyMatcher) Removes the key binding for the givenIKeyEventMatcher
.void
unregisterMouseDownBinding
(IMouseEventMatcher mouseEventMatcher) Removes the mouse down binding for the givenIMouseEventMatcher
.void
unregisterMouseDragMode
(IMouseEventMatcher mouseEventMatcher) Removes the mouse drag binding for the givenIMouseEventMatcher
.void
unregisterMouseEnterBinding
(IMouseEventMatcher mouseEventMatcher) Removes the mouse enter binding for the givenIMouseEventMatcher
.void
unregisterMouseExitBinding
(IMouseEventMatcher mouseEventMatcher) Removes the mouse exit binding for the givenIMouseEventMatcher
.void
unregisterMouseHoverBinding
(IMouseEventMatcher mouseEventMatcher) Removes the mouse hover binding for the givenIMouseEventMatcher
.void
unregisterMouseMoveBinding
(IMouseEventMatcher mouseEventMatcher) Removes the mouse move binding for the givenIMouseEventMatcher
.void
unregisterSingleClickBinding
(IMouseEventMatcher mouseEventMatcher) Removes the mouse single click binding for the givenIMouseEventMatcher
.
-
Constructor Details
-
UiBindingRegistry
-
-
Method Details
-
getKeyEventAction
- Specified by:
getKeyEventAction
in interfaceIUiBindingRegistry
-
getDragMode
- Specified by:
getDragMode
in interfaceIUiBindingRegistry
-
getMouseMoveAction
- Specified by:
getMouseMoveAction
in interfaceIUiBindingRegistry
-
getMouseDownAction
- Specified by:
getMouseDownAction
in interfaceIUiBindingRegistry
-
getSingleClickAction
- Specified by:
getSingleClickAction
in interfaceIUiBindingRegistry
-
getDoubleClickAction
- Specified by:
getDoubleClickAction
in interfaceIUiBindingRegistry
-
getMouseHoverAction
- Specified by:
getMouseHoverAction
in interfaceIUiBindingRegistry
-
getMouseEnterAction
- Specified by:
getMouseEnterAction
in interfaceIUiBindingRegistry
-
getMouseExitAction
- Specified by:
getMouseExitAction
in interfaceIUiBindingRegistry
-
registerFirstKeyBinding
Register aIKeyAction
that should be executed onKeyListener.keyPressed(KeyEvent)
if the givenIKeyEventMatcher
matches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
keyMatcher
- TheIKeyEventMatcher
for which the binding should be registered.action
- TheIKeyAction
that should be executed onKeyListener.keyPressed(KeyEvent)
if theIKeyEventMatcher
matches.
-
registerKeyBinding
Register aIKeyAction
that should be executed onKeyListener.keyPressed(KeyEvent)
if the givenIKeyEventMatcher
matches.- Parameters:
keyMatcher
- TheIKeyEventMatcher
for which the binding should be registered.action
- TheIKeyAction
that should be executed onKeyListener.keyPressed(KeyEvent)
if theIKeyEventMatcher
matches.
-
unregisterKeyBinding
Removes the key binding for the givenIKeyEventMatcher
.- Parameters:
keyMatcher
- TheIKeyEventMatcher
for which the binding should be removed.
-
registerFirstMouseDragMode
Register aIDragMode
that should be executed on a mouse drag operation if the givenIMouseEventMatcher
matches. A drag operation is aMouseListener.mouseDown(MouseEvent)
followed by aMouseMoveListener.mouseMove(MouseEvent)
and finished with aMouseListener.mouseUp(MouseEvent)
.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.dragMode
- TheIDragMode
that should be executed on a mouse drag operation if theIMouseEventMatcher
matches.- See Also:
-
registerMouseDragMode
Register aIDragMode
that should be executed on a mouse drag operation if the givenIMouseEventMatcher
matches. A drag operation is aMouseListener.mouseDown(MouseEvent)
followed by aMouseMoveListener.mouseMove(MouseEvent)
and finished with aMouseListener.mouseUp(MouseEvent)
.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.dragMode
- TheIDragMode
that should be executed on a mouse drag operation if theIMouseEventMatcher
matches.- See Also:
-
unregisterMouseDragMode
Removes the mouse drag binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstMouseMoveBinding
@Deprecated public void registerFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Deprecated.UseregisterFirstMouseMoveBinding(IMouseEventMatcher, IMouseAction, IMouseAction)
to directly configure enter/exit behavior on movement.Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
matches.
-
registerMouseMoveBinding
@Deprecated public void registerMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Deprecated.UseregisterFirstMouseMoveBinding(IMouseEventMatcher, IMouseAction, IMouseAction)
to directly configure enter/exit behavior on movement.Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
matches.
-
registerFirstMouseMoveBinding
public void registerFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches. Allows to configure theIMouseAction
that should be executed if theIMouseEventMatcher
matches the first time (enter) and theIMouseAction
that should be executed if theIMouseEventMatcher
does not match anymore (exit).Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.entryAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
matches.exitAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
does not match anymore.- Since:
- 2.4
-
registerMouseMoveBinding
public void registerMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches. Allows to configure theIMouseAction
that should be executed if theIMouseEventMatcher
matches the first time (enter) and theIMouseAction
that should be executed if theIMouseEventMatcher
does not match anymore (exit).- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.entryAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
matches.exitAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
does not match anymore.- Since:
- 2.4
-
registerFirstMouseMoveBinding
public void registerFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches. Allows to configure theIMouseAction
that should be executed if theIMouseEventMatcher
matches the first time (enter) and theIMouseAction
that should be executed if theIMouseEventMatcher
does not match anymore (exit).Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.entryAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
matches.exitAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
does not match anymore.reexecuteEntryAction
-true
if the entry action should be executed everytime as long as theIMouseEventMatcher
matches,false
if the entry action should only be executed on enter.- Since:
- 2.4
-
registerMouseMoveBinding
public void registerMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction) Register aIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if the givenIMouseEventMatcher
matches. Allows to configure theIMouseAction
that should be executed if theIMouseEventMatcher
matches the first time (enter) and theIMouseAction
that should be executed if theIMouseEventMatcher
does not match anymore (exit).- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.entryAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
matches.exitAction
- TheIMouseAction
that should be executed onMouseMoveListener.mouseMove(MouseEvent)
if theIMouseEventMatcher
does not match anymore.reexecuteEntryAction
-true
if the entry action should be executed everytime as long as theIMouseEventMatcher
matches,false
if the entry action should only be executed on enter.- Since:
- 2.4
-
unregisterMouseMoveBinding
Removes the mouse move binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstMouseDownBinding
public void registerFirstMouseDownBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseListener.mouseDown(MouseEvent)
if the givenIMouseEventMatcher
matches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseListener.mouseDown(MouseEvent)
if theIMouseEventMatcher
matches.
-
registerMouseDownBinding
Register aIMouseAction
that should be executed onMouseListener.mouseDown(MouseEvent)
if the givenIMouseEventMatcher
matches.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseListener.mouseDown(MouseEvent)
if theIMouseEventMatcher
matches.
-
unregisterMouseDownBinding
Removes the mouse down binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstSingleClickBinding
public void registerFirstSingleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed on a single click if the givenIMouseEventMatcher
matches. A single click is aMouseListener.mouseDown(MouseEvent)
followed by aMouseListener.mouseUp(MouseEvent)
and no movement or a second click happens in the meanwhile.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed on a single click if theIMouseEventMatcher
matches.- See Also:
-
registerSingleClickBinding
Register aIMouseAction
that should be executed on a single click if the givenIMouseEventMatcher
matches. A single click is aMouseListener.mouseDown(MouseEvent)
followed by aMouseListener.mouseUp(MouseEvent)
and no movement or a second click happens in the meanwhile.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed on a single click if theIMouseEventMatcher
matches.- See Also:
-
unregisterSingleClickBinding
Removes the mouse single click binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstDoubleClickBinding
public void registerFirstDoubleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseListener.mouseDoubleClick(MouseEvent)
if the givenIMouseEventMatcher
matches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseListener.mouseDoubleClick(MouseEvent)
if theIMouseEventMatcher
matches.- See Also:
-
registerDoubleClickBinding
Register aIMouseAction
that should be executed onMouseListener.mouseDoubleClick(MouseEvent)
if the givenIMouseEventMatcher
matches.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseListener.mouseDoubleClick(MouseEvent)
if theIMouseEventMatcher
matches.- See Also:
-
unregisterDoubleClickBinding
Removes the mouse double click binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstMouseHoverBinding
public void registerFirstMouseHoverBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseHover(MouseEvent)
if the givenIMouseEventMatcher
matches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseTrackListener.mouseHover(MouseEvent)
if theIMouseEventMatcher
matches.
-
registerMouseHoverBinding
Register aIMouseAction
that should be executed onMouseTrackListener.mouseHover(MouseEvent)
if the givenIMouseEventMatcher
matches.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseTrackListener.mouseHover(MouseEvent)
if theIMouseEventMatcher
matches.
-
unregisterMouseHoverBinding
Removes the mouse hover binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstMouseEnterBinding
public void registerFirstMouseEnterBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseEnter(MouseEvent)
if the givenIMouseEventMatcher
matches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseTrackListener.mouseEnter(MouseEvent)
if theIMouseEventMatcher
matches.
-
registerMouseEnterBinding
Register aIMouseAction
that should be executed onMouseTrackListener.mouseEnter(MouseEvent)
if the givenIMouseEventMatcher
matches.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseTrackListener.mouseEnter(MouseEvent)
if theIMouseEventMatcher
matches.
-
unregisterMouseEnterBinding
Removes the mouse enter binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstMouseExitBinding
public void registerFirstMouseExitBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseAction
that should be executed onMouseTrackListener.mouseExit(MouseEvent)
if the givenIMouseEventMatcher
matches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseTrackListener.mouseExit(MouseEvent)
if theIMouseEventMatcher
matches.
-
registerMouseExitBinding
Register aIMouseAction
that should be executed onMouseTrackListener.mouseExit(MouseEvent)
if the givenIMouseEventMatcher
matches.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be registered.action
- TheIMouseAction
that should be executed onMouseTrackListener.mouseExit(MouseEvent)
if theIMouseEventMatcher
matches.
-
unregisterMouseExitBinding
Removes the mouse exit binding for the givenIMouseEventMatcher
.- Parameters:
mouseEventMatcher
- TheIMouseEventMatcher
for which the binding should be removed.
-
registerFirstMouseMoveBinding(IMouseEventMatcher, IMouseAction, IMouseAction)
to directly configure enter/exit behavior on movement.