/** * 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); } }
/** * 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); } }); }
/** * 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); }
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); }
@Override public void addTreeModelListener(TreeModelListener l) { listenerList.add(TreeModelListener.class, l); }
public void addDiffListener(DiffListener l) { listeners.add(DiffListener.class, l); }
/** * Add an event listener to the list. * * @param Listener the listener */ public void addListener(EvolutionEventListener Listener) { listeners.add(EvolutionEventListener.class, Listener); }
@Override public void addTableModelListener(javax.swing.event.TableModelListener l) { listenerList.add(javax.swing.event.TableModelListener.class, l); }
/** * 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); }
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); }
public void addChangeListener(ChangeListener l) { listener_list_.add(ChangeListener.class, l); }
/** @param listener */ public void addMouseWheelListener(MouseWheelListener listener) { Logger.debug("addMouseWheelListener(listener={})", listener); listenerList.add(MouseWheelListener.class, listener); }
public void addClickListener(DownloadCompleteListener l) { listenerList.add(DownloadCompleteListener.class, l); }
public void addZoomListener(ZoomListener aZoomListener) { listeners.add(ZoomListener.class, aZoomListener); }
public static void addXConfigurationListener(XConfigurationListener listener) { listenerList.add(XConfigurationListener.class, listener); }
public void addExamTypeListener(ExamTypeListener l) { examTypeListeners.add(ExamTypeListener.class, l); }
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); }
public void addOutgoingListener(OutgoingListener listener) { listeners.add(OutgoingListener.class, listener); }