Package org.eclipse.jface.viewers
Class TableViewerEditor
- java.lang.Object
-
- org.eclipse.jface.viewers.ColumnViewerEditor
-
- org.eclipse.jface.viewers.TableViewerEditor
-
public final class TableViewerEditor extends ColumnViewerEditor
This is an editor-implementation forTable
- Since:
- 3.3
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.viewers.ColumnViewerEditor
DEFAULT, KEEP_EDITOR_ON_DOUBLE_CLICK, KEYBOARD_ACTIVATION, TABBING_CYCLE_IN_ROW, TABBING_CYCLE_IN_VIEWER, TABBING_HORIZONTAL, TABBING_MOVE_TO_ROW_NEIGHBOR, TABBING_VERTICAL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
create(TableViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
Create a customized editor whose activation process is customizedstatic void
create(TableViewer viewer, org.eclipse.jface.viewers.SWTFocusCellManager focusCellManager, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
Create a customized editor with focusable cellsViewerCell
getFocusCell()
protected void
setEditor(Control w, Item item, int columnNumber)
Position the editor inside the controlprotected void
setLayoutData(CellEditor.LayoutData layoutData)
set the layout data for the editorprotected void
updateFocusCell(ViewerCell focusCell, ColumnViewerEditorActivationEvent event)
-
Methods inherited from class org.eclipse.jface.viewers.ColumnViewerEditor
addEditorActivationListener, getViewer, processTraverseEvent, removeEditorActivationListener
-
-
-
-
Method Detail
-
create
public static void create(TableViewer viewer, org.eclipse.jface.viewers.SWTFocusCellManager focusCellManager, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
Create a customized editor with focusable cells- Parameters:
viewer
- the viewer the editor is created forfocusCellManager
- the cell focus manager if one needed elsenull
editorActivationStrategy
- activation strategy to control if an editor activatedfeature
- bit mask controlling the editor- See Also:
create(TableViewer, ColumnViewerEditorActivationStrategy, int)
-
create
public static void create(TableViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
Create a customized editor whose activation process is customized- Parameters:
viewer
- the viewer the editor is created foreditorActivationStrategy
- activation strategy to control if an editor activatedfeature
- bit mask controlling the editor
-
setEditor
protected void setEditor(Control w, Item item, int columnNumber)
Description copied from class:ColumnViewerEditor
Position the editor inside the control- Specified by:
setEditor
in classColumnViewerEditor
- Parameters:
w
- the editor controlitem
- the item (row) in which the editor is drawn incolumnNumber
- the column number in which the editor is shown
-
setLayoutData
protected void setLayoutData(CellEditor.LayoutData layoutData)
Description copied from class:ColumnViewerEditor
set the layout data for the editor- Specified by:
setLayoutData
in classColumnViewerEditor
- Parameters:
layoutData
- the layout data used when editor is displayed
-
getFocusCell
public ViewerCell getFocusCell()
- Overrides:
getFocusCell
in classColumnViewerEditor
- Returns:
- the cell currently holding the focus if no cell has the focus or
the viewer implementation doesn't support
null
is returned
-
updateFocusCell
protected void updateFocusCell(ViewerCell focusCell, ColumnViewerEditorActivationEvent event)
- Specified by:
updateFocusCell
in classColumnViewerEditor
- Parameters:
focusCell
- updates the cell with the current input focusevent
- the event requesting to update the focusCell
-
-