public interface ListDataListener extends EventListener
ListDataListener
can register with a ListModel
and
receive notification of updates to the model.Modifier and Type | Method and Description |
---|---|
void |
contentsChanged(ListDataEvent event)
Notifies the listener that the contents of the list have changed
in some way.
|
void |
intervalAdded(ListDataEvent event)
Notifies the listener that one or more items have been added to the
list.
|
void |
intervalRemoved(ListDataEvent event)
Notifies the listener that one or more items have been removed from
the list.
|
void contentsChanged(ListDataEvent event)
intervalAdded(ListDataEvent)
or the
intervalRemoved(ListDataEvent)
methods.event
- the event.void intervalAdded(ListDataEvent event)
event
argument can supply the indices for the
range of items added.event
- the event.void intervalRemoved(ListDataEvent event)
event
argument can supply the indices for
the range of items removed.event
- the event.