Class EventListModel<E>

  • All Implemented Interfaces:
    ListEventListener<E>, java.util.EventListener, javax.swing.ListModel
    Direct Known Subclasses:
    EventComboBoxModel

    public class EventListModel<E>
    extends DefaultEventListModel<E>
    Deprecated.
    Use DefaultEventListModel instead. This class will be removed in the GL 2.0 release. The wrapping of the source list with an EDT safe list has been determined to be undesirable (it is better for the user to provide their own EDT safe list).
    An EventListModel adapts an EventList to the ListModel interface making it appropriate for use with a JList. Each element of the list corresponds to an element in the ListModel.

    The EventListModel class is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the event dispatch thread. To do this programmatically, use SwingUtilities.invokeAndWait(Runnable).

    Author:
    Jesse Wilson, Holger Brands
    See Also:
    Bug 14, Bug 146, Bug 177, Bug 228, SwingUtilities.invokeAndWait(Runnable)
    • Constructor Detail

      • EventListModel

        public EventListModel​(EventList<E> source)
        Deprecated.
        Creates a new model that contains all objects located in the given source and reacts to any changes in the given source.