be.lassi.base
Class Listeners
java.lang.Object
be.lassi.base.Listeners
public class Listeners
- extends java.lang.Object
Collection of Listener
objects.
Method Summary |
void |
add(Listener listener)
Adds given listener. |
void |
assertEmpty()
Verifies if the listener collection wrapped by this class is empty. |
void |
changed()
Notify all listeners that a change occurred. |
void |
remove(Listener listener)
Removes given listener. |
int |
size()
Gets the number of listeners. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Listeners
public Listeners()
add
public void add(Listener listener)
- Adds given listener.
- Parameters:
listener
- the listener to be added
assertEmpty
public void assertEmpty()
- Verifies if the listener collection wrapped by this class is empty.
changed
public void changed()
- Notify all listeners that a change occurred.
remove
public void remove(Listener listener)
- Removes given listener.
- Parameters:
listener
- the listener to be removed
size
public int size()
- Gets the number of listeners.
- Returns:
- the number of listeners