Class HoverStylingByIndexCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.hover.command.HoverStylingByIndexCommand
- All Implemented Interfaces:
ILayerCommand
Command that is used to apply hover styling in a NatTable.
This command needs to know about the HoverLayer on which it is executed because there might be several HoverLayer involved in a grid composition and therefore the command might be consumed by the wrong HoverLayer if we wouldn't know about the layer to handle it.
- Since:
- 2.1
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHoverStylingByIndexCommand
(int columnIndex, int rowIndex, HoverLayer hoverLayer) protected
Constructor used for cloning purposes. -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.int
int
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
convertToTargetLayer
-
Constructor Details
-
HoverStylingByIndexCommand
- Parameters:
columnIndex
- The column index of the cell to apply the hover styling.rowIndex
- The row index of the cell to apply the hover styling.hoverLayer
- The HoverLayer that should handle the command. Necessary to avoid that other HoverLayer instances in a grid composition handle and consume the command.
-
HoverStylingByIndexCommand
Constructor used for cloning purposes.- Parameters:
command
- The command that should be used to create a new instance.
-
-
Method Details
-
cloneCommand
Description copied from interface:ILayerCommand
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.- Specified by:
cloneCommand
in interfaceILayerCommand
- Overrides:
cloneCommand
in classAbstractContextFreeCommand
- Returns:
- a cloned instance of the command
- See Also:
-
getColumnIndex
public int getColumnIndex()- Returns:
- The column index of the cell to apply the hover styling.
-
getRowIndex
public int getRowIndex()- Returns:
- The row index of the cell to apply the hover styling.
-
getHoverLayer
- Returns:
- The HoverLayer that should handle the command.
-