Class VisibleColumnsRemaining
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.ui.menu.VisibleColumnsRemaining
-
- All Implemented Interfaces:
IMenuItemState
public class VisibleColumnsRemaining extends Object implements IMenuItemState
ThisIMenuItemState
is active if- less columns are selected than are visible in total
- and more than one column is visible.
-
-
Constructor Summary
Constructors Constructor Description VisibleColumnsRemaining(SelectionLayer selectionLayer)
AIMenuItemState
that is active if not all columns are selected and more than one column is visible.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isActive(NatEventData natEventData)
Return whether this state is currently active or not.
-
-
-
Constructor Detail
-
VisibleColumnsRemaining
public VisibleColumnsRemaining(SelectionLayer selectionLayer)
AIMenuItemState
that is active if not all columns are selected and more than one column is visible.- Parameters:
selectionLayer
- the selection layer used to check for total visible and selected columns.
-
-
Method Detail
-
isActive
public boolean isActive(NatEventData natEventData)
Description copied from interface:IMenuItemState
Return whether this state is currently active or not. Active means, that the menu item property this state is associated with will apply. E.g. if the state is used in conjunction with 'enablement', active means the menu item is to be enabled. This method is called every time the popup menu is shown.- Specified by:
isActive
in interfaceIMenuItemState
- Parameters:
natEventData
- NatTable location information where the popup menu was requested.- Returns:
true
if the state is active.
-
-