Package org.eclipse.jface.viewers
Class ColumnViewerEditor
java.lang.Object
org.eclipse.jface.viewers.ColumnViewerEditor
- Direct Known Subclasses:
- TableViewerEditor,- TreeViewerEditor
This is the base for all editor implementations of Viewers. ColumnViewer
 implementors have to subclass this class and implement the missing methods
- Since:
- 3.3
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intTabbing from cell to cell is turned offstatic final intStyle mask used to turn off the feature that an editor activation is canceled on double click.static final intStyle mask used to enable keyboard activationstatic final intShould if the end of the row is reach started from the beginning in the same rowstatic final intShould if the end of the viewer is reached, start from the first element in the viewer (conversely, hitting shift-tab in the first element of the viewer results in jumping to the last element of the viewer)static final intShould tabbing from column to column with in one row be supportedstatic final intShould if the end of the row is reach started from the start/end of the row below/abovestatic final intSupport tabbing to Cell above/below the current cell
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedColumnViewerEditor(ColumnViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the given listener, it is to be notified when the cell editor is activated or deactivated.protected ColumnViewerprotected voidprocessTraverseEvent(int columnIndex, ViewerRow row, TraverseEvent event) Process the traverse event and opens the next available editor depending of the implemented strategy.voidRemoves the given listener.protected abstract voidPosition the editor inside the controlprotected abstract voidsetLayoutData(CellEditor.LayoutData layoutData) set the layout data for the editorprotected abstract voidupdateFocusCell(ViewerCell focusCell, ColumnViewerEditorActivationEvent event) 
- 
Field Details- 
DEFAULTpublic static final int DEFAULTTabbing from cell to cell is turned off- See Also:
 
- 
TABBING_MOVE_TO_ROW_NEIGHBORpublic static final int TABBING_MOVE_TO_ROW_NEIGHBORShould if the end of the row is reach started from the start/end of the row below/above- See Also:
 
- 
TABBING_CYCLE_IN_ROWpublic static final int TABBING_CYCLE_IN_ROWShould if the end of the row is reach started from the beginning in the same row- See Also:
 
- 
TABBING_VERTICALpublic static final int TABBING_VERTICALSupport tabbing to Cell above/below the current cell- See Also:
 
- 
TABBING_HORIZONTALpublic static final int TABBING_HORIZONTALShould tabbing from column to column with in one row be supported- See Also:
 
- 
KEYBOARD_ACTIVATIONpublic static final int KEYBOARD_ACTIVATIONStyle mask used to enable keyboard activation- See Also:
 
- 
KEEP_EDITOR_ON_DOUBLE_CLICKpublic static final int KEEP_EDITOR_ON_DOUBLE_CLICKStyle mask used to turn off the feature that an editor activation is canceled on double click. It is also possible to turn off this feature per cell-editor usingCellEditor.getDoubleClickTimeout()- Since:
- 3.4
- See Also:
 
- 
TABBING_CYCLE_IN_VIEWERpublic static final int TABBING_CYCLE_IN_VIEWERShould if the end of the viewer is reached, start from the first element in the viewer (conversely, hitting shift-tab in the first element of the viewer results in jumping to the last element of the viewer)- Since:
- 3.17
- See Also:
 
 
- 
- 
Constructor Details- 
ColumnViewerEditorprotected ColumnViewerEditor(ColumnViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature) - Parameters:
- viewer- the viewer this editor is attached to
- editorActivationStrategy- the strategy used to decide about editor activation
- feature- bit mask controlling the editor
 
 
- 
- 
Method Details- 
addEditorActivationListenerAdds the given listener, it is to be notified when the cell editor is activated or deactivated.- Parameters:
- listener- the listener to add
 
- 
removeEditorActivationListenerRemoves the given listener.- Parameters:
- listener- the listener to remove
 
- 
processTraverseEventProcess the traverse event and opens the next available editor depending of the implemented strategy. The default implementation uses the style constantsSubclasses may overwrite to implement their custom logic to edit the next cell - Parameters:
- columnIndex- the index of the current column
- row- the current row - may only be used for the duration of this method call
- event- the traverse event
 
- 
setEditorPosition the editor inside the control- Parameters:
- w- the editor control
- item- the item (row) in which the editor is drawn in
- fColumnNumber- the column number in which the editor is shown
 
- 
setLayoutDataset the layout data for the editor- Parameters:
- layoutData- the layout data used when editor is displayed
 
- 
updateFocusCellprotected abstract void updateFocusCell(ViewerCell focusCell, ColumnViewerEditorActivationEvent event) - Parameters:
- focusCell- updates the cell with the current input focus
- event- the event requesting to update the focusCell
 
- 
getFocusCell- Returns:
- the cell currently holding the focus if no cell has the focus or
         the viewer implementation doesn't support nullis returned
 
- 
getViewer- Returns:
- the viewer working for
 
 
-