Class NatTableOperationHandler

java.lang.Object
org.eclipse.rap.rwt.remote.AbstractOperationHandler
org.eclipse.rap.rwt.internal.protocol.WidgetOperationHandler<org.eclipse.swt.widgets.Canvas>
org.eclipse.rap.rwt.internal.protocol.ControlOperationHandler<org.eclipse.swt.widgets.Canvas>
org.eclipse.swt.internal.widgets.canvaskit.CanvasOperationHandler
org.eclipse.nebula.widgets.nattable.NatTableOperationHandler
All Implemented Interfaces:
Serializable, org.eclipse.rap.rwt.remote.OperationHandler

public class NatTableOperationHandler extends org.eclipse.swt.internal.widgets.canvaskit.CanvasOperationHandler
Specialized CanvasOperationHandler for NatTable. Needed to
  • handle the mouse events correctly as the button state mask is not set in SWT
  • add a handler for mouse wheel
  • add a handler for mouse move
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    NatTableOperationHandler(org.eclipse.swt.widgets.Canvas canvas)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    allowMouseEvent(org.eclipse.swt.widgets.Canvas control, int x, int y)
     
    void
    handleNotify(String eventName, org.eclipse.rap.json.JsonObject properties)
     
    void
    handleNotifyMouseDoubleClick(org.eclipse.rap.json.JsonObject properties)
     
    void
    handleNotifyMouseDown(org.eclipse.rap.json.JsonObject properties)
     
    void
    handleNotifyMouseMove(org.eclipse.rap.json.JsonObject properties)
     
    void
    handleNotifyMouseUp(org.eclipse.rap.json.JsonObject properties)
     
    void
    handleNotifyMouseWheel(org.eclipse.rap.json.JsonObject properties)
     

    Methods inherited from class org.eclipse.rap.rwt.internal.protocol.ControlOperationHandler

    handleNotify, handleNotifyActivate, handleNotifyDeactivate, handleNotifyFocusIn, handleNotifyFocusOut, handleNotifyHelp, handleNotifyKeyDown, handleNotifyMenuDetect, handleNotifyMouseDoubleClick, handleNotifyMouseDown, handleNotifyMouseUp, handleNotifyTraverse, handleSet, handleSetBackground, handleSetCursor, handleSetEnabled, handleSetForeground, handleSetToolTip, handleSetVisibility

    Methods inherited from class org.eclipse.rap.rwt.internal.protocol.WidgetOperationHandler

    createSelectionEvent, handleCall, handleCall, handleSet, readBounds, readDetail, readStateMask

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NatTableOperationHandler

      public NatTableOperationHandler(org.eclipse.swt.widgets.Canvas canvas)
  • Method Details

    • handleNotify

      public void handleNotify(String eventName, org.eclipse.rap.json.JsonObject properties)
      Specified by:
      handleNotify in interface org.eclipse.rap.rwt.remote.OperationHandler
      Overrides:
      handleNotify in class org.eclipse.rap.rwt.internal.protocol.WidgetOperationHandler<org.eclipse.swt.widgets.Canvas>
    • handleNotifyMouseDown

      public void handleNotifyMouseDown(org.eclipse.rap.json.JsonObject properties)
    • handleNotifyMouseDoubleClick

      public void handleNotifyMouseDoubleClick(org.eclipse.rap.json.JsonObject properties)
    • handleNotifyMouseUp

      public void handleNotifyMouseUp(org.eclipse.rap.json.JsonObject properties)
    • handleNotifyMouseWheel

      public void handleNotifyMouseWheel(org.eclipse.rap.json.JsonObject properties)
    • handleNotifyMouseMove

      public void handleNotifyMouseMove(org.eclipse.rap.json.JsonObject properties)
    • allowMouseEvent

      protected boolean allowMouseEvent(org.eclipse.swt.widgets.Canvas control, int x, int y)
      Overrides:
      allowMouseEvent in class org.eclipse.rap.rwt.internal.protocol.ControlOperationHandler<org.eclipse.swt.widgets.Canvas>