org.eclipse.nebula.widgets.nattable.edit.command
Class EditCellCommand

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
      extended by org.eclipse.nebula.widgets.nattable.edit.command.EditCellCommand
All Implemented Interfaces:
ILayerCommand

public class EditCellCommand
extends AbstractContextFreeCommand

Command that will trigger activating the edit mode for the specified cell. The corresponding command handler is responsible for determining if activation should proceed because of race conditions like e.g. the cell is configured to be editable or another editor is active containing an invalid data.


Constructor Summary
EditCellCommand(org.eclipse.swt.widgets.Composite parent, IConfigRegistry configRegistry, ILayerCell cell)
           
 
Method Summary
 ILayerCell getCell()
           
 IConfigRegistry getConfigRegistry()
           
 org.eclipse.swt.widgets.Composite getParent()
           
 
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditCellCommand

public EditCellCommand(org.eclipse.swt.widgets.Composite parent,
                       IConfigRegistry configRegistry,
                       ILayerCell cell)
Parameters:
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.
cell - The cell that should be put into the edit mode.
Method Detail

getConfigRegistry

public IConfigRegistry getConfigRegistry()
Returns:
The IConfigRegistry containing the configuration of the current NatTable instance the command should be executed for.

getParent

public org.eclipse.swt.widgets.Composite getParent()
Returns:
The parent Composite, needed for the creation of the editor control.

getCell

public ILayerCell getCell()
Returns:
The cell that should be put in edit mode.


Copyright © 2015. All rights reserved.