Package org.eclipse.jface.viewers
Class CellNavigationStrategy
java.lang.Object
org.eclipse.jface.viewers.CellNavigationStrategy
This class implementation the strategy how the table is navigated using the
 keyboard.
 
Subclasses can implement their custom navigation algorithms
- Since:
- 3.3
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcollapse(ColumnViewer viewer, ViewerCell cellToCollapse, Event event) voidexpand(ColumnViewer viewer, ViewerCell cellToExpand, Event event) findSelectedCell(ColumnViewer viewer, ViewerCell currentSelectedCell, Event event) protected voidinit()This method is called by the framework to initialize this navigation strategy object.booleanisCollapseEvent(ColumnViewer viewer, ViewerCell cellToCollapse, Event event) booleanisExpandEvent(ColumnViewer viewer, ViewerCell cellToExpand, Event event) booleanisNavigationEvent(ColumnViewer viewer, Event event) is the given event an event which moves the selection to another cellbooleanshouldCancelEvent(ColumnViewer viewer, Event event) This method is consulted to decide whether an event has to be canceled or not.
- 
Constructor Details- 
CellNavigationStrategypublic CellNavigationStrategy()
 
- 
- 
Method Details
- 
isCollapseEvent- Parameters:
- viewer- the viewer we are working for
- cellToCollapse- the cell to collapse
- event- the key event
- Returns:
- trueif this event triggers collapsing of a node
 
- 
isExpandEvent- Parameters:
- viewer- the viewer we are working for
- cellToExpand- the cell to expand
- event- the key event
- Returns:
- trueif this event triggers expanding of a node
 
- 
expand- Parameters:
- viewer- the viewer working for
- cellToExpand- the cell the user wants to expand
- event- the event triggering the expansion
 
- 
collapse- Parameters:
- viewer- the viewer working for
- cellToCollapse- the cell the user wants to collapse
- event- the event triggering the expansion
 
- 
findSelectedCellpublic ViewerCell findSelectedCell(ColumnViewer viewer, ViewerCell currentSelectedCell, Event event) - Parameters:
- viewer- the viewer we are working for
- currentSelectedCell- the cell currently selected
- event- the key event
- Returns:
- the cell which is highlighted next or nullif the default implementation is taken. E.g. it's fairly impossible to react on PAGE_DOWN requests
 
- 
shouldCancelEventThis method is consulted to decide whether an event has to be canceled or not. By default events who collapse/expand tree-nodes are canceled- Parameters:
- viewer- the viewer working for
- event- the event
- Returns:
- trueif the event has to be canceled
 
- 
initprotected void init()This method is called by the framework to initialize this navigation strategy object. Subclasses may extend.