|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.observable.event.ObservableListChangeSupport<E>
E - list element typepublic class ObservableListChangeSupport<E>
A support class that can be used via delegation to provide
ListChangeListener and VetoableListChangeListener
management.
| Constructor Summary | |
|---|---|
protected |
ObservableListChangeSupport()
Create a new support class meant to be subclassed. |
|
ObservableListChangeSupport(ObservableList<E> source)
Create a new support class that fires list change and vetoable list change events with the specified source as the source of the events. |
| Method Summary | |
|---|---|
void |
addListChangeListener(ListChangeListener<E> l)
Add the specified list change listener. |
void |
addVetoableListChangeListener(VetoableListChangeListener<E> l)
Add the specified vetoable list change listener. |
void |
fireListChanged()
Fire a change event to all registered ListChangeListeners. |
void |
fireListChanged(ListChangeEvent<E> e)
Fire the specified change event to all registered ListChangeListeners. |
void |
fireListWillChange()
Fire a will change event to all registered VetoableListChangeListeners. |
void |
fireListWillChange(VetoableListChangeEvent<E> e)
Fire the specified will change event to all registered VetoableListChangeListeners. |
protected EventListenerList |
getEventListenerList()
Return the EventListenerList backing this
observable list support class. |
int |
getListChangeListenerCount()
Return the number of ListChangeListeners registered
to this observable list support class. |
ListChangeListener<E>[] |
getListChangeListeners()
Return an array of all ListChangeListeners, or
an empty array if none are registered. |
int |
getVetoableListChangeListenerCount()
Return the number of VetoableListChangeListeners
registered to this observable list support class. |
VetoableListChangeListener<E>[] |
getVetoableListChangeListeners()
Return an array of all VetoableListChangeListeners,
or an empty array if none are registered. |
void |
removeListChangeListener(ListChangeListener<E> l)
Remove the specified list change listener. |
void |
removeVetoableListChangeListener(VetoableListChangeListener<E> l)
Remove the specified vetoable list change listener. |
protected void |
setSource(ObservableList<E> source)
Set the source of list change and vetoable list change events to source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ObservableListChangeSupport()
public ObservableListChangeSupport(ObservableList<E> source)
source - the event source| Method Detail |
|---|
protected void setSource(ObservableList<E> source)
source. Subclasses should call this method before
any of the fireX methods.
source - the event sourceprotected final EventListenerList getEventListenerList()
EventListenerList backing this
observable list support class.
EventListenerList backing this
observable list support class.public final void addListChangeListener(ListChangeListener<E> l)
l - list change listener to addpublic final void removeListChangeListener(ListChangeListener<E> l)
l - list change listener to removepublic final void addVetoableListChangeListener(VetoableListChangeListener<E> l)
l - vetoable list change listener to addpublic final void removeVetoableListChangeListener(VetoableListChangeListener<E> l)
l - vetoable list change listener to removepublic final ListChangeListener<E>[] getListChangeListeners()
ListChangeListeners, or
an empty array if none are registered.
ListChangeListeners, or
an empty array if none are registeredpublic final int getListChangeListenerCount()
ListChangeListeners registered
to this observable list support class.
ListChangeListeners registered
to this observable list support classpublic final VetoableListChangeListener<E>[] getVetoableListChangeListeners()
VetoableListChangeListeners,
or an empty array if none are registered.
VetoableListChangeListeners,
or an empty array if none are registeredpublic final int getVetoableListChangeListenerCount()
VetoableListChangeListeners
registered to this observable list support class.
VetoableListChangeListeners
registered to this observable list support class
public void fireListWillChange()
throws ListChangeVetoException
VetoableListChangeListeners.
ListChangeVetoException - if any of the listeners veto the change
public void fireListWillChange(VetoableListChangeEvent<E> e)
throws ListChangeVetoException
VetoableListChangeListeners.
e - will change event
ListChangeVetoException - if any of the listeners veto the changepublic void fireListChanged()
ListChangeListeners.
public void fireListChanged(ListChangeEvent<E> e)
ListChangeListeners.
e - change event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||