Class TextComponentAdaptor


  • public class TextComponentAdaptor
    extends AbstractAutoCompleteAdaptor
    An implementation of the AbstractAutoCompleteAdaptor that is suitable for a JTextComponent.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.List<?> items
      a List containing the strings to be used for automatic completion
      (package private) java.lang.Object selectedItem
      the item that is currently selected
      (package private) javax.swing.text.JTextComponent textComponent
      the text component that is used for automatic completion
    • Constructor Summary

      Constructors 
      Constructor Description
      TextComponentAdaptor​(javax.swing.text.JTextComponent textComponent, java.util.List<?> items)
      Creates a new TextComponentAdaptor for the given list and text component.
    • Field Detail

      • items

        java.util.List<?> items
        a List containing the strings to be used for automatic completion
      • textComponent

        javax.swing.text.JTextComponent textComponent
        the text component that is used for automatic completion
      • selectedItem

        java.lang.Object selectedItem
        the item that is currently selected
    • Constructor Detail

      • TextComponentAdaptor

        public TextComponentAdaptor​(javax.swing.text.JTextComponent textComponent,
                                    java.util.List<?> items)
        Creates a new TextComponentAdaptor for the given list and text component.
        Parameters:
        items - a List that contains the items that are used for automatic completion
        textComponent - the text component that will be used automatic completion