|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.autocomplete.Configurator
public class Configurator
This class contains only static utility methods that can be used to set up automatic completion for some Swing components.
Usage examples:
JComboBox comboBox = [...];
Configurator.enableAutoCompletion(comboBox);
JList list = [...];
JTextField textField = [...];
Configurator.enableAutoCompletion(list, textField);
Constructor Summary | |
---|---|
Configurator()
|
Method Summary | |
---|---|
static void |
configureTextComponent(javax.swing.text.JTextComponent textComponent,
Document document,
AbstractComponentAdaptor adaptor)
Configures a given text component for automatic completion using the given Document and AbstractComponentAdaptor. |
static void |
enableAutoCompletion(javax.swing.JComboBox comboBox)
Enables automatic completion for the given JComboBox. |
static void |
enableAutoCompletion(javax.swing.JList list,
javax.swing.text.JTextComponent textComponent)
Enables automatic completion for the given JTextComponent based on the items contained in the given JList. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configurator()
Method Detail |
---|
public static void enableAutoCompletion(javax.swing.JList list, javax.swing.text.JTextComponent textComponent)
list
- a listtextComponent
- the text component that will be used for automatic
completion.public static void enableAutoCompletion(javax.swing.JComboBox comboBox)
comboBox
- a comboboxpublic static void configureTextComponent(javax.swing.text.JTextComponent textComponent, Document document, AbstractComponentAdaptor adaptor)
textComponent
- a text component that should be configureddocument
- the Document to be installed on the text componentadaptor
- the AbstractComponentAdaptor to be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |