Class ColumnGroupExpandCollapseAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.group.action.ColumnGroupExpandCollapseAction
-
- All Implemented Interfaces:
IMouseAction,IMouseClickAction
public class ColumnGroupExpandCollapseAction extends Object implements IMouseClickAction
-
-
Constructor Summary
Constructors Constructor Description ColumnGroupExpandCollapseAction()Creates a non-exclusive ColumnGroupExpandCollapseAction.ColumnGroupExpandCollapseAction(boolean exclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExclusive()Configuration of this IMouseClickAction to specify the behaviour when this action is configured to be a single click action, and there is also a double click action registered.voidrun(NatTable natTable, org.eclipse.swt.events.MouseEvent event)Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.
-
-
-
Constructor Detail
-
ColumnGroupExpandCollapseAction
public ColumnGroupExpandCollapseAction()
Creates a non-exclusive ColumnGroupExpandCollapseAction.
-
ColumnGroupExpandCollapseAction
public ColumnGroupExpandCollapseAction(boolean exclusive)
- Parameters:
exclusive-trueif the expand action should be exclusive, which means the action to select the columns is not triggered. If set tofalsethe selection will be triggered together with the expand/collapse action.- Since:
- 1.6
-
-
Method Detail
-
run
public void run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
Description copied from interface:IMouseActionTranslates the SWT MouseEvent to a NatTable command and executes that command accordingly.- Specified by:
runin interfaceIMouseAction- Parameters:
natTable- The NatTable instance on which the MouseEvent was fired and on which the command should be executed.event- The received MouseEvent.
-
isExclusive
public boolean isExclusive()
Description copied from interface:IMouseClickActionConfiguration of this IMouseClickAction to specify the behaviour when this action is configured to be a single click action, and there is also a double click action registered.If this method returns
true, this means either the single OR the double click action is executed. Returningfalsewill execute the single click action immediately and the double click action additionally.Note: Being an exclusive action means that the double click action will be executed and the single click action will be cancelled. This also means that the single click action will not be performed until the double click action time is waited.
- Specified by:
isExclusivein interfaceIMouseClickAction- Returns:
trueif this action is exclusive,falseif not.
-
-