|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.controls.KeyNavigationManager
Handles the incremental search and the tooltip on a component.
To use this class on a JTree for example, you must create a TreeKeyAdapter and extend JTree to override processKeyEvent().
public class MyTree extends JTree { protected KeyNavigationManager _knm; public MyTree() { _knm = new KeyNavigationManager( new KeyNavigationManager.TreeKeyAdapter( this ) ); } protected void processKeyEvent( KeyEvent e ) { if (_knm != null) { _knm.preProcessKeyEvent( e ); } super.processKeyEvent( e ); if (_knm != null) { _knm.postProcessKeyEvent( e ); } } }
Nested Class Summary | |
static interface |
KeyNavigationManager.KeyComponentAdapter
|
static class |
KeyNavigationManager.ListKeyAdapter
|
static class |
KeyNavigationManager.TableKeyAdapter
|
static class |
KeyNavigationManager.TreeKeyAdapter
|
Constructor Summary | |
KeyNavigationManager()
|
|
KeyNavigationManager(KeyNavigationManager.KeyComponentAdapter kca)
|
Method Summary | |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
static javax.swing.JTree |
createNavigableTree()
|
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
KeyNavigationManager.KeyComponentAdapter |
getKeyComponentAdapter()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
postKeyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed after the listeners and key bindings |
void |
postKeyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released after the listeners and key bindings |
void |
postKeyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed after the listeners and key bindings |
void |
postProcessKeyEvent(java.awt.event.KeyEvent e)
|
void |
preKeyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed before the listeners and key bindings |
void |
preKeyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released before the listeners and key bindings |
void |
preKeyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed before the listeners and key bindings |
void |
preProcessKeyEvent(java.awt.event.KeyEvent e)
|
void |
setKeyComponentAdapter(KeyNavigationManager.KeyComponentAdapter kca)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KeyNavigationManager()
public KeyNavigationManager(KeyNavigationManager.KeyComponentAdapter kca)
Method Detail |
public void setKeyComponentAdapter(KeyNavigationManager.KeyComponentAdapter kca)
public KeyNavigationManager.KeyComponentAdapter getKeyComponentAdapter()
public void preProcessKeyEvent(java.awt.event.KeyEvent e)
public void postProcessKeyEvent(java.awt.event.KeyEvent e)
public void preKeyTyped(java.awt.event.KeyEvent e)
public void postKeyTyped(java.awt.event.KeyEvent e)
public void preKeyPressed(java.awt.event.KeyEvent e)
public void postKeyPressed(java.awt.event.KeyEvent e)
public void preKeyReleased(java.awt.event.KeyEvent e)
public void postKeyReleased(java.awt.event.KeyEvent e)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public static javax.swing.JTree createNavigableTree()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.