|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.froses.widgets.MultiKeySelection
The goal of this class is to provide a
better JComboBox
item selection
adding the possibility to select an item
typing your n first characters (not only
the first).
This class constructs a search string concatenating the keyboard inputs. This string becomes null if:
To set this KeySelectionManager
to a
JComboBox
you must use the
JComboBox.setKeySelectionManager()
method.
Creation date: (22/03/01 08:55:00)
Field Summary | |
static int |
MAX_SEARCH_STRING
Maximum search string length |
Constructor Summary | |
MultiKeySelection()
The constructor initializes Timer . |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
The ActionListener implementation.
|
int |
selectionForKey(char key,
javax.swing.ComboBoxModel model)
The KeySelectionManager implementation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MAX_SEARCH_STRING
Constructor Detail |
public MultiKeySelection()
Timer
.
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent evt)
The ActionListener
implementation.
If enter
is typed, the Timer
and the search
string are cancelled.
actionPerformed
in interface java.awt.event.ActionListener
public int selectionForKey(char key, javax.swing.ComboBoxModel model)
KeySelectionManager
implementation.
selectionForKey
in interface javax.swing.JComboBox.KeySelectionManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |