Class CompletionListModel

java.lang.Object
javax.swing.AbstractListModel<Completion>
org.fife.ui.autocomplete.CompletionListModel
All Implemented Interfaces:
Serializable, ListModel<Completion>

class CompletionListModel extends AbstractListModel<Completion>
A list model implementation that allows the bulk addition of elements. This is the only feature missing from DefaultListModel that we need.
Version:
1.0
  • Field Details

    • delegate

      private final List<Completion> delegate
      Container for items in this model.
  • Constructor Details

    • CompletionListModel

      CompletionListModel()
      Constructor.
  • Method Details

    • clear

      public void clear()
      Removes all the elements from this list. The list will be empty after this call returns (unless it throws an exception).
      See Also:
    • getElementAt

      public Completion getElementAt(int index)
    • getSize

      public int getSize()
    • setContents

      public void setContents(Collection<Completion> contents)
      Sets the contents of this model. All previous contents are removed.
      Parameters:
      contents - The new contents of this model.