Package editor

Class PopupListModel

All Implemented Interfaces:
IIntelliTextModel, Serializable, ListModel

public abstract class PopupListModel extends AbstractListModel implements IIntelliTextModel
See Also:
  • Field Details

    • _strFilterPrefix

      private String _strFilterPrefix
    • _filter

      private Predicate _filter
  • Constructor Details

    • PopupListModel

      protected PopupListModel()
    • PopupListModel

      protected PopupListModel(Predicate filter)
  • Method Details

    • createSubset

      public abstract PopupListModel createSubset(List subset)
      Given the a subset of components in this model, creates a new model containing just this subset.
    • getModel

      public abstract List getModel()
      Returns the underlying list.
    • getUnfilteredModel

      public abstract List getUnfilteredModel()
      Returns an unfiltered version of this model. If the model is not filtered, this may return the same reference as getModel().
    • setFilter

      public void setFilter(Predicate filter)
    • getFilter

      public Predicate getFilter()
    • getSize

      public int getSize()
      Specified by:
      getSize in interface ListModel
    • getElementAt

      public Object getElementAt(int iIndex)
      Specified by:
      getElementAt in interface ListModel
    • getFilterPrefix

      public String getFilterPrefix()
      Specified by:
      getFilterPrefix in interface IIntelliTextModel
    • getFilteredModel

      public IIntelliTextModel getFilteredModel(String strPrefix)
      Specified by:
      getFilteredModel in interface IIntelliTextModel
    • getModelUpdatedOrFilteredByPredicate

      public List getModelUpdatedOrFilteredByPredicate()
      Returns the underlying list, filtered by the predicate if it exists