Class GoMapListModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.ListModel<MapFile>

    public class GoMapListModel
    extends javax.swing.DefaultListModel<MapFile>
    A DefaultListModel that can be disabled during updates. A disabled model defers notifying listeners until it is enabled again.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Constructor Summary

      Constructors 
      Constructor Description
      GoMapListModel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enable​(boolean enabled)
      Enables or disables notification of listeners.
      protected void fireIntervalAdded​(java.lang.Object source, int index0, int index1)  
      • Methods inherited from class javax.swing.DefaultListModel

        add, addAll, addAll, 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
      • Methods inherited from class javax.swing.AbstractListModel

        addListDataListener, fireContentsChanged, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GoMapListModel

        public GoMapListModel()
    • Method Detail

      • fireIntervalAdded

        protected void fireIntervalAdded​(java.lang.Object source,
                                         int index0,
                                         int index1)
        Overrides:
        fireIntervalAdded in class javax.swing.AbstractListModel<MapFile>
      • enable

        public void enable​(boolean enabled)
        Enables or disables notification of listeners.
        Parameters:
        enabled - whether to enable notification of listeners