|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.controls.ListSilentKeyManager
This class listen to key pressed in a JList and moves the selection to the next matching line. Example:
JList list = new JList();
ListSilentKeyManager lskm = new ListSilentKeyManager();
lskm.attach(list);
You can also define the default ENTER key behavior by using setEnterAction(). Example:
lskm.setEnterAction(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
...
}
});
Note: It is called 'Silent' because it does not show a tooltip
| Constructor Summary | |
ListSilentKeyManager()
Deprecated. |
|
| Method Summary | |
void |
attach(javax.swing.JList list)
Deprecated. Installs the listener to this list |
void |
detach()
Deprecated. Deinstalls the listener from this list |
void |
keyPressed(java.awt.event.KeyEvent e)
Deprecated. Internally implements KeyListener. |
void |
keyReleased(java.awt.event.KeyEvent e)
Deprecated. Internally implements KeyListener. |
void |
keyTyped(java.awt.event.KeyEvent e)
Deprecated. Internally implements KeyListener. |
void |
setEnterAction(java.awt.event.ActionListener l)
Deprecated. A custom KeyListener that responds to KeyEvent.VK_ENTER should be added to the JList control
instead. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ListSilentKeyManager()
| Method Detail |
public void attach(javax.swing.JList list)
public void detach()
public void setEnterAction(java.awt.event.ActionListener l)
KeyListener that responds to KeyEvent.VK_ENTER should be added to the JList control
instead.
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListener
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.