Overview  Package   Class  Tree  Index 

be.lassi.base
Class Listeners

java.lang.Object
  extended by be.lassi.base.Listeners

public class Listeners
extends java.lang.Object

Collection of Listener objects.


Constructor Summary
Listeners()
           
 
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
 

Constructor Detail

Listeners

public Listeners()
Method Detail

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

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2