Eclipse GEF
2.1

org.eclipse.gef.ui.parts
Class PaletteViewerKeyHandler

java.lang.Object
  |
  +--org.eclipse.gef.KeyHandler
        |
        +--org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
              |
              +--org.eclipse.gef.ui.parts.PaletteViewerKeyHandler

public class PaletteViewerKeyHandler
extends GraphicalViewerKeyHandler

KeyHandler for the Palette. Handles selection traversal of Palette entries and collapse/expand of categories.


Constructor Summary
PaletteViewerKeyHandler(PaletteViewer viewer)
          Constructs a key handler for the specified palette viewer.
 
Method Summary
 boolean keyPressed(KeyEvent event)
          Extends keyPressed to look for palette navigation keys.
 
Methods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler
getViewer
 
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

PaletteViewerKeyHandler

public PaletteViewerKeyHandler(PaletteViewer viewer)
Constructs a key handler for the specified palette viewer.

Parameters:
viewer - the palette viewer
Method Detail

keyPressed

public boolean keyPressed(KeyEvent event)
Extends keyPressed to look for palette navigation keys.

Overrides:
keyPressed in class GraphicalViewerKeyHandler
See Also:
KeyHandler.keyPressed(org.eclipse.swt.events.KeyEvent)

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.