Class CompletionListModel
- All Implemented Interfaces:
Serializable, ListModel<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 Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Completion> Container for items in this model.Fields inherited from class AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all the elements from this list.getElementAt(int index) intgetSize()voidsetContents(Collection<Completion> contents) Sets the contents of this model.Methods inherited from class AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Field Details
-
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
-
getSize
public int getSize() -
setContents
Sets the contents of this model. All previous contents are removed.- Parameters:
contents- The new contents of this model.
-