public void startMappingTimer(@NotNull ActionListener actionListener) { final NumberOption timeoutLength = Options.getInstance().getNumberOption("timeoutlen"); if (timeoutLength != null) { myMappingTimer.setInitialDelay(timeoutLength.value()); } for (ActionListener listener : myMappingTimer.getActionListeners()) { myMappingTimer.removeActionListener(listener); } myMappingTimer.addActionListener(actionListener); myMappingTimer.start(); }
public void cleanUp() { draftPicks.cleanUp(); draftBooster.clear(); if (countdown != null) { countdown.stop(); for (ActionListener al : countdown.getActionListeners()) { countdown.removeActionListener(al); } } }
/** * Free resources so GC can remove unused objects from memory */ public void cleanUp() { saveDividerLocationsAndDeckAreaSettings(); if (updateDeckTask != null) { updateDeckTask.cancel(true); } if (countdown != null) { if (countdown.isRunning()) { countdown.stop(); } for (ActionListener al : countdown.getActionListeners()) { countdown.removeActionListener(al); } } this.cardSelector.cleanUp(); this.deckArea.cleanUp(); this.remove(bigCard); this.bigCard = null; }
public void dispose() { LED_BLINKING_TIMER.removeActionListener(this); } // </editor-fold>
@Override public void close() throws IOException { button.removeActionListener(al); }};
/** * Calling this method will remove all active listeners from the timers */ public void dispose() { LED_BLINKING_TIMER.removeActionListener(this); USER_LED_BLINKING_TIMER.removeActionListener(this); PEAK_TIMER.removeActionListener(this); } // </editor-fold>
@Override void stopTimer() { if (_synchronizedFlashTimer != null) { _synchronizedFlashTimer.removeActionListener(this); } }
/** * Remove this timer. */ public synchronized void removeTimer() { if (m_timer != null) { m_timer.stop(); m_timer.removeActionListener(this); m_timer = null; } } /**
public void dispose() { stop(); _timer.removeActionListener(this); _timer = null; } }
/** Removes timer and all listeners. */ private void removeTimer () { if (timer!=null) { ActionListener[] l = (ActionListener[])timer.getListeners (ActionListener.class); for (int i=0; i<l.length; i++) { timer.removeActionListener (l[i]); } timer.stop (); timer = null; } }
@Override public void dispose() { CLOCK_TIMER.removeActionListener(this); super.dispose(); }
@Override public void dispose() { CLOCK_TIMER.removeActionListener(this); super.dispose(); } // </editor-fold>
/** Removes timer and all listeners. */ private void removeTimer() { if (timer != null) { ActionListener[] l = timer.getListeners (ActionListener.class); for (int i = 0; i < l.length; i++) { timer.removeActionListener(l[i]); } timer.stop(); timer = null; } }
/** Removes timer and all listeners. */ private void removeTimer() { if (timer != null) { ActionListener[] l = timer.getListeners(ActionListener.class); for (int i = 0; i < l.length; i++) { timer.removeActionListener(l[i]); } timer.stop(); timer = null; } }
@Override public void dispose() { CLOCK_TIMER.removeActionListener(this); super.dispose(); } // </editor-fold>
@Override public void dispose() { CLOCK_TIMER.removeActionListener(this); super.dispose(); }
/** Removes timer and all listeners. */ private void removeTimer () { if (timer!=null) { ActionListener[] l = (ActionListener[])timer.getListeners (ActionListener.class); for (int i=0; i<l.length; i++) { timer.removeActionListener (l[i]); } timer.stop (); timer = null; } }
@Override void startTimer() { if (_synchronizedFlashTimer != null) { _synchronizedFlashTimer.removeActionListener(this); _synchronizedFlashTimer.addActionListener(this); if (!_synchronizedFlashTimer.isRunning()) { _synchronizedFlashTimer.start(); } } } };
@Override protected Timer createTimer(int delay, ActionListener listener) { if (_synchronizedFlashTimer == null) { _synchronizedFlashTimer = new FlashTimer(delay, listener); } _synchronizedFlashTimer.removeActionListener(listener); _synchronizedFlashTimer.addActionListener(listener); return _synchronizedFlashTimer; }
public void destroy() { renderComponent.removePropertyChangeListener(propListener); renderComponent.removeMouseListener(mouseListener); renderComponent.removeMouseMotionListener(mouseListener); renderComponent.removeKeyListener(keyListener); removeKeyListener(keyListener); removeComponentListener(componentAdapter); remove(renderComponent); resourceTimer.removeActionListener(resourceReaper); resourceTimer.stop(); videosink.removeListener(); } }