Class FormatPrefixSelector<T>
- java.lang.Object
-
- io.github.jonestimd.swing.component.FormatPrefixSelector<T>
-
- Type Parameters:
T
- the class of the beans in the model
- All Implemented Interfaces:
PrefixSelector<T>
public class FormatPrefixSelector<T> extends java.lang.Object implements PrefixSelector<T>
APrefixSelector
that uses a format to convert the beans to strings.
-
-
Constructor Summary
Constructors Constructor Description FormatPrefixSelector(java.text.Format format)
FormatPrefixSelector(java.text.Format format, java.util.Comparator<? super T> selectionOrdering)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
selectMatch(javax.swing.ListModel<T> model, java.lang.String prefix)
-
-
-
Constructor Detail
-
FormatPrefixSelector
public FormatPrefixSelector(java.text.Format format)
-
FormatPrefixSelector
public FormatPrefixSelector(java.text.Format format, java.util.Comparator<? super T> selectionOrdering)
-
-
Method Detail
-
selectMatch
public T selectMatch(javax.swing.ListModel<T> model, java.lang.String prefix)
- Specified by:
selectMatch
in interfacePrefixSelector<T>
-
-