public class InlineCellEditEvent extends Object implements ILayerEvent
This event is needed to do the translation of the coordinates and bounds needed for inline editing. On activating an editor via selection these informations are not known and need to be evaluated through the layer event handlers.
| Constructor and Description |
|---|
InlineCellEditEvent(ILayer layer,
PositionCoordinate cellCoordinate,
org.eclipse.swt.widgets.Composite parent,
IConfigRegistry configRegistry,
Object initialValue)
Deprecated.
use constructor without layer parameter
|
InlineCellEditEvent(PositionCoordinate cellCoordinate,
org.eclipse.swt.widgets.Composite parent,
IConfigRegistry configRegistry,
Object initialValue) |
| Modifier and Type | Method and Description |
|---|---|
InlineCellEditEvent |
cloneEvent() |
boolean |
convertToLocal(ILayer localLayer)
Convert the column/row positions carried by the event to the layer about
to handle the event.
|
int |
getColumnPosition() |
IConfigRegistry |
getConfigRegistry() |
Object |
getInitialValue() |
org.eclipse.swt.widgets.Composite |
getParent() |
int |
getRowPosition() |
public InlineCellEditEvent(PositionCoordinate cellCoordinate, org.eclipse.swt.widgets.Composite parent, IConfigRegistry configRegistry, Object initialValue)
cellCoordinate - The coordinates of the cell to edit for the set layer.parent - The parent Composite, needed for the creation of the editor
control.configRegistry - The IConfigRegistry containing the configuration of
the current NatTable instance the command should be executed
for. This is necessary because the edit controllers in the
current architecture are not aware of the instance they are
running in.initialValue - The value that should be put to the activated editor control.@Deprecated public InlineCellEditEvent(ILayer layer, PositionCoordinate cellCoordinate, org.eclipse.swt.widgets.Composite parent, IConfigRegistry configRegistry, Object initialValue)
layer - The layer the cellCoordinates rely on.cellCoordinate - The coordinates of the cell to edit for the set layer.parent - The parent Composite, needed for the creation of the editor
control.configRegistry - The IConfigRegistry containing the configuration of
the current NatTable instance the command should be executed
for. This is necessary because the edit controllers in the
current architecture are not aware of the instance they are
running in.initialValue - The value that should be put to the activated editor control.public boolean convertToLocal(ILayer localLayer)
ILayerEventconvertToLocal in interface ILayerEventlocalLayer - layer about to receive the eventpublic int getColumnPosition()
public int getRowPosition()
public org.eclipse.swt.widgets.Composite getParent()
public IConfigRegistry getConfigRegistry()
IConfigRegistry containing the configuration of the
current NatTable instance the command should be executed for.
This is necessary because the edit controllers in the current
architecture are not aware of the instance they are running in.public Object getInitialValue()
public InlineCellEditEvent cloneEvent()
cloneEvent in interface ILayerEventCopyright © 2019. All rights reserved.