コード例 #1
0
  protected void fireHPubReqCompleteEvent(RequestCompleteEvent evt) {
    Vector currentListenerList = null;

    synchronized (this) {
      currentListenerList = (Vector) listenerList.clone();
    }
    for (int i = 0; i < currentListenerList.size(); i++) {
      HPubReqCompleteListener listener = (HPubReqCompleteListener) currentListenerList.elementAt(i);
      listener.hPubReqComplete(evt);
    }
  }
コード例 #2
0
 public void removeHPubReqCompleteListener(HPubReqCompleteListener listenerToRemove) {
   listenerList.removeElement(listenerToRemove);
 }
コード例 #3
0
 public void addHPubReqCompleteListener(HPubReqCompleteListener listenerToAdd) {
   listenerList.addElement(listenerToAdd);
 }