public abstract class AbstractEventQueue extends Object
AbstractEventListener| Constructor and Description |
|---|
AbstractEventQueue() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearChanged()
Indicates that this object has no longer changed, or that it has
already notified all of its listeners of its most recent change,
so that the
hasChanged method will now return false. |
int |
countListeners()
Returns the number of listeners of this Event queue object.
|
void |
deleteListeners()
Clears the listener list so that this object no longer has any listeners..
|
boolean |
hasChanged()
Tests if this object has changed.
|
void |
notifyListeners()
If this object has changed, as indicated by the
hasChanged
method, then notify all of its listeners and then call the
clearChanged method to indicate that this object has no longer
changed. |
void |
notifyListeners(Event<?> event)
Notifies all listeners of this event queue to perform action.
|
protected void |
setChanged()
Marks this Event queue object as having been changed, the
hasChanged method will now return true. |
public void notifyListeners()
hasChanged
method, then notify all of its listeners and then call the
clearChanged method to indicate that this object has no longer
changed.public void notifyListeners(Event<?> event)
If this event queue object has changed, as indicated by the
hasChanged method, then notify all of its listeners and then
call the clearChanged method to indicate that this object has
no longer changed.
event - the specified eventAbstractEventListener.performAction(org.b3log.latke.event.AbstractEventQueue, org.b3log.latke.event.Event)public void deleteListeners()
protected void setChanged()
hasChanged method will now return true.protected void clearChanged()
hasChanged method will now return false.
This method is called automatically by the
notifyListeners methods.public boolean hasChanged()
true if and only if the setChanged method has
been called more recently than the clearChanged method on this
object; false otherwiseclearChanged(),
setChanged()public int countListeners()
Copyright © 2009–2019 B3log. All rights reserved.