コード例 #1
0
  /**
   * Notifies all registered <tt>HistoryQueryListener</tt>s that a new record has been received.
   *
   * @param newStatus the new status
   */
  private void fireQueryStatusEvent(int newStatus) {
    HistoryQueryStatusEvent event = new HistoryQueryStatusEvent(this, newStatus);

    synchronized (queryListeners) {
      for (HistoryQueryListener l : queryListeners) {
        l.queryStatusChanged(event);
      }
    }
  }
コード例 #2
0
  /**
   * Notifies all registered <tt>HistoryQueryListener</tt>s that a new record has been received.
   *
   * @param record the <tt>HistoryRecord</tt>
   */
  private void fireQueryEvent(HistoryRecord record) {
    HistoryRecordEvent event = new HistoryRecordEvent(this, record);

    synchronized (queryListeners) {
      for (HistoryQueryListener l : queryListeners) {
        l.historyRecordReceived(event);
      }
    }
  }