Class AbstractDialogCellEditor
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.edit.gui.AbstractDialogCellEditor
-
- All Implemented Interfaces:
ICellEditor
,ICellEditDialog
- Direct Known Subclasses:
FileDialogCellEditor
public abstract class AbstractDialogCellEditor extends Object implements ICellEditor, ICellEditDialog
Abstract implementation of aICellEditor
that is also aICellEditDialog
. By creating aICellEditor
based on this abstract implementation, you are able to create an editor that wraps a SWT or JFace dialog. As SWT and JFace dialogs does not extend the same base classes, the local instance for the wrapped dialog is of type object in here. In the concrete implementation thegetDialogInstance()
should return the concrete dialog type that is wrapped.By using this implementation, the
CellEditDialogFactory
will return the instance of this editor, after it was activated previously.
-
-
Field Summary
Fields Modifier and Type Field Description protected IConfigRegistry
configRegistry
TheIConfigRegistry
containing the configuration of the current NatTable instance.protected IEditErrorHandler
conversionEditErrorHandler
The error handler that will be used to show conversion errors.protected IDataValidator
dataValidator
TheIDataValidator
that should be used to validate the input value prior committing.protected Object
dialog
TheDialog
that should be used as a cell editor.protected IDisplayConverter
displayConverter
TheIDisplayConverter
that should be used to convert the input value to the canonical value and vice versa.protected Map<String,Object>
editDialogSettings
Map that contains custom configurations for thisCellEditDialog
.protected DialogEditHandler
editHandler
TheICellEditHandler
that will be used on commit.protected ILayerCell
layerCell
The cell whose editor should be activated.protected org.eclipse.swt.widgets.Composite
parent
The parent Composite, needed for the creation of the dialog.protected IEditErrorHandler
validationEditErrorHandler
The error handler that will be used to show validation errors.-
Fields inherited from interface org.eclipse.nebula.widgets.nattable.edit.gui.ICellEditDialog
DIALOG_MESSAGE, DIALOG_SHELL_ICON, DIALOG_SHELL_LOCATION, DIALOG_SHELL_RESIZABLE, DIALOG_SHELL_SIZE, DIALOG_SHELL_TITLE
-
-
Constructor Summary
Constructors Constructor Description AbstractDialogCellEditor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
activateAtAnyPosition()
This method is intended to be used byIMouseEventMatcher
implementations that need to check for the editor and the click position to determine whether an editor should be activated or not.org.eclipse.swt.widgets.Control
activateCell(org.eclipse.swt.widgets.Composite parent, Object originalCanonicalValue, EditModeEnum editMode, ICellEditHandler editHandler, ILayerCell cell, IConfigRegistry configRegistry)
This method will be called by the framework to activate this cell editor.boolean
activateOnTraversal(IConfigRegistry configRegistry, List<String> configLabels)
This method is asked on tab traversal whether thisICellEditor
should be automatically activated or not.void
addEditorControlListeners()
This method is intended to add listeners to the wrapped editor control to add context related behavior.org.eclipse.swt.graphics.Rectangle
calculateControlBounds(org.eclipse.swt.graphics.Rectangle cellBounds)
This method is used to calculate the bounds of the edit control when opened inline.Object
calculateValue(Object currentValue, Object processValue)
In caseICellEditDialog.getEditType()
returns an edit type for processing values, this method should implemented to do that transformation.abstract void
close()
Close/dispose the containedControl
boolean
commit(SelectionLayer.MoveDirectionEnum direction)
Commits the current value of this editor.boolean
commit(SelectionLayer.MoveDirectionEnum direction, boolean closeAfterCommit)
Commits the current value of this editor.boolean
commit(SelectionLayer.MoveDirectionEnum direction, boolean closeAfterCommit, boolean skipValidation)
Commits the current value of this editor.abstract Object
createDialogInstance()
Will create the dialog instance that should be wrapped by thisAbstractDialogCellEditor
.org.eclipse.swt.widgets.Control
createEditorControl(org.eclipse.swt.widgets.Composite parent)
Creates the editor control that is wrapped by this ICellEditor.Object
getCanonicalValue()
Converts the current value in this editor using the configuredIDisplayConverter
.Object
getCanonicalValue(IEditErrorHandler conversionErrorHandler)
Converts the current value in this editor using the configuredIDisplayConverter
.int
getColumnIndex()
int
getColumnPosition()
Object
getCommittedValue()
abstract Object
getDialogInstance()
org.eclipse.swt.widgets.Control
getEditorControl()
abstract Object
getEditorValue()
Returns the current value in this editor prior to conversion.EditTypeEnum
getEditType()
int
getRowIndex()
int
getRowPosition()
abstract boolean
isClosed()
abstract int
open()
Opens this dialog, creating it first if it has not yet been created.boolean
openAdjacentEditor()
Determines behavior after committing the value of this editor in combination with selection movement.boolean
openInline(IConfigRegistry configRegistry, List<String> configLabels)
Determines whether the editor should be opened inline or using a dialog.boolean
openMultiEditDialog()
This is a very special configuration to tell whether an ICellEditor should open a multi edit dialog for multi editing or not.void
removeEditorControlListeners()
This method is intended to remove listeners from the wrapped editor control that was added byICellEditor.addEditorControlListeners()
before to add context related behavior.void
setCanonicalValue(Object canonicalValue)
Sets the given canonical value to the wrapped editor control.void
setDialogSettings(Map<String,Object> editDialogSettings)
Allows to customize the appearance of the dialog.abstract void
setEditorValue(Object value)
Sets the given value to editor control.boolean
supportMultiEdit(IConfigRegistry configRegistry, List<String> configLabels)
Determines whether this editor supports multi edit behavior or not.boolean
validateCanonicalValue(Object canonicalValue)
Validates the given value using the configuredIDataValidator
.boolean
validateCanonicalValue(Object canonicalValue, IEditErrorHandler validationErrorHandler)
Validates the current value in this editor using the configuredIDataValidator
.
-
-
-
Field Detail
-
parent
protected org.eclipse.swt.widgets.Composite parent
The parent Composite, needed for the creation of the dialog.
-
dialog
protected Object dialog
TheDialog
that should be used as a cell editor.
-
layerCell
protected ILayerCell layerCell
The cell whose editor should be activated.
-
editHandler
protected DialogEditHandler editHandler
TheICellEditHandler
that will be used on commit.
-
displayConverter
protected IDisplayConverter displayConverter
TheIDisplayConverter
that should be used to convert the input value to the canonical value and vice versa.
-
dataValidator
protected IDataValidator dataValidator
TheIDataValidator
that should be used to validate the input value prior committing.
-
conversionEditErrorHandler
protected IEditErrorHandler conversionEditErrorHandler
The error handler that will be used to show conversion errors.
-
validationEditErrorHandler
protected IEditErrorHandler validationEditErrorHandler
The error handler that will be used to show validation errors.
-
configRegistry
protected IConfigRegistry configRegistry
TheIConfigRegistry
containing the configuration of the current NatTable instance. This is necessary because the editors in the current architecture are not aware of the NatTable instance they are running in.
-
editDialogSettings
protected Map<String,Object> editDialogSettings
Map that contains custom configurations for thisCellEditDialog
. We do not use theIDialogSettings
provided by JFace, because they are used to store and load the settings in XML rather than overriding the behaviour.
-
-
Method Detail
-
getEditType
public EditTypeEnum getEditType()
- Specified by:
getEditType
in interfaceICellEditDialog
- Returns:
- The edit type that has impact on how the set value will be
updated to the data model. By default
EditTypeEnum.SET
is returned, which will simply set the committed value to the data model. Every other edit type will do some calculation based on the committed value and the current value in the data model.
-
calculateValue
public Object calculateValue(Object currentValue, Object processValue)
Description copied from interface:ICellEditDialog
In caseICellEditDialog.getEditType()
returns an edit type for processing values, this method should implemented to do that transformation.- Specified by:
calculateValue
in interfaceICellEditDialog
- Parameters:
currentValue
- The current value for the cell before data model updateprocessValue
- The value committed to the editor that should be used for calculation on the current value.- Returns:
- The value that should be used to update the data model.
-
open
public abstract int open()
Description copied from interface:ICellEditDialog
Opens this dialog, creating it first if it has not yet been created.Specified in here for convenience so we only need to check against this interface for a dialog.
- Specified by:
open
in interfaceICellEditDialog
- Returns:
- the return code
-
activateCell
public org.eclipse.swt.widgets.Control activateCell(org.eclipse.swt.widgets.Composite parent, Object originalCanonicalValue, EditModeEnum editMode, ICellEditHandler editHandler, ILayerCell cell, IConfigRegistry configRegistry)
Description copied from interface:ICellEditor
This method will be called by the framework to activate this cell editor. It initializes the the values needed for further processing of the editor and will add listeners for general behavior of the editor control.- Specified by:
activateCell
in interfaceICellEditor
- Parameters:
parent
- The parent Composite, needed for the creation of the editor control.originalCanonicalValue
- The value that should be put to the activated editor control.editMode
- TheEditModeEnum
which is used to activate special behavior and styling. This is needed because activating an editor inline will have different behavior (e.g. moving the selection after commit) and styling than rendering the editor on a subdialog.editHandler
- TheICellEditHandler
that will be used on commit.cell
- The cell whose corresponding editor should be activated.configRegistry
- TheIConfigRegistry
containing the configuration of the current NatTable instance. This is necessary because the editors in the current architecture are not aware of the NatTable instance they are running in.- Returns:
- The SWT
Control
to be used for capturing the new cell value.
-
createDialogInstance
public abstract Object createDialogInstance()
Will create the dialog instance that should be wrapped by thisAbstractDialogCellEditor
. Note that you always need to create and return a new instance because on commit or close the dialog will be closed, which disposes the shell of the dialog. Therefore the instance will not be usable after commit/close.- Returns:
- The dialog instance that should be wrapped by this
AbstractDialogCellEditor
-
getDialogInstance
public abstract Object getDialogInstance()
- Returns:
- The current dialog instance that is wrapped by this
AbstractDialogCellEditor
-
getEditorValue
public abstract Object getEditorValue()
Description copied from interface:ICellEditor
Returns the current value in this editor prior to conversion. For a text editor that is used to edit integer values, this would mean it returns the text value instead of the converted integer value. This method is only intended to be used internally .- Specified by:
getEditorValue
in interfaceICellEditor
- Returns:
- The current value in this editor prior to conversion.
-
setEditorValue
public abstract void setEditorValue(Object value)
Description copied from interface:ICellEditor
Sets the given value to editor control. This method is used to put the display values to the wrapped editor.- Specified by:
setEditorValue
in interfaceICellEditor
- Parameters:
value
- The display value to set to the wrapped editor control.
-
getCanonicalValue
public Object getCanonicalValue()
Description copied from interface:ICellEditor
Converts the current value in this editor using the configuredIDisplayConverter
. If there is noIDisplayConverter
registered for this editor, the value itself will be returned.- Specified by:
getCanonicalValue
in interfaceICellEditor
- Returns:
- The canonical value after converting the current value or the
value itself if no
IDisplayConverter
is configured. - See Also:
IDisplayConverter
-
getCanonicalValue
public Object getCanonicalValue(IEditErrorHandler conversionErrorHandler)
Description copied from interface:ICellEditor
Converts the current value in this editor using the configuredIDisplayConverter
. If there is noIDisplayConverter
registered for this editor, the value itself will be returned. Will use the specifiedIEditErrorHandler
for handling conversion errors.- Specified by:
getCanonicalValue
in interfaceICellEditor
- Parameters:
conversionErrorHandler
- The error handler that will be activated in case of conversion errors.- Returns:
- The canonical value after converting the current value or the
value itself if no
IDisplayConverter
is configured. - See Also:
IDisplayConverter
-
setCanonicalValue
public void setCanonicalValue(Object canonicalValue)
Description copied from interface:ICellEditor
Sets the given canonical value to the wrapped editor control. Prior to setting the value it needs to be converted to the display value, using the configuredIDisplayConverter
.- Specified by:
setCanonicalValue
in interfaceICellEditor
- Parameters:
canonicalValue
- The canonical value to be set to the wrapped editor control.
-
validateCanonicalValue
public boolean validateCanonicalValue(Object canonicalValue)
Description copied from interface:ICellEditor
Validates the given value using the configuredIDataValidator
. This method should be called with the value converted before by usingICellEditor.getCanonicalValue()
.- Specified by:
validateCanonicalValue
in interfaceICellEditor
- Parameters:
canonicalValue
- The canonical value to validate.- Returns:
true
if the current value in this editor is valid or noIDataValidator
is registered,false
if the value is not valid.
-
validateCanonicalValue
public boolean validateCanonicalValue(Object canonicalValue, IEditErrorHandler validationErrorHandler)
Description copied from interface:ICellEditor
Validates the current value in this editor using the configuredIDataValidator
. Validates the given value using the configuredIDataValidator
. This method should be called with the value converted before by usingICellEditor.getCanonicalValue()
. Will use the specifiedIEditErrorHandler
for handling validation errors.- Specified by:
validateCanonicalValue
in interfaceICellEditor
- Parameters:
canonicalValue
- The canonical value to validate.validationErrorHandler
- The error handler that will be activated in case of validation errors.- Returns:
true
if the current value in this editor is valid or noIDataValidator
is registered,false
if the value is not valid.
-
commit
public boolean commit(SelectionLayer.MoveDirectionEnum direction)
Description copied from interface:ICellEditor
Commits the current value of this editor. Will first try to convert and validate the current value, and if that succeeds and the value can be committed to the data model, the editor will be closed afterwards.- Specified by:
commit
in interfaceICellEditor
- Parameters:
direction
- The direction the selection within the NatTable should move after commit has finished.- Returns:
true
if the commit operation succeeded,false
if the current value could not be committed. A value might not be committed for example if the conversion or the validation failed.
-
commit
public boolean commit(SelectionLayer.MoveDirectionEnum direction, boolean closeAfterCommit)
Description copied from interface:ICellEditor
Commits the current value of this editor. Will first try to convert the current value. Then it is checked if the validation should be executed which can be specified via parameter. If that succeeds and the value can be committed to the data model, the editor will be closed afterwards.- Specified by:
commit
in interfaceICellEditor
- Parameters:
direction
- The direction the selection within the NatTable should move after commit has finished.closeAfterCommit
- flag to tell whether this editor needs to closed after the commit or if it should stay open.- Returns:
true
if the commit operation succeeded,false
if the current value could not be committed. A value might not be committed for example if the conversion or the validation failed.
-
commit
public boolean commit(SelectionLayer.MoveDirectionEnum direction, boolean closeAfterCommit, boolean skipValidation)
Description copied from interface:ICellEditor
Commits the current value of this editor.- Specified by:
commit
in interfaceICellEditor
- Parameters:
direction
- The direction the selection within the NatTable should move after commit has finished.closeAfterCommit
- flag to tell whether this editor needs to closed after the commit or if it should stay open.skipValidation
- Flag to specify whether the current value in this editor should be validated or not.- Returns:
true
if the commit operation succeeded,false
if the current value could not be committed. A value might not be committed for example if the conversion or the validation failed.
-
getCommittedValue
public Object getCommittedValue()
- Specified by:
getCommittedValue
in interfaceICellEditDialog
- Returns:
- The canonical value that was committed to the editor control.
-
close
public abstract void close()
Description copied from interface:ICellEditor
Close/dispose the containedControl
- Specified by:
close
in interfaceICellEditor
-
isClosed
public abstract boolean isClosed()
- Specified by:
isClosed
in interfaceICellEditor
- Returns:
true
if this editor has been closed already,false
if it is still open
-
getEditorControl
public org.eclipse.swt.widgets.Control getEditorControl()
- Specified by:
getEditorControl
in interfaceICellEditor
- Returns:
- The editor control that is wrapped by this ICellEditor.
-
createEditorControl
public org.eclipse.swt.widgets.Control createEditorControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface:ICellEditor
Creates the editor control that is wrapped by this ICellEditor. Will use the style configurations in ConfigRegistry for styling the control.- Specified by:
createEditorControl
in interfaceICellEditor
- Parameters:
parent
- The Composite that will be the parent of the new editor control. Can not benull
- Returns:
- The created editor control that is wrapped by this ICellEditor.
-
openInline
public boolean openInline(IConfigRegistry configRegistry, List<String> configLabels)
Description copied from interface:ICellEditor
Determines whether the editor should be opened inline or using a dialog. By default it will check this by configuration attributeEditConfigAttributes.OPEN_IN_DIALOG
. If there is no configuration found for this,true
will be returned for backwards compatibility.If this method returns
true
, the editor will be opened inline (default).There might be editors that are only able to be opened in a dialog. These implementations need to override this method to always return
false
, so the editor never gets opened inline.- Specified by:
openInline
in interfaceICellEditor
- Parameters:
configRegistry
- TheIConfigRegistry
to retrieve the configuration for inline/dialog editing out of. Needed here because the instanceIConfigRegistry
might not be set on calling this method.configLabels
- The labels out of the LabelStack of the cell whose editor should be activated. Needed here because this method needs to be called prior to activation to determine where to activate it.- Returns:
true
if the editor should opened inline,false
if not.- See Also:
EditConfigAttributes.OPEN_IN_DIALOG
-
supportMultiEdit
public boolean supportMultiEdit(IConfigRegistry configRegistry, List<String> configLabels)
Description copied from interface:ICellEditor
Determines whether this editor supports multi edit behavior or not. If this method returnstrue
, on selecting and pressing F2 on several cells that are editable, having the same editor type and converter registered, a multi edit dialog will open. By default this method will returntrue
. You can change this behavior by setting the configuration attributeEditConfigAttributes.SUPPORT_MULTI_EDIT
.You should consider returning
false
e.g. if the update operation is complex or you use conditional validation, where a value is validated against another value in the data model.- Specified by:
supportMultiEdit
in interfaceICellEditor
- Parameters:
configRegistry
- TheIConfigRegistry
to retrieve the configuration for multi edit support out of. Needed here because the instanceIConfigRegistry
might not be set on calling this method.configLabels
- The labels out of the LabelStack of the cell whose editor should be activated. Needed here because this method needs to be called prior to activation to determine where to activate it.- Returns:
true
if this editor will open in a subdialog for multi editing,false
if the multi editing of this kind of cell editor is not supported.- See Also:
EditConfigAttributes.SUPPORT_MULTI_EDIT
-
openMultiEditDialog
public boolean openMultiEditDialog()
Description copied from interface:ICellEditor
This is a very special configuration to tell whether an ICellEditor should open a multi edit dialog for multi editing or not. Usually for multi editing there should be always a multi edit dialog be opened. There are only special cases where this doesn't make sense. The only types of ICellEditors that shouldn't open multi edit dialogs are editors that change their values directly and there is no interactively editor control opened, e.g. checkboxes.- Specified by:
openMultiEditDialog
in interfaceICellEditor
- Returns:
true
if for multi editing a multi edit dialog should be opened,false
if the multi editing should be performed directly without opening a multi edit dialog. Note:true
is the default value and changing it tofalse
for a custom editor might cause issues if not dealed correctly.
-
openAdjacentEditor
public boolean openAdjacentEditor()
Description copied from interface:ICellEditor
Determines behavior after committing the value of this editor in combination with selection movement. If this method returntrue
and the selection is moved after committing, the editor for the newly selected cell will be activated immediately. If this method returnsfalse
or the selection is not moved after commit, no action should be executed.The behavior previous to this configuration was to not open the adjacent editor. So if there is no configuration registered for this,
false
will be returned by default.Note: It only makes sense to call this method if the editor is already activated. Calling this method on an editor that has not been activated already will lead to exceptions.
- Specified by:
openAdjacentEditor
in interfaceICellEditor
- Returns:
true
if the adjacent editor should be opened if the selection moves after commit,false
if not.- See Also:
EditConfigAttributes.OPEN_ADJACENT_EDITOR
-
activateAtAnyPosition
public boolean activateAtAnyPosition()
Description copied from interface:ICellEditor
This method is intended to be used byIMouseEventMatcher
implementations that need to check for the editor and the click position to determine whether an editor should be activated or not. By default this method will returntrue
. Special implementations that need a different behavior need to returnfalse
instead. E.g. checkbox editors should only be activated in case the icon that represents the checkbox is clicked.- Specified by:
activateAtAnyPosition
in interfaceICellEditor
- Returns:
true
if thisICellEditor
should be activated by clicking at any position in the corresponding cell,false
if there need to be a special position clicked.
-
activateOnTraversal
public boolean activateOnTraversal(IConfigRegistry configRegistry, List<String> configLabels)
Description copied from interface:ICellEditor
This method is asked on tab traversal whether thisICellEditor
should be automatically activated or not. This is necessary to avoid automatically changing the value of a checkbox or opening a dialog editor on traversal.- Specified by:
activateOnTraversal
in interfaceICellEditor
- Parameters:
configRegistry
- TheIConfigRegistry
to retrieve the configuration out of. Needed here because the instanceIConfigRegistry
might not be set on calling this method.configLabels
- The labels out of the LabelStack of the cell whose editor should be activated.- Returns:
true
if thisICellEditor
should be activated in case of tab traversal,false
if not.- See Also:
EditConfigAttributes.ACTIVATE_EDITOR_ON_TRAVERSAL
-
addEditorControlListeners
public void addEditorControlListeners()
Description copied from interface:ICellEditor
This method is intended to add listeners to the wrapped editor control to add context related behavior. For example, inEditModeEnum.INLINE
by default this should add a FocusListener that commits the current value if the editor control loses focus.This method was introduced mainly because of two issues:
- On Mac OS calling setBounds() on a Control will cause losing focus. So listeners need to be added after this method is called by the EditController, otherwise on activating the editor it will be closed immediately after the correct size is calculated.
- The main concept for cell editor activation is, that the editor control is disposed on closing the editor. This way everytime the cell editor is activated, a new editor control will be created. If an editor is implemented that needs to keep the editor control after closing the editor, it needs to be ensured that the listeners are removed again. Otherwise the listeners would be added again everytime the editor is activated.
EditController.editCell(ILayerCell, Composite, Object, IConfigRegistry)
.- Specified by:
addEditorControlListeners
in interfaceICellEditor
-
removeEditorControlListeners
public void removeEditorControlListeners()
Description copied from interface:ICellEditor
This method is intended to remove listeners from the wrapped editor control that was added byICellEditor.addEditorControlListeners()
before to add context related behavior.This method was introduced to add the possibility to create an
ICellEditor
whose wrapped editor control should not be disposed on closing the editor.The main concept for cell editor activation is, that the editor control is disposed on closing the editor. This way everytime the cell editor is activated, a new editor control will be created. If an editor is implemented that needs to keep the editor control after closing the editor, it needs to be ensured that the listeners are removed again. Otherwise the listeners would be added again everytime the editor is activated.
This method needs to be called onICellEditor.close()
. There is no automatical call by the framework if you are not using the abstract implementation ofICellEditor
.- Specified by:
removeEditorControlListeners
in interfaceICellEditor
-
calculateControlBounds
public org.eclipse.swt.graphics.Rectangle calculateControlBounds(org.eclipse.swt.graphics.Rectangle cellBounds)
Description copied from interface:ICellEditor
This method is used to calculate the bounds of the edit control when opened inline. By default it should return the given cell bounds to match the cell structure in NatTable. For several cases it might be useful to return the preferred size to show all content rather than trimming the control to the cell size.Note: By changing the bounds you should ensure to only modify width and height attributes and not x and y coordinate, otherwise the editor control will show up somewhere else and not in place of the cell that is edited.
- Specified by:
calculateControlBounds
in interfaceICellEditor
- Parameters:
cellBounds
- The bounds of the cell for which the editor is opened.- Returns:
- The bounds of the editor control that should be applied. By default the cell bounds for several cases bigger.
-
setDialogSettings
public void setDialogSettings(Map<String,Object> editDialogSettings)
Description copied from interface:ICellEditDialog
Allows to customize the appearance of the dialog. This method will be called by the framework at creation time of the dialog via theCellEditDialogFactory
.The map containing the settings can be registered to the
IConfigRegistry
for the keyEditConfigAttributes.EDIT_DIALOG_SETTINGS
. The keys that are valid for this map are specified below.- Specified by:
setDialogSettings
in interfaceICellEditDialog
- Parameters:
editDialogSettings
- Map containing the settings to customize the edit dialog appearance.- See Also:
ICellEditDialog.DIALOG_SHELL_TITLE
,ICellEditDialog.DIALOG_SHELL_ICON
,ICellEditDialog.DIALOG_SHELL_LOCATION
,ICellEditDialog.DIALOG_SHELL_SIZE
,ICellEditDialog.DIALOG_SHELL_RESIZABLE
,ICellEditDialog.DIALOG_MESSAGE
,EditConfigAttributes.EDIT_DIALOG_SETTINGS
-
getColumnIndex
public int getColumnIndex()
- Specified by:
getColumnIndex
in interfaceICellEditor
- Returns:
- The column index of the cell to which this editor is attached.
-
getRowIndex
public int getRowIndex()
- Specified by:
getRowIndex
in interfaceICellEditor
- Returns:
- The row index of the cell to which this editor is attached.
-
getColumnPosition
public int getColumnPosition()
- Specified by:
getColumnPosition
in interfaceICellEditor
- Returns:
- The column position of the cell to which this editor is attached.
-
getRowPosition
public int getRowPosition()
- Specified by:
getRowPosition
in interfaceICellEditor
- Returns:
- The row position of the cell to which this editor is attached.
-
-