|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.visualization.util.DefaultChangeEventSupport
public class DefaultChangeEventSupport
Basic implementation of ChangeEventSupport, using standard jdk classes
Field Summary | |
---|---|
protected ChangeEvent |
changeEvent
Only one ChangeEvent is needed
instance since the
event's only state is the source property. |
protected EventListenerList |
listenerList
holds the registered listeners |
Constructor Summary | |
---|---|
DefaultChangeEventSupport(Object eventSource)
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
|
void |
fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. |
ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListener s added
with addChangeListener(). |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EventListenerList listenerList
protected transient ChangeEvent changeEvent
ChangeEvent
is needed
instance since the
event's only state is the source property. The source of events
generated is always "this".
Constructor Detail |
---|
public DefaultChangeEventSupport(Object eventSource)
Method Detail |
---|
public void addChangeListener(ChangeListener l)
addChangeListener
in interface ChangeEventSupport
public void removeChangeListener(ChangeListener l)
ChangeEventSupport
removeChangeListener
in interface ChangeEventSupport
l
- the listener to be removedpublic ChangeListener[] getChangeListeners()
ChangeEventSupport
ChangeListener
s added
with addChangeListener().
getChangeListeners
in interface ChangeEventSupport
ChangeListener
s added or an empty
array if no listeners have been addedpublic void fireStateChanged()
fireStateChanged
in interface ChangeEventSupport
EventListenerList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |