|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.autocomplete.AutoCompleteDecorator
public class AutoCompleteDecorator
This class contains only static utility methods that can be used to set up automatic completion for some Swing components.
Usage examples:
JComboBox comboBox = [...];
AutoCompleteDecorator.decorate(comboBox);
List items = [...];
JTextField textField = [...];
AutoCompleteDecorator.decorate(textField, items);
JList list = [...];
JTextField textField = [...];
AutoCompleteDecorator.decorate(list, textField);
Constructor Summary | |
---|---|
AutoCompleteDecorator()
|
Method Summary | |
---|---|
static void |
decorate(JComboBox comboBox)
Enables automatic completion for the given JComboBox. |
static void |
decorate(JComboBox comboBox,
ObjectToStringConverter stringConverter)
Enables automatic completion for the given JComboBox. |
static void |
decorate(JList list,
JTextComponent textComponent)
Enables automatic completion for the given JTextComponent based on the items contained in the given JList. |
static void |
decorate(JList list,
JTextComponent textComponent,
ObjectToStringConverter stringConverter)
Enables automatic completion for the given JTextComponent based on the items contained in the given JList. |
static void |
decorate(JTextComponent textComponent,
AutoCompleteDocument document,
AbstractAutoCompleteAdaptor adaptor)
Decorates a given text component for automatic completion using the given AutoCompleteDocument and AbstractAutoCompleteAdaptor. |
static void |
decorate(JTextComponent textComponent,
List items,
boolean strictMatching)
Enables automatic completion for the given JTextComponent based on the items contained in the given List. |
static void |
decorate(JTextComponent textComponent,
List items,
boolean strictMatching,
ObjectToStringConverter stringConverter)
Enables automatic completion for the given JTextComponent based on the items contained in the given List. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoCompleteDecorator()
Method Detail |
---|
public static void decorate(JTextComponent textComponent, List items, boolean strictMatching)
textComponent
- the text component that will be used for automatic
completion.items
- contains the items that are used for autocompletionstrictMatching
- true, if only given items should be allowed to be enteredpublic static void decorate(JTextComponent textComponent, List items, boolean strictMatching, ObjectToStringConverter stringConverter)
items
- contains the items that are used for autocompletiontextComponent
- the text component that will be used for automatic
completion.strictMatching
- true, if only given items should be allowed to be enteredstringConverter
- the converter used to transform items to stringspublic static void decorate(JList list, JTextComponent textComponent)
list
- a JList containing the items for automatic completiontextComponent
- the text component that will be enabled for automatic
completionpublic static void decorate(JList list, JTextComponent textComponent, ObjectToStringConverter stringConverter)
list
- a JList containing the items for automatic completiontextComponent
- the text component that will be used for automatic
completionstringConverter
- the converter used to transform items to stringspublic static void decorate(JComboBox comboBox)
comboBox
- a combo boxpublic static void decorate(JComboBox comboBox, ObjectToStringConverter stringConverter)
comboBox
- a combo boxstringConverter
- the converter used to transform items to stringspublic static void decorate(JTextComponent textComponent, AutoCompleteDocument document, AbstractAutoCompleteAdaptor adaptor)
textComponent
- a text component that should be decorateddocument
- the AutoCompleteDocument to be installed on the text componentadaptor
- the AbstractAutoCompleteAdaptor to be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |