public class TickUpdateCommand extends Object implements ILayerCommand
TickUpdateCommandHandler
is registered.Modifier | Constructor and Description |
---|---|
|
TickUpdateCommand(IConfigRegistry configRegistry,
boolean increment) |
protected |
TickUpdateCommand(TickUpdateCommand command)
Constructor that is used by local cloning operation.
|
Modifier and Type | Method and Description |
---|---|
TickUpdateCommand |
cloneCommand()
Same semantics as
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks. |
boolean |
convertToTargetLayer(ILayer targetLayer)
Convert the row/column coordinates the command might be carrying from the source layer
to the destination (target) layer.
|
IConfigRegistry |
getConfigRegistry() |
boolean |
isIncrement() |
public TickUpdateCommand(IConfigRegistry configRegistry, boolean increment)
configRegistry
- The IConfigRegistry
of the current NatTable instance this
command is executed in. Needed to determine several configurations
on handling this command by its handler.
As the command handler is not aware of the NatTable instance it
is running in, and there is no kind of context, the IConfigRegistry
needs to be transported.increment
- Flag to determine whether the current value in the data model
should be incremented or decremented.protected TickUpdateCommand(TickUpdateCommand command)
command
- The command to create a new instance of.public TickUpdateCommand 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)
public boolean convertToTargetLayer(ILayer targetLayer)
ILayerCommand
convertToTargetLayer
in interface ILayerCommand
targetLayer
- the target layerpublic IConfigRegistry getConfigRegistry()
IConfigRegistry
of the current NatTable instance this
command is executed in. Needed to determine several configurations
on handling this command by its handler.
As the command handler is not aware of the NatTable instance it
is running in, and there is no kind of context, the IConfigRegistry
needs to be transported.public boolean isIncrement()
Copyright © 2013. All Rights Reserved.