org.eclipse.nebula.widgets.nattable.selection.action
Class AbstractMouseSelectionAction

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.selection.action.AbstractMouseSelectionAction
All Implemented Interfaces:
IMouseAction
Direct Known Subclasses:
SelectCellAction, SelectRowAction, SelectRowGroupsAction

public class AbstractMouseSelectionAction
extends Object
implements IMouseAction


Constructor Summary
AbstractMouseSelectionAction()
           
 
Method Summary
 int getGridColumnPosition()
           
 int getGridRowPosition()
           
 boolean isWithControlMask()
           
 boolean isWithShiftMask()
           
 void run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
          Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMouseSelectionAction

public AbstractMouseSelectionAction()
Method Detail

run

public void run(NatTable natTable,
                org.eclipse.swt.events.MouseEvent event)
Description copied from interface: IMouseAction
Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.

Specified by:
run in interface IMouseAction
Parameters:
natTable - The NatTable instance on which the MouseEvent was fired and on which the command should be executed.
event - The received MouseEvent.

isWithShiftMask

public boolean isWithShiftMask()

isWithControlMask

public boolean isWithControlMask()

getGridColumnPosition

public int getGridColumnPosition()

getGridRowPosition

public int getGridRowPosition()


Copyright © 2014. All rights reserved.