public class GoMapListModel extends javax.swing.DefaultListModel<MapFile>
DefaultListModel
that can be disabled during updates. A disabled
model defers notifying listeners until it is enabled again.Constructor and Description |
---|
GoMapListModel() |
Modifier and Type | Method and Description |
---|---|
void |
enable(boolean enabled)
Enables or disables notification of listeners.
|
protected void |
fireIntervalAdded(java.lang.Object source,
int index0,
int index1) |
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
protected void fireIntervalAdded(java.lang.Object source, int index0, int index1)
fireIntervalAdded
in class javax.swing.AbstractListModel<MapFile>
public void enable(boolean enabled)
enabled
- whether to enable notification of listeners