|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.ide.controls.KeyNavigationManager
public class 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.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic static javax.swing.JTree createNavigableTree()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||