Class AbstractModeEventHandler

java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.mode.AbstractModeEventHandler
All Implemented Interfaces:
EventListener, IModeEventHandler, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener, org.eclipse.swt.events.MouseTrackListener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
ConfigurableModeEventHandler, DragModeEventHandler, MouseModeEventHandler

public class AbstractModeEventHandler extends Object implements IModeEventHandler
  • Field Details

    • natTable

      protected final NatTable natTable
  • Constructor Details

    • AbstractModeEventHandler

      public AbstractModeEventHandler(ModeSupport modeSupport, NatTable natTable)
  • Method Details

    • getModeSupport

      protected ModeSupport getModeSupport()
    • switchMode

      protected void switchMode(Mode mode)
      Switch the mode in the underlying ModeSupport.
      Parameters:
      mode - The Mode to switch to.
      Since:
      2.0
    • switchMode

      protected void switchMode(IModeEventHandler modeEventHandler)
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface IModeEventHandler
    • keyPressed

      public void keyPressed(org.eclipse.swt.events.KeyEvent event)
      Specified by:
      keyPressed in interface org.eclipse.swt.events.KeyListener
    • keyReleased

      public void keyReleased(org.eclipse.swt.events.KeyEvent event)
      Specified by:
      keyReleased in interface org.eclipse.swt.events.KeyListener
    • mouseDoubleClick

      public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseDoubleClick in interface org.eclipse.swt.events.MouseListener
    • mouseDown

      public void mouseDown(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseDown in interface org.eclipse.swt.events.MouseListener
    • mouseUp

      public void mouseUp(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseUp in interface org.eclipse.swt.events.MouseListener
    • mouseMove

      public void mouseMove(org.eclipse.swt.events.MouseEvent event)
      Specified by:
      mouseMove in interface org.eclipse.swt.events.MouseMoveListener
    • mouseEnter

      public void mouseEnter(org.eclipse.swt.events.MouseEvent e)
      Specified by:
      mouseEnter in interface org.eclipse.swt.events.MouseTrackListener
    • mouseExit

      public void mouseExit(org.eclipse.swt.events.MouseEvent e)
      Specified by:
      mouseExit in interface org.eclipse.swt.events.MouseTrackListener
    • mouseHover

      public void mouseHover(org.eclipse.swt.events.MouseEvent e)
      Specified by:
      mouseHover in interface org.eclipse.swt.events.MouseTrackListener
    • focusGained

      public void focusGained(org.eclipse.swt.events.FocusEvent event)
      Specified by:
      focusGained in interface org.eclipse.swt.events.FocusListener
    • focusLost

      public void focusLost(org.eclipse.swt.events.FocusEvent event)
      Specified by:
      focusLost in interface org.eclipse.swt.events.FocusListener