Extension SDK 10.1.2

oracle.ide.controls
Class ListSilentKeyManager

java.lang.Object
  extended byoracle.ide.controls.ListSilentKeyManager
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener

Deprecated. No longer used -- as of JDK1.4, all JList controls implement silent keyboard search automatically without this class.

public class ListSilentKeyManager
extends java.lang.Object
implements java.awt.event.KeyListener

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

ListSilentKeyManager

public ListSilentKeyManager()
Deprecated. 
Method Detail

attach

public void attach(javax.swing.JList list)
Deprecated. 
Installs the listener to this list


detach

public void detach()
Deprecated. 
Deinstalls the listener from this list


setEnterAction

public 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.

Defines what to do when the Enter key is pressed


keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Deprecated. 
Internally implements KeyListener.

Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Deprecated. 
Internally implements KeyListener.

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Deprecated. 
Internally implements KeyListener.

Specified by:
keyReleased in interface java.awt.event.KeyListener

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.