public class AutoCompletion extends Object implements FocusListener, KeyListener, Runnable
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOCOMPLETION_PROPERTY
Property to mark combobox as 'auto-completing'
|
| Modifier | Constructor and Description |
|---|---|
protected |
AutoCompletion(JComboBox comboBox,
boolean strict,
boolean allowsUserValues) |
| Modifier and Type | Method and Description |
|---|---|
static void |
enable(JComboBox comboBox)
Enables auto-completion for specified combobox
|
static void |
enable(JComboBox comboBox,
boolean strict,
boolean allowsUserValues)
Enables auto-completion for specified combobox
|
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
run() |
public static final String AUTOCOMPLETION_PROPERTY
protected AutoCompletion(JComboBox comboBox, boolean strict, boolean allowsUserValues)
public static void enable(JComboBox comboBox, boolean strict, boolean allowsUserValues)
comboBox - Combo to be featuredstrict - Whether strict matching (check 'startWith' or 'contains') should be usedallowsUserValues - Whether non-present items are allowedpublic static void enable(JComboBox comboBox)
public void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerCopyright © 2001–2015 Apache Cayenne. All rights reserved.