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) voidregisterDoubleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseListener.mouseDoubleClick(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstDoubleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseListener.mouseDoubleClick(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstKeyBinding(IKeyEventMatcher keyMatcher, IKeyAction action) Register aIKeyActionthat should be executed onKeyListener.keyPressed(KeyEvent)if the givenIKeyEventMatchermatches.voidregisterFirstMouseDownBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseListener.mouseDown(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstMouseDragMode(IMouseEventMatcher mouseEventMatcher, IDragMode dragMode) Register aIDragModethat should be executed on a mouse drag operation if the givenIMouseEventMatchermatches.voidregisterFirstMouseEnterBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseEnter(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstMouseExitBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseExit(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstMouseHoverBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseHover(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Deprecated.voidregisterFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction) Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterFirstSingleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed on a single click if the givenIMouseEventMatchermatches.voidregisterKeyBinding(IKeyEventMatcher keyMatcher, IKeyAction action) Register aIKeyActionthat should be executed onKeyListener.keyPressed(KeyEvent)if the givenIKeyEventMatchermatches.voidregisterMouseDownBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseListener.mouseDown(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterMouseDragMode(IMouseEventMatcher mouseEventMatcher, IDragMode dragMode) Register aIDragModethat should be executed on a mouse drag operation if the givenIMouseEventMatchermatches.voidregisterMouseEnterBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseEnter(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterMouseExitBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseExit(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterMouseHoverBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseHover(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Deprecated.UseregisterFirstMouseMoveBinding(IMouseEventMatcher, IMouseAction, IMouseAction)to directly configure enter/exit behavior on movement.voidregisterMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction) Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches.voidregisterSingleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed on a single click if the givenIMouseEventMatchermatches.voidunregisterDoubleClickBinding(IMouseEventMatcher mouseEventMatcher) Removes the mouse double click binding for the givenIMouseEventMatcher.voidunregisterKeyBinding(IKeyEventMatcher keyMatcher) Removes the key binding for the givenIKeyEventMatcher.voidunregisterMouseDownBinding(IMouseEventMatcher mouseEventMatcher) Removes the mouse down binding for the givenIMouseEventMatcher.voidunregisterMouseDragMode(IMouseEventMatcher mouseEventMatcher) Removes the mouse drag binding for the givenIMouseEventMatcher.voidunregisterMouseEnterBinding(IMouseEventMatcher mouseEventMatcher) Removes the mouse enter binding for the givenIMouseEventMatcher.voidunregisterMouseExitBinding(IMouseEventMatcher mouseEventMatcher) Removes the mouse exit binding for the givenIMouseEventMatcher.voidunregisterMouseHoverBinding(IMouseEventMatcher mouseEventMatcher) Removes the mouse hover binding for the givenIMouseEventMatcher.voidunregisterMouseMoveBinding(IMouseEventMatcher mouseEventMatcher) Removes the mouse move binding for the givenIMouseEventMatcher.voidunregisterSingleClickBinding(IMouseEventMatcher mouseEventMatcher) Removes the mouse single click binding for the givenIMouseEventMatcher.
-
Constructor Details
-
UiBindingRegistry
-
-
Method Details
-
getKeyEventAction
- Specified by:
getKeyEventActionin interfaceIUiBindingRegistry
-
getDragMode
- Specified by:
getDragModein interfaceIUiBindingRegistry
-
getMouseMoveAction
- Specified by:
getMouseMoveActionin interfaceIUiBindingRegistry
-
getMouseDownAction
- Specified by:
getMouseDownActionin interfaceIUiBindingRegistry
-
getSingleClickAction
- Specified by:
getSingleClickActionin interfaceIUiBindingRegistry
-
getDoubleClickAction
- Specified by:
getDoubleClickActionin interfaceIUiBindingRegistry
-
getMouseHoverAction
- Specified by:
getMouseHoverActionin interfaceIUiBindingRegistry
-
getMouseEnterAction
- Specified by:
getMouseEnterActionin interfaceIUiBindingRegistry
-
getMouseExitAction
- Specified by:
getMouseExitActionin interfaceIUiBindingRegistry
-
registerFirstKeyBinding
Register aIKeyActionthat should be executed onKeyListener.keyPressed(KeyEvent)if the givenIKeyEventMatchermatches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
keyMatcher- TheIKeyEventMatcherfor which the binding should be registered.action- TheIKeyActionthat should be executed onKeyListener.keyPressed(KeyEvent)if theIKeyEventMatchermatches.
-
registerKeyBinding
Register aIKeyActionthat should be executed onKeyListener.keyPressed(KeyEvent)if the givenIKeyEventMatchermatches.- Parameters:
keyMatcher- TheIKeyEventMatcherfor which the binding should be registered.action- TheIKeyActionthat should be executed onKeyListener.keyPressed(KeyEvent)if theIKeyEventMatchermatches.
-
unregisterKeyBinding
Removes the key binding for the givenIKeyEventMatcher.- Parameters:
keyMatcher- TheIKeyEventMatcherfor which the binding should be removed.
-
registerFirstMouseDragMode
Register aIDragModethat should be executed on a mouse drag operation if the givenIMouseEventMatchermatches. 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- TheIMouseEventMatcherfor which the binding should be registered.dragMode- TheIDragModethat should be executed on a mouse drag operation if theIMouseEventMatchermatches.- See Also:
-
registerMouseDragMode
Register aIDragModethat should be executed on a mouse drag operation if the givenIMouseEventMatchermatches. 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- TheIMouseEventMatcherfor which the binding should be registered.dragMode- TheIDragModethat should be executed on a mouse drag operation if theIMouseEventMatchermatches.- See Also:
-
unregisterMouseDragMode
Removes the mouse drag binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor 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 aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatchermatches.
-
registerMouseMoveBinding
@Deprecated public void registerMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Deprecated.UseregisterFirstMouseMoveBinding(IMouseEventMatcher, IMouseAction, IMouseAction)to directly configure enter/exit behavior on movement.Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatchermatches.
-
registerFirstMouseMoveBinding
public void registerFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches. Allows to configure theIMouseActionthat should be executed if theIMouseEventMatchermatches the first time (enter) and theIMouseActionthat should be executed if theIMouseEventMatcherdoes 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- TheIMouseEventMatcherfor which the binding should be registered.entryAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatchermatches.exitAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatcherdoes not match anymore.- Since:
- 2.4
-
registerMouseMoveBinding
public void registerMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction) Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches. Allows to configure theIMouseActionthat should be executed if theIMouseEventMatchermatches the first time (enter) and theIMouseActionthat should be executed if theIMouseEventMatcherdoes not match anymore (exit).- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.entryAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatchermatches.exitAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatcherdoes not match anymore.- Since:
- 2.4
-
registerFirstMouseMoveBinding
public void registerFirstMouseMoveBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction) Register aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches. Allows to configure theIMouseActionthat should be executed if theIMouseEventMatchermatches the first time (enter) and theIMouseActionthat should be executed if theIMouseEventMatcherdoes 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- TheIMouseEventMatcherfor which the binding should be registered.entryAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatchermatches.exitAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatcherdoes not match anymore.reexecuteEntryAction-trueif the entry action should be executed everytime as long as theIMouseEventMatchermatches,falseif 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 aIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if the givenIMouseEventMatchermatches. Allows to configure theIMouseActionthat should be executed if theIMouseEventMatchermatches the first time (enter) and theIMouseActionthat should be executed if theIMouseEventMatcherdoes not match anymore (exit).- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.entryAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatchermatches.exitAction- TheIMouseActionthat should be executed onMouseMoveListener.mouseMove(MouseEvent)if theIMouseEventMatcherdoes not match anymore.reexecuteEntryAction-trueif the entry action should be executed everytime as long as theIMouseEventMatchermatches,falseif the entry action should only be executed on enter.- Since:
- 2.4
-
unregisterMouseMoveBinding
Removes the mouse move binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be removed.
-
registerFirstMouseDownBinding
public void registerFirstMouseDownBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseListener.mouseDown(MouseEvent)if the givenIMouseEventMatchermatches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseListener.mouseDown(MouseEvent)if theIMouseEventMatchermatches.
-
registerMouseDownBinding
Register aIMouseActionthat should be executed onMouseListener.mouseDown(MouseEvent)if the givenIMouseEventMatchermatches.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseListener.mouseDown(MouseEvent)if theIMouseEventMatchermatches.
-
unregisterMouseDownBinding
Removes the mouse down binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be removed.
-
registerFirstSingleClickBinding
public void registerFirstSingleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed on a single click if the givenIMouseEventMatchermatches. 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- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed on a single click if theIMouseEventMatchermatches.- See Also:
-
registerSingleClickBinding
Register aIMouseActionthat should be executed on a single click if the givenIMouseEventMatchermatches. 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- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed on a single click if theIMouseEventMatchermatches.- See Also:
-
unregisterSingleClickBinding
Removes the mouse single click binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be removed.
-
registerFirstDoubleClickBinding
public void registerFirstDoubleClickBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseListener.mouseDoubleClick(MouseEvent)if the givenIMouseEventMatchermatches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseListener.mouseDoubleClick(MouseEvent)if theIMouseEventMatchermatches.- See Also:
-
registerDoubleClickBinding
Register aIMouseActionthat should be executed onMouseListener.mouseDoubleClick(MouseEvent)if the givenIMouseEventMatchermatches.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseListener.mouseDoubleClick(MouseEvent)if theIMouseEventMatchermatches.- See Also:
-
unregisterDoubleClickBinding
Removes the mouse double click binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be removed.
-
registerFirstMouseHoverBinding
public void registerFirstMouseHoverBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseHover(MouseEvent)if the givenIMouseEventMatchermatches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseTrackListener.mouseHover(MouseEvent)if theIMouseEventMatchermatches.
-
registerMouseHoverBinding
Register aIMouseActionthat should be executed onMouseTrackListener.mouseHover(MouseEvent)if the givenIMouseEventMatchermatches.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseTrackListener.mouseHover(MouseEvent)if theIMouseEventMatchermatches.
-
unregisterMouseHoverBinding
Removes the mouse hover binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be removed.
-
registerFirstMouseEnterBinding
public void registerFirstMouseEnterBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseEnter(MouseEvent)if the givenIMouseEventMatchermatches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseTrackListener.mouseEnter(MouseEvent)if theIMouseEventMatchermatches.
-
registerMouseEnterBinding
Register aIMouseActionthat should be executed onMouseTrackListener.mouseEnter(MouseEvent)if the givenIMouseEventMatchermatches.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseTrackListener.mouseEnter(MouseEvent)if theIMouseEventMatchermatches.
-
unregisterMouseEnterBinding
Removes the mouse enter binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be removed.
-
registerFirstMouseExitBinding
public void registerFirstMouseExitBinding(IMouseEventMatcher mouseEventMatcher, IMouseAction action) Register aIMouseActionthat should be executed onMouseTrackListener.mouseExit(MouseEvent)if the givenIMouseEventMatchermatches.Adds the binding at the first position, which increases the priority the binding gets executed, if multiple bindings would match the condition.
- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseTrackListener.mouseExit(MouseEvent)if theIMouseEventMatchermatches.
-
registerMouseExitBinding
Register aIMouseActionthat should be executed onMouseTrackListener.mouseExit(MouseEvent)if the givenIMouseEventMatchermatches.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be registered.action- TheIMouseActionthat should be executed onMouseTrackListener.mouseExit(MouseEvent)if theIMouseEventMatchermatches.
-
unregisterMouseExitBinding
Removes the mouse exit binding for the givenIMouseEventMatcher.- Parameters:
mouseEventMatcher- TheIMouseEventMatcherfor which the binding should be removed.
-
registerFirstMouseMoveBinding(IMouseEventMatcher, IMouseAction, IMouseAction)to directly configure enter/exit behavior on movement.