|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.viewers.CellNavigationStrategy
This class implementation the strategy how the table is navigated using the keyboard.
Subclasses can implement their custom navigation algorithms
| Constructor Summary | |
|---|---|
CellNavigationStrategy()
|
|
| Method Summary | |
|---|---|
void |
collapse(ColumnViewer viewer,
ViewerCell cellToCollapse,
Event event)
|
void |
expand(ColumnViewer viewer,
ViewerCell cellToExpand,
Event event)
|
ViewerCell |
findSelectedCell(ColumnViewer viewer,
ViewerCell currentSelectedCell,
Event event)
|
protected void |
init()
This method is called by the framework to initialize this navigation strategy object. |
boolean |
isCollapseEvent(ColumnViewer viewer,
ViewerCell cellToCollapse,
Event event)
|
boolean |
isExpandEvent(ColumnViewer viewer,
ViewerCell cellToExpand,
Event event)
|
boolean |
isNavigationEvent(ColumnViewer viewer,
Event event)
is the given event an event which moves the selection to another cell |
boolean |
shouldCancelEvent(ColumnViewer viewer,
Event event)
This method is consulted to decide whether an event has to be canceled or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CellNavigationStrategy()
| Method Detail |
public boolean isNavigationEvent(ColumnViewer viewer,
Event event)
viewer - the viewer we are working forevent - the key event
true if a new cell is searched
public boolean isCollapseEvent(ColumnViewer viewer,
ViewerCell cellToCollapse,
Event event)
viewer - the viewer we are working forcellToCollapse - the cell to collapseevent - the key event
true if this event triggers collapsing of a node
public boolean isExpandEvent(ColumnViewer viewer,
ViewerCell cellToExpand,
Event event)
viewer - the viewer we are working forcellToExpand - the cell to expandevent - the key event
true if this event triggers expanding of a node
public void expand(ColumnViewer viewer,
ViewerCell cellToExpand,
Event event)
viewer - the viewer working forcellToExpand - the cell the user wants to expandevent - the event triggering the expansion
public void collapse(ColumnViewer viewer,
ViewerCell cellToCollapse,
Event event)
viewer - the viewer working forcellToCollapse - the cell the user wants to collapseevent - the event triggering the expansion
public ViewerCell findSelectedCell(ColumnViewer viewer,
ViewerCell currentSelectedCell,
Event event)
viewer - the viewer we are working forcurrentSelectedCell - the cell currently selectedevent - the key event
null if the
default implementation is taken. E.g. it's fairly impossible to
react on PAGE_DOWN requests
public boolean shouldCancelEvent(ColumnViewer viewer,
Event event)
viewer - the viewer working forevent - the event
true if the event has to be canceledprotected void init()
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.