public JNIMonitor( JNIContext context, DBRType type, int count, JNIChannel ch, MonitorListener l, int mask) { _jnicontext = context; _type = type; _count = count; _channel = ch; if (l != null) _monitorListenerList.add(l); _mask = mask; _callback = new JNIMonitorCallback(ch, context.getEventDispatcher(), _monitorListenerList); }
public void removeMonitorListener(MonitorListener l) { if (l == null) return; _monitorListenerList.remove(l); }
public void addMonitorListener(MonitorListener l) { if (l == null) return; _monitorListenerList.add(l); }
/** * @return the first MonitorListener added. * @deprecated */ public MonitorListener getMonitorListener() { assertValidity(); return (MonitorListener) _monitorListenerList.get(0); }
public MonitorListener[] getMonitorListeners() { return (MonitorListener[]) _monitorListenerList.toArray(new MonitorListener[0]); }