示例#1
0
  /**
   * Adds the ProgressChangeListener to this FileBase object.
   *
   * @param l the ProgressChangeListener object
   */
  public void addProgressChangeListener(ProgressChangeListener l) {
    listenerList.add(ProgressChangeListener.class, l);

    if (l instanceof ViewJProgressBar) {
      ((ViewJProgressBar) l).addActionListener(this);
    }
  }
示例#2
0
 /**
  * Register a listener for Cache events. The listener must implement one of the child interfaces
  * of the {@link CacheEventListener} interface.
  *
  * @param listener The object that listens to events.
  * @param clazz the type of the listener to be added
  * @deprecated use {@link #addCacheEventListener(CacheEventListener)}
  */
 public void addCacheEventListener(CacheEventListener listener, Class clazz) {
   if (CacheEventListener.class.isAssignableFrom(clazz)) {
     listenerList.add(clazz, listener);
   } else {
     log.error(
         "The class '"
             + clazz.getName()
             + "' is not a CacheEventListener. Ignoring this listener.");
   }
 }
 public void addUISettingsListener(
     @NotNull final UISettingsListener listener, @NotNull Disposable parentDisposable) {
   myListenerList.add(UISettingsListener.class, listener);
   Disposer.register(
       parentDisposable,
       new Disposable() {
         @Override
         public void dispose() {
           removeUISettingsListener(listener);
         }
       });
 }
示例#4
0
  /**
   * Add a file listener.
   *
   * @param fl the filetree listener to add.
   */
  public void addFileTreeListener(IFileTreeListener fl) {

    if (fl == null) {
      return;
    }

    if (fileListenerList == null) {
      fileListenerList = new EventListenerList();
    }

    fileListenerList.add(IFileTreeListener.class, fl);
  }
 /*     */ private void readObject(ObjectInputStream paramObjectInputStream)
     throws IOException, ClassNotFoundException
       /*     */ {
   /* 266 */ this.listenerList = NULL_ARRAY;
   /* 267 */ paramObjectInputStream.defaultReadObject();
   /*     */ Object localObject;
   /* 270 */ while (null != (localObject = paramObjectInputStream.readObject())) {
     /* 271 */ ClassLoader localClassLoader = Thread.currentThread().getContextClassLoader();
     /* 272 */ EventListener localEventListener =
         (EventListener) paramObjectInputStream.readObject();
     /* 273 */ add(
         Class.forName((String) localObject, true, localClassLoader), localEventListener);
     /*     */ }
   /*     */ }
 public void addReaderChangedListener(CardReaderChangeListener pcl) {
   listenerList.add(CardReaderChangeListener.class, pcl);
 }
示例#7
0
 public void addNewMessageEvent(IReadMessage messageEvent) {
   eventList.add(IReadMessage.class, messageEvent);
 }
 /** @param l */
 @Override
 public void addActionListener(ActionListener l) {
   listeners.add(ActionListener.class, l);
 }
 @Override
 public void addChangeListener(ChangeListener l) {
   listeners.add(ChangeListener.class, l);
 }
 public void addDiseaseTypeListener(DiseaseTypeListener l) {
   diseaseTypeListeners.add(DiseaseTypeListener.class, l);
 }
示例#11
0
 @Override
 public void addTreeModelListener(TreeModelListener l) {
   listenerList.add(TreeModelListener.class, l);
 }
示例#12
0
 public void addDiffListener(DiffListener l) {
   listeners.add(DiffListener.class, l);
 }
示例#13
0
文件: UiSolver.java 项目: manso/Muga
 /**
  * Add an event listener to the list.
  *
  * @param Listener the listener
  */
 public void addListener(EvolutionEventListener Listener) {
   listeners.add(EvolutionEventListener.class, Listener);
 }
示例#14
0
 @Override
 public void addTableModelListener(javax.swing.event.TableModelListener l) {
   listenerList.add(javax.swing.event.TableModelListener.class, l);
 }
示例#15
0
 /**
  * Register a component to listen for Solver state change events (adding a new item to the
  * solutionList or a new solve event).
  *
  * @param l the change listener.
  */
 public void addChangeListener(ChangeListener l) {
   listenerList.add(ChangeListener.class, l);
 } // end addChangeListener
 @Override
 public void addListDataListener(ListDataListener l) {
   listeners.add(ListDataListener.class, l);
 }
示例#17
0
 public void addListener(PropertyChangeListener l) {
   listenerList.add(PropertyChangeListener.class, l);
 }
 /** Adds specified listener */
 @Override
 public void addLafManagerListener(@NotNull final LafManagerListener l) {
   myListenerList.add(LafManagerListener.class, l);
 }
 @Override
 public final void addHintListener(@NotNull final HintListener listener) {
   myListenerList.add(HintListener.class, listener);
 }
 /** subscribes to listen for all messages from all connections */
 public void addMessageListener(GnutellaMessageListener l) {
   msglistenerlist.add(GnutellaMessageListener.class, l);
 }
示例#21
0
 public void addChangeListener(ChangeListener l) {
   listener_list_.add(ChangeListener.class, l);
 }
示例#22
0
 /** @param listener */
 public void addMouseWheelListener(MouseWheelListener listener) {
   Logger.debug("addMouseWheelListener(listener={})", listener);
   listenerList.add(MouseWheelListener.class, listener);
 }
示例#23
0
文件: Job.java 项目: myrmik/home
 public void addClickListener(DownloadCompleteListener l) {
   listenerList.add(DownloadCompleteListener.class, l);
 }
示例#24
0
 public void addZoomListener(ZoomListener aZoomListener) {
   listeners.add(ZoomListener.class, aZoomListener);
 }
示例#25
0
 public static void addXConfigurationListener(XConfigurationListener listener) {
   listenerList.add(XConfigurationListener.class, listener);
 }
示例#26
0
 public void addExamTypeListener(ExamTypeListener l) {
   examTypeListeners.add(ExamTypeListener.class, l);
 }
示例#27
0
 public void addActionListener(ActionListener listener) {
   eventListenerList.add(ActionListener.class, listener);
 }
 @Override
 public void addChangeListener(ChangeListener ol) {
   listenerList.add(ChangeListener.class, ol);
 }
 /**
  * Adds the specified {@link ProgressThreadStateListener} which will be informed of any changes.
  *
  * @param l
  */
 public static void addProgressThreadStateListener(ProgressThreadStateListener l) {
   listener.add(ProgressThreadStateListener.class, l);
 }
示例#30
0
 public void addOutgoingListener(OutgoingListener listener) {
   listeners.add(OutgoingListener.class, listener);
 }