org.eclipse.nebula.widgets.nattable.hover.command
Class HoverStylingCommand
java.lang.Object
  
org.eclipse.nebula.widgets.nattable.command.AbstractPositionCommand
      
org.eclipse.nebula.widgets.nattable.hover.command.HoverStylingCommand
- All Implemented Interfaces: 
 - ILayerCommand
 
public class HoverStylingCommand
- extends AbstractPositionCommand
 
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.
- Author:
 
  - Dirk Fauth
 
- See Also:
 HoverLayer, 
HoverStylingCommandHandler
 
 
 
 
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
protected HoverStylingCommand(HoverStylingCommand command)
- Constructor used for cloning purposes.
- Parameters:
 command - The command that should be used to create a new instance.
 
cloneCommand
public ILayerCommand cloneCommand()
- Description copied from interface: 
ILayerCommand 
- Same semantics as 
Object.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:
 GridLayer.doCommand(ILayerCommand)
 
 
getHoverLayer
public HoverLayer getHoverLayer()
- Returns:
 - The HoverLayer that should handle the command.
 
 
Copyright © 2015. All rights reserved.