Class FreezeColumnCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
org.eclipse.nebula.widgets.nattable.freeze.command.FreezeColumnCommand
- All Implemented Interfaces:
ILayerCommand,IFreezeCommand
Command that can be used to freeze a grid for whole columns.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFreezeColumnCommand(FreezeColumnCommand command) Constructor used for cloning the command.FreezeColumnCommand(ILayer layer, int columnPosition) Creates a FreezeColumnCommand for the given column related to the given layer, that doesn't toggle or override a current frozen state.FreezeColumnCommand(ILayer layer, int columnPosition, boolean toggle) Creates a FreezeColumnCommand for the given column related to the given layer, that doesn't override a current frozen state.FreezeColumnCommand(ILayer layer, int columnPosition, boolean toggle, boolean overrideFreeze) Creates a FreezeColumnCommand for the given column related to the given layer. -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.booleanIndicates whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied.booleanisToggle()Indicates whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
convertToTargetLayer, getColumnPosition, getLayer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.command.ILayerCommand
convertToTargetLayer
-
Constructor Details
-
FreezeColumnCommand
Creates a FreezeColumnCommand for the given column related to the given layer, that doesn't toggle or override a current frozen state.- Parameters:
layer- The layer to which the column position matches.columnPosition- The column position that will be the right most column in the frozen part.
-
FreezeColumnCommand
Creates a FreezeColumnCommand for the given column related to the given layer, that doesn't override a current frozen state. If it should toggle the current frozen state can be specified by parameter.- Parameters:
layer- The layer to which the column position matches.columnPosition- The column position that will be the right most column in the frozen part.toggle- whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.
-
FreezeColumnCommand
public FreezeColumnCommand(ILayer layer, int columnPosition, boolean toggle, boolean overrideFreeze) Creates a FreezeColumnCommand for the given column related to the given layer. If it should toggle or override the current frozen state can be specified by parameter.- Parameters:
layer- The layer to which the column position matches.columnPosition- The column position that will be the right most column in the frozen part.toggle- whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.overrideFreeze- whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied.
-
FreezeColumnCommand
Constructor used for cloning the command.- Parameters:
command- The command which is the base for the new cloned instance.
-
-
Method Details
-
isToggle
public boolean isToggle()Description copied from interface:IFreezeCommandIndicates whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.- Specified by:
isTogglein interfaceIFreezeCommand- Returns:
trueif a frozen state should be unfrozen when it is tried to freeze again
-
isOverrideFreeze
public boolean isOverrideFreeze()Description copied from interface:IFreezeCommandIndicates whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied.- Specified by:
isOverrideFreezein interfaceIFreezeCommand- Returns:
trueif a current freeze state should be overriden,falseif a requested freeze should be skipped on a already frozen state.
-
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.- Specified by:
cloneCommandin interfaceILayerCommand- Returns:
- a cloned instance of the command
- See Also:
-