|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.KeyHandler
org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
public class GraphicalViewerKeyHandler
An extended KeyHandler which processes default keystrokes for common navigation in a GraphicalViewer. This class can be used as a KeyHandler too; Unrecognized keystrokes are sent to the super's implementation. This class will process key events containing the following:
All processed key events will do nothing other than change the selection and/or focus editpart for the viewer.
| Constructor Summary | |
|---|---|
GraphicalViewerKeyHandler(GraphicalViewer viewer)
Constructs a key handler for the given viewer. |
|
| Method Summary | |
|---|---|
protected GraphicalEditPart |
getFocusEditPart()
|
protected java.util.List |
getNavigationSiblings()
Returns the list of editparts which are conceptually at the same level of navigation as the currently focused editpart. |
protected GraphicalViewer |
getViewer()
Returns the viewer on which this key handler was created. |
protected boolean |
isViewerMirrored()
|
boolean |
keyPressed(KeyEvent event)
Extended to process key events described above. |
protected void |
navigateTo(EditPart part,
KeyEvent event)
Navigates to the given EditPart |
protected void |
processSelect(KeyEvent event)
This method is invoked when the user presses the space bar. |
| Methods inherited from class org.eclipse.gef.KeyHandler |
|---|
keyReleased, put, remove, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphicalViewerKeyHandler(GraphicalViewer viewer)
viewer - the viewer| Method Detail |
|---|
protected GraphicalEditPart getFocusEditPart()
protected java.util.List getNavigationSiblings()
This implementation returns a list that contains the EditPart that has focus.
protected GraphicalViewer getViewer()
protected boolean isViewerMirrored()
true if the viewer is mirroredpublic boolean keyPressed(KeyEvent event)
keyPressed in class KeyHandlerevent - the KeyEvent
true if KeyEvent was handled in some wayKeyHandler.keyPressed(org.eclipse.swt.events.KeyEvent)
protected void navigateTo(EditPart part,
KeyEvent event)
part - the EditPart to navigate toevent - the KeyEvent that triggered this traversalprotected void processSelect(KeyEvent event)
event - the key event received
|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||