javax.swing
Class JList.ListListener

java.lang.Object
javax.swing.JList.ListListener
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ListDataListener, javax.swing.event.ListSelectionListener
- Enclosing class:
- JList
- private class JList.ListListener
- extends java.lang.Object
- implements javax.swing.event.ListSelectionListener, javax.swing.event.ListDataListener
This private listener propagates javax.swing.event.ListSelectionEvent events
from the list's "selectionModel" property to the list's javax.swing.event.ListSelectionListener listeners. It also listens to javax.swing.event.ListDataEvent events from the list's JList.model 55 property. If this
class receives either type of event, it triggers repainting of the
list.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JList.ListListener
private JList.ListListener()
contentsChanged
public void contentsChanged(javax.swing.event.ListDataEvent event)
- Description copied from interface:
javax.swing.event.ListDataListener
- Notifies the listener that the contents of the list have changed
in some way. This method will be called if the change cannot be
notified via the ListDataListener.intervalAdded(ListDataEvent)>
ListDataListener.intervalAdded(ListDataEvent) 55 or the
ListDataListener.intervalRemoved(ListDataEvent)>ListDataListener.intervalRemoved(ListDataEvent) 55 methods.
- Specified by:
contentsChanged in interface javax.swing.event.ListDataListener
intervalAdded
public void intervalAdded(javax.swing.event.ListDataEvent event)
- Description copied from interface:
javax.swing.event.ListDataListener
- Notifies the listener that one or more items have been added to the
list. The
event argument can supply the indices for the
range of items added.
- Specified by:
intervalAdded in interface javax.swing.event.ListDataListener
intervalRemoved
public void intervalRemoved(javax.swing.event.ListDataEvent event)
- Description copied from interface:
javax.swing.event.ListDataListener
- Notifies the listener that one or more items have been removed from
the list. The
event argument can supply the indices for
the range of items removed.
- Specified by:
intervalRemoved in interface javax.swing.event.ListDataListener
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent event)
- Description copied from interface:
javax.swing.event.ListSelectionListener
- Receives notification of a javax.swing.event.ListSelectionEvent.
- Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener