org.tbee.swing
Class AutoCompleter.ListAutoCompleter

java.lang.Object
  extended by org.tbee.swing.AutoCompleter
      extended by org.tbee.swing.AutoCompleter.ListAutoCompleter
Enclosing class:
AutoCompleter

public static class AutoCompleter.ListAutoCompleter
extends AutoCompleter

Autocomplete from a list


Nested Class Summary
 
Nested classes/interfaces inherited from class org.tbee.swing.AutoCompleter
AutoCompleter.FileAutoCompleter, AutoCompleter.ListAutoCompleter
 
Field Summary
 
Fields inherited from class org.tbee.swing.AutoCompleter
SOURCECODE_VERSION
 
Constructor Summary
AutoCompleter.ListAutoCompleter(javax.swing.text.JTextComponent comp, java.util.List completionList)
           
AutoCompleter.ListAutoCompleter(javax.swing.text.JTextComponent comp, java.util.List completionList, boolean ignoreCase)
           
 
Method Summary
protected  void acceptedListItem(java.lang.String selected)
          user has selected some item in the classes.
protected  boolean updateListData()
          update classes model depending on the data in textfield
 
Methods inherited from class org.tbee.swing.AutoCompleter
selectNextPossibleValue, selectPreviousPossibleValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoCompleter.ListAutoCompleter

public AutoCompleter.ListAutoCompleter(javax.swing.text.JTextComponent comp,
                                       java.util.List completionList)

AutoCompleter.ListAutoCompleter

public AutoCompleter.ListAutoCompleter(javax.swing.text.JTextComponent comp,
                                       java.util.List completionList,
                                       boolean ignoreCase)
Method Detail

updateListData

protected boolean updateListData()
update classes model depending on the data in textfield

Specified by:
updateListData in class AutoCompleter

acceptedListItem

protected void acceptedListItem(java.lang.String selected)
user has selected some item in the classes. update textfield accordingly...

Specified by:
acceptedListItem in class AutoCompleter


Copyright © 2010 KnowledgePlaza. All Rights Reserved.