Package editor
Class PopupListModel
java.lang.Object
javax.swing.AbstractListModel
editor.PopupListModel
- All Implemented Interfaces:
IIntelliTextModel
,Serializable
,ListModel
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PopupListModel
createSubset
(List subset) Given the a subset of components in this model, creates a new model containing just this subset.getElementAt
(int iIndex) getFilteredModel
(String strPrefix) abstract List
getModel()
Returns the underlying list.Returns the underlying list, filtered by the predicate if it existsint
getSize()
abstract List
Returns an unfiltered version of this model.void
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface editor.IIntelliTextModel
getDisplayText, getInsertionTextFrom, getTypeName, parseElement
-
Field Details
-
_strFilterPrefix
-
_filter
-
-
Constructor Details
-
PopupListModel
protected PopupListModel() -
PopupListModel
-
-
Method Details
-
createSubset
Given the a subset of components in this model, creates a new model containing just this subset. -
getModel
Returns the underlying list. -
getUnfilteredModel
Returns an unfiltered version of this model. If the model is not filtered, this may return the same reference as getModel(). -
setFilter
-
getFilter
-
getSize
public int getSize() -
getElementAt
- Specified by:
getElementAt
in interfaceListModel
-
getFilterPrefix
- Specified by:
getFilterPrefix
in interfaceIIntelliTextModel
-
getFilteredModel
- Specified by:
getFilteredModel
in interfaceIIntelliTextModel
-
getModelUpdatedOrFilteredByPredicate
Returns the underlying list, filtered by the predicate if it exists
-