public class CompositeListener extends Object implements JAMonListener, DetailData
Constructor and Description |
---|
CompositeListener()
Uses the CompositeListener name
|
CompositeListener(String name)
Pass in a Listener name that allows you to differentiate this listener from others
|
Modifier and Type | Method and Description |
---|---|
CompositeListener |
addListener(JAMonListener listener)
Add a listener to the composite and return this object
|
Object[][] |
getData()
Return all the listeners in the composite
|
static Object[][] |
getData(JAMonListener listener) |
String[] |
getHeader() |
static String[] |
getHeader(JAMonListener listener) |
JAMonListener |
getListener(int index)
Return the listener associated with the index
|
JAMonListener |
getListener(String listenerName)
Return the listener associated with the passed in name
|
String |
getName()
Return the name of this instance
|
int |
getNumListeners()
Return the number of listeners
|
int |
getRowCount()
Also returns the number of listeners
|
boolean |
hasData() |
boolean |
hasListener(String listenerName)
return true if the named listener exists
|
boolean |
isEmpty() |
Iterator |
iterator()
Get an iterator that will contain the Composite's JAMonListener objects.
|
void |
processEvent(Monitor mon)
Notify all listeners that are part of this composite of a jamon event and pass them the
monitor that triggered the event.
|
CompositeListener |
removeListener(String listenerName)
Remove the named listener from this CompositeListener
|
void |
setName(String name)
sets the name of this monitor instance
|
public CompositeListener()
public CompositeListener(String name)
public CompositeListener addListener(JAMonListener listener)
public JAMonListener getListener(String listenerName)
public JAMonListener getListener(int index)
public CompositeListener removeListener(String listenerName)
public boolean hasListener(String listenerName)
public int getNumListeners()
public int getRowCount()
public String getName()
getName
in interface JAMonListener
public void setName(String name)
setName
in interface JAMonListener
public void processEvent(Monitor mon)
processEvent
in interface JAMonListener
public Iterator iterator()
public boolean isEmpty()
public boolean hasData()
public Object[][] getData()
getData
in interface DetailData
public String[] getHeader()
getHeader
in interface DetailData
public static Object[][] getData(JAMonListener listener)
public static String[] getHeader(JAMonListener listener)
Copyright © 2015. All rights reserved.