|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand org.eclipse.nebula.widgets.nattable.freeze.command.FreezeRowCommand
public class FreezeRowCommand
Command that can be used to freeze a grid for whole rows.
Constructor Summary | |
---|---|
protected |
FreezeRowCommand(FreezeRowCommand command)
Constructor used for cloning the command. |
|
FreezeRowCommand(ILayer layer,
int rowPosition)
Creates a FreezeRowCommand for the given row position related to the given layer, that doesn't toggle or override a current frozen state. |
|
FreezeRowCommand(ILayer layer,
int rowPosition,
boolean toggle)
Creates a FreezeRowCommand for the given row position related to the given layer, that doesn't override a current frozen state. |
|
FreezeRowCommand(ILayer layer,
int rowPosition,
boolean toggle,
boolean overrideFreeze)
Creates a FreezeRowCommand for the given row position related to the given layer. |
Method Summary | |
---|---|
ILayerCommand |
cloneCommand()
Same semantics as Object.clone() Used to make a copies of the
command if has to passed to different layer stacks. |
boolean |
isOverrideFreeze()
Indicates whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied. |
boolean |
isToggle()
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.AbstractRowCommand |
---|
convertToTargetLayer, getRowPosition, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.nebula.widgets.nattable.command.ILayerCommand |
---|
convertToTargetLayer |
Constructor Detail |
---|
public FreezeRowCommand(ILayer layer, int rowPosition)
layer
- The layer to which the row position matches.rowPosition
- The row position that will be the bottom row in the frozen
part.public FreezeRowCommand(ILayer layer, int rowPosition, boolean toggle)
layer
- The layer to which the row position matches.rowPosition
- The row position that will be the bottom row 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.public FreezeRowCommand(ILayer layer, int rowPosition, boolean toggle, boolean overrideFreeze)
layer
- The layer to which the row position matches.rowPosition
- The row position that will be the bottom row 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.protected FreezeRowCommand(FreezeRowCommand command)
command
- The command which is the base for the new cloned instance.Method Detail |
---|
public boolean isToggle()
IFreezeCommand
isToggle
in interface IFreezeCommand
true
if a frozen state should be unfrozen when it is
tried to freeze againpublic boolean isOverrideFreeze()
IFreezeCommand
isOverrideFreeze
in interface IFreezeCommand
true
if a current freeze state should be overriden,
false
if a requested freeze should be skipped on a
already frozen state.public ILayerCommand cloneCommand()
ILayerCommand
Object.clone()
Used to make a copies of the
command if has to passed to different layer stacks.
cloneCommand
in interface ILayerCommand
GridLayer.doCommand(ILayerCommand)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |