Class HoverStylingCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
org.eclipse.nebula.widgets.nattable.hover.command.HoverStylingCommand
- 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.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHoverStylingCommand(HoverStylingCommand command) Constructor used for cloning purposes.HoverStylingCommand(ILayer layer, int columnPosition, int rowPosition, HoverLayer hoverLayer) -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
convertToTargetLayer, getColumnPosition, getLayer, getRowPosition, toString
-
Constructor Details
-
HoverStylingCommand
public HoverStylingCommand(ILayer layer, int columnPosition, int rowPosition, HoverLayer hoverLayer) - Parameters:
layer- The layer to which the given cell position coordinates are related to.columnPosition- The column position of the cell to apply the hover styling.rowPosition- The row position 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.
-
HoverStylingCommand
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:ILayerCommandSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.- Returns:
- a cloned instance of the command
- See Also:
-
getHoverLayer
- Returns:
- The HoverLayer that should handle the command.
-