|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.applicate.browsing.ContentChangeSupport
public class ContentChangeSupport
Helper class that simplify ContentChangeListener registration and the
notification of ContentChangeEvent to registered listeners.
| Constructor Summary | |
|---|---|
ContentChangeSupport()
|
|
| Method Summary | |
|---|---|
void |
addContentChangeListener(ContentChangeListener listener)
Register a new listener so that it will be notified of selection events. |
void |
disable()
Disable the notification of the events. |
void |
enable()
Enable the notification of the events. |
boolean |
isEnabled()
Check if event notification is currently enabled. |
void |
notifyContentChangeListeners(ContentChangeEvent event)
Notify a new event to all the registered listeners. |
void |
removeContentChangeListener(ContentChangeListener listener)
De-register a previously registered listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentChangeSupport()
| Method Detail |
|---|
public boolean isEnabled()
enable() and can be disabled
calling disable().
A ContentChangeSupport object is initially enabled.
public void enable()
notifyContentChangeListeners(ContentChangeEvent) will be notified to the
listeners.
A ContentChangeSupport object is initially enabled.
disable()public void disable()
notifyContentChangeListeners(ContentChangeEvent) will not be notified to the
listeners.
public void addContentChangeListener(ContentChangeListener listener)
listener - the listener to be registeredpublic void removeContentChangeListener(ContentChangeListener listener)
listener - the listener to be de-registeredpublic void notifyContentChangeListeners(ContentChangeEvent event)
event - the event to be notified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||