public class InlineEditHandler extends Object implements ICellEditHandler
ICellEditHandler
that handles inline editing of single values.
On commit it will execute an UpdateDataCommand
for the specified value
and move the selection in the NatTable.Constructor and Description |
---|
InlineEditHandler(ILayer layer,
int columnPosition,
int rowPosition) |
Modifier and Type | Method and Description |
---|---|
boolean |
commit(Object canonicalValue,
SelectionLayer.MoveDirectionEnum direction)
Commit the new value and handle the selection in the current NatTable after
commit.
|
public InlineEditHandler(ILayer layer, int columnPosition, int rowPosition)
layer
- The ILayer
to which the column and row positions are related to
and on which the update command should be executedcolumnPosition
- The column position of the cell that is editedrowPosition
- The row position of the cell that is editedpublic boolean commit(Object canonicalValue, SelectionLayer.MoveDirectionEnum direction)
ICellEditHandler
commit
in interface ICellEditHandler
canonicalValue
- The value to commit.direction
- The direction to move the selection after commit.true
if the data update succeeded, false
if something went wrongCopyright © 2013. All Rights Reserved.