Package org.eclipse.jface.viewers
Class TreeViewerFocusCellManager
- java.lang.Object
-
- org.eclipse.jface.viewers.TreeViewerFocusCellManager
-
-
Constructor Summary
Constructors Constructor Description TreeViewerFocusCellManager(TreeViewer viewer, FocusCellHighlighter focusDrawingDelegate)Create a new manager using a default navigation strategy:SWT.ARROW_UP: navigate to cell aboveSWT.ARROW_DOWN: navigate to cell belowSWT.ARROW_RIGHT: on first column (collapses if item is expanded) else navigate to next visible cell on the rightSWT.ARROW_LEFT: on first column (expands if item is collapsed) else navigate to next visible cell on the leftTreeViewerFocusCellManager(TreeViewer viewer, FocusCellHighlighter focusDrawingDelegate, CellNavigationStrategy navigationStrategy)Create a new manager with a custom navigation strategy
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewerCellgetFocusCell()
-
-
-
Constructor Detail
-
TreeViewerFocusCellManager
public TreeViewerFocusCellManager(TreeViewer viewer, FocusCellHighlighter focusDrawingDelegate)
Create a new manager using a default navigation strategy:SWT.ARROW_UP: navigate to cell aboveSWT.ARROW_DOWN: navigate to cell belowSWT.ARROW_RIGHT: on first column (collapses if item is expanded) else navigate to next visible cell on the rightSWT.ARROW_LEFT: on first column (expands if item is collapsed) else navigate to next visible cell on the left
- Parameters:
viewer- the viewer the manager is bound tofocusDrawingDelegate- the delegate responsible to highlight selected cell
-
TreeViewerFocusCellManager
public TreeViewerFocusCellManager(TreeViewer viewer, FocusCellHighlighter focusDrawingDelegate, CellNavigationStrategy navigationStrategy)
Create a new manager with a custom navigation strategy- Parameters:
viewer- the viewer the manager is bound tofocusDrawingDelegate- the delegate responsible to highlight selected cellnavigationStrategy- the strategy used to navigate the cells- Since:
- 3.4
-
-
Method Detail
-
getFocusCell
public ViewerCell getFocusCell()
- Returns:
- the cell with the focus
-
-