henplus.view.util
Class NameCompleter
java.lang.Object
henplus.view.util.NameCompleter
public class NameCompleter
- extends Object
a Completer for names that are only given partially. This is used for
tab-completion or to automatically correct names.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameCompleter
public NameCompleter()
NameCompleter
public NameCompleter(Iterator names)
NameCompleter
public NameCompleter(Collection c)
NameCompleter
public NameCompleter(String[] names)
addName
public void addName(String name)
getAllNamesIterator
public Iterator getAllNamesIterator()
getAllNames
public SortedSet getAllNames()
findCaseInsensitive
public String findCaseInsensitive(String name)
getAlternatives
public Iterator getAlternatives(String partialName)
- returns an iterator with alternatives that match the partial name
given or 'null' if there is no alternative.
? 1997..2006 Henner Zeller