Adempiere 3.5.2a

org.compiere.grid.ed
Class ADempiereAutoCompleteDecorator

java.lang.Object
  extended by org.jdesktop.swingx.autocomplete.AutoCompleteDecorator
      extended by org.compiere.grid.ed.ADempiereAutoCompleteDecorator

public class ADempiereAutoCompleteDecorator
extends org.jdesktop.swingx.autocomplete.AutoCompleteDecorator

Adds Ctrl+Tab invoked action to run through all potential auto completion values.


Constructor Summary
ADempiereAutoCompleteDecorator()
           
 
Method Summary
static void decorate(JTextComponent textComponent, org.jdesktop.swingx.autocomplete.AutoCompleteDocument document, org.jdesktop.swingx.autocomplete.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, org.jdesktop.swingx.autocomplete.ObjectToStringConverter stringConverter)
          Enables automatic completion for the given JTextComponent based on the items contained in the given List.
 
Methods inherited from class org.jdesktop.swingx.autocomplete.AutoCompleteDecorator
decorate, decorate, decorate, decorate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ADempiereAutoCompleteDecorator

public ADempiereAutoCompleteDecorator()
Method Detail

decorate

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

Parameters:
textComponent - the text component that will be used for automatic completion.
items - contains the items that are used for autocompletion
strictMatching - true, if only given items should be allowed to be entered

decorate

public static void decorate(JTextComponent textComponent,
                            List items,
                            boolean strictMatching,
                            org.jdesktop.swingx.autocomplete.ObjectToStringConverter stringConverter)
Enables automatic completion for the given JTextComponent based on the items contained in the given List.

Parameters:
items - contains the items that are used for autocompletion
textComponent - the text component that will be used for automatic completion.
strictMatching - true, if only given items should be allowed to be entered
stringConverter - the converter used to transform items to strings

decorate

public static void decorate(JTextComponent textComponent,
                            org.jdesktop.swingx.autocomplete.AutoCompleteDocument document,
                            org.jdesktop.swingx.autocomplete.AbstractAutoCompleteAdaptor adaptor)
Decorates a given text component for automatic completion using the given AutoCompleteDocument and AbstractAutoCompleteAdaptor.

Parameters:
textComponent - a text component that should be decorated
document - the AutoCompleteDocument to be installed on the text component
adaptor - the AbstractAutoCompleteAdaptor to be used

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.