Package org.eclipse.graphiti.ui.platform
Interface ICellEditorProvider
-
public interface ICellEditorProviderThe Interface ICellEditorProvider. Clients can use this interface to provide their own cell editors for direct editing. The direct editing feature must simply implement this interface.- Since:
- 0.9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.jface.viewers.CellEditorcreateCellEditor(org.eclipse.swt.widgets.Composite parent)Creates the cell editor on the given parent composite.voidrelocate(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.draw2d.IFigure figure)Relocates a CellEditor.
-
-
-
Method Detail
-
createCellEditor
org.eclipse.jface.viewers.CellEditor createCellEditor(org.eclipse.swt.widgets.Composite parent)
Creates the cell editor on the given parent composite. The methodsprotected abstract Object doGetValue();protected abstract void doSetValue(Object value);
from theCellEditormust handleStringas value. Otherwise the framework cannot interact with the cell editor. The customer is also responsible to set a correctICellEditorValidatoron theCellEditorif input validation is needed.- Parameters:
parent- the parent composite to create the cell editor on- Returns:
- the newly created cell editor
-
relocate
void relocate(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.draw2d.IFigure figure)Relocates a CellEditor.- Parameters:
cellEditor- the CellEditorfigure- the text figure on which direct editing was initiated
-
-