| |
|
| java.lang.Object com.jamonapi.CompositeListener
CompositeListener | public class CompositeListener implements JAMonListener,DetailData(Code) | | A class that can contain other listeners that can listen to jamon events of interest.
These classes will all implement the JAMonListener interface too. This is an example of the
Gang of 4 Composite design pattern.
author: steve souza |
CompositeListener | public CompositeListener()(Code) | | Uses the CompositeListener name
|
CompositeListener | public CompositeListener(String name)(Code) | | Pass in a Listener name that allows you to differentiate this listener from others
|
getListener | public JAMonListener getListener(int index)(Code) | | Return the listener associated with the index
|
getName | public String getName()(Code) | | Return the name of this instance
|
getNumListeners | public int getNumListeners()(Code) | | Return the number of listeners
|
getRowCount | public int getRowCount()(Code) | | Also returns the number of listeners
|
hasData | public boolean hasData()(Code) | | |
hasListener | public boolean hasListener(String listenerName)(Code) | | return true if the named listener exists
|
isEmpty | public boolean isEmpty()(Code) | | |
iterator | public Iterator iterator()(Code) | | Get an iterator that will conatain the Composite's JAMonListener objects. The objects will
be safe cast to JAMonListener
|
processEvent | public void processEvent(Monitor mon)(Code) | | Notify all listeners that are part of this composite of a jamon event and pass them the
monitor that triggered the event.
|
|
|
|