Class 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>
    A PrefixSelector 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface PrefixSelector<T>