本文整理了Java中javax.swing.Timer.removeActionListener()
方法的一些代码示例,展示了Timer.removeActionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timer.removeActionListener()
方法的具体详情如下:
包路径:javax.swing.Timer
类名称:Timer
方法名:removeActionListener
暂无
代码示例来源:origin: JetBrains/ideavim
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();
}
代码示例来源:origin: magefree/mage
public void cleanUp() {
draftPicks.cleanUp();
draftBooster.clear();
if (countdown != null) {
countdown.stop();
for (ActionListener al : countdown.getActionListeners()) {
countdown.removeActionListener(al);
}
}
}
代码示例来源:origin: magefree/mage
/**
* 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;
}
代码示例来源:origin: org.bidib.jbidib.eu.hansolo/SteelSeries
public void dispose() {
LED_BLINKING_TIMER.removeActionListener(this);
}
// </editor-fold>
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
button.removeActionListener(al);
}};
代码示例来源:origin: org.bidib.jbidib.eu.hansolo/SteelSeries
/**
* 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>
代码示例来源:origin: com.jidesoft/jide-oss
@Override
void stopTimer() {
if (_synchronizedFlashTimer != null) {
_synchronizedFlashTimer.removeActionListener(this);
}
}
代码示例来源:origin: org.jbundle.util.calendarpanel/org.jbundle.util.calendarpanel
/**
* Remove this timer.
*/
public synchronized void removeTimer()
{
if (m_timer != null)
{
m_timer.stop();
m_timer.removeActionListener(this);
m_timer = null;
}
}
/**
代码示例来源:origin: com.jidesoft/jide-oss
public void dispose() {
stop();
_timer.removeActionListener(this);
_timer = null;
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** 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;
}
}
代码示例来源:origin: org.bidib.jbidib.eu.hansolo/SteelSeries
@Override
public void dispose() {
CLOCK_TIMER.removeActionListener(this);
super.dispose();
}
代码示例来源:origin: org.bidib.jbidib.eu.hansolo/SteelSeries
@Override
public void dispose() {
CLOCK_TIMER.removeActionListener(this);
super.dispose();
}
// </editor-fold>
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** 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;
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** 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;
}
}
代码示例来源:origin: HanSolo/SteelSeries-Swing
@Override
public void dispose() {
CLOCK_TIMER.removeActionListener(this);
super.dispose();
}
// </editor-fold>
代码示例来源:origin: HanSolo/SteelSeries-Swing
@Override
public void dispose() {
CLOCK_TIMER.removeActionListener(this);
super.dispose();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** 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;
}
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
void startTimer() {
if (_synchronizedFlashTimer != null) {
_synchronizedFlashTimer.removeActionListener(this);
_synchronizedFlashTimer.addActionListener(this);
if (!_synchronizedFlashTimer.isRunning()) {
_synchronizedFlashTimer.start();
}
}
}
};
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected Timer createTimer(int delay, ActionListener listener) {
if (_synchronizedFlashTimer == null) {
_synchronizedFlashTimer = new FlashTimer(delay, listener);
}
_synchronizedFlashTimer.removeActionListener(listener);
_synchronizedFlashTimer.addActionListener(listener);
return _synchronizedFlashTimer;
}
代码示例来源:origin: com.googlecode.gstreamer-java/gstreamer-java
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();
}
}
内容来源于网络,如有侵权,请联系作者删除!