| java.lang.Object org.eclipse.jface.viewers.CellNavigationStrategy
CellNavigationStrategy | public class CellNavigationStrategy (Code) | | This class implementation the strategy how the table is navigated using the
keyboard.
Subclasses can implement their custom navigation algorithms
since: 3.3 |
Method Summary | |
public void | collapse(ColumnViewer viewer, ViewerCell cellToCollapse, Event event) | public void | expand(ColumnViewer viewer, ViewerCell cellToExpand, Event event) | public ViewerCell | findSelectedCell(ColumnViewer viewer, ViewerCell currentSelectedCell, Event event) Parameters: viewer - the viewer we are working for Parameters: currentSelectedCell - the cell currently selected Parameters: event - the key event the cell which is highlighted next or null if thedefault implementation is taken. | protected void | init() This method is called by the framework to initialize this navigation
strategy object. | public boolean | isCollapseEvent(ColumnViewer viewer, ViewerCell cellToCollapse, Event event) | public boolean | isExpandEvent(ColumnViewer viewer, ViewerCell cellToExpand, Event event) | public boolean | isNavigationEvent(ColumnViewer viewer, Event event) | public boolean | shouldCancelEvent(ColumnViewer viewer, Event event) This method is consulted to decide whether an event has to be canceled or
not. |
collapse | public void collapse(ColumnViewer viewer, ViewerCell cellToCollapse, Event event)(Code) | | Parameters: viewer - the viewer working for Parameters: cellToCollapse - the cell the user wants to collapse Parameters: event - the event triggering the expansion |
expand | public void expand(ColumnViewer viewer, ViewerCell cellToExpand, Event event)(Code) | | Parameters: viewer - the viewer working for Parameters: cellToExpand - the cell the user wants to expand Parameters: event - the event triggering the expansion |
findSelectedCell | public ViewerCell findSelectedCell(ColumnViewer viewer, ViewerCell currentSelectedCell, Event event)(Code) | | Parameters: viewer - the viewer we are working for Parameters: currentSelectedCell - the cell currently selected Parameters: event - the key event the cell which is highlighted next or null if thedefault implementation is taken. E.g. it's fairly impossible toreact on PAGE_DOWN requests |
init | protected void init()(Code) | | This method is called by the framework to initialize this navigation
strategy object. Subclasses may extend.
|
isCollapseEvent | public boolean isCollapseEvent(ColumnViewer viewer, ViewerCell cellToCollapse, Event event)(Code) | | Parameters: viewer - the viewer we are working for Parameters: cellToCollapse - the cell to collapse Parameters: event - the key event true if this event triggers collapsing of a node |
isExpandEvent | public boolean isExpandEvent(ColumnViewer viewer, ViewerCell cellToExpand, Event event)(Code) | | Parameters: viewer - the viewer we are working for Parameters: cellToExpand - the cell to expand Parameters: event - the key event true if this event triggers expanding of a node |
isNavigationEvent | public boolean isNavigationEvent(ColumnViewer viewer, Event event)(Code) | | is the given event an event which moves the selection to another cell
Parameters: viewer - the viewer we are working for Parameters: event - the key event true if a new cell is searched |
shouldCancelEvent | public boolean shouldCancelEvent(ColumnViewer viewer, Event event)(Code) | | This 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 Parameters: event - the event true if the event has to be canceled |
|
|