javax.swing.JSlider.removePropertyChangeListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中javax.swing.JSlider.removePropertyChangeListener()方法的一些代码示例,展示了JSlider.removePropertyChangeListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSlider.removePropertyChangeListener()方法的具体详情如下:
包路径:javax.swing.JSlider
类名称:JSlider
方法名:removePropertyChangeListener

JSlider.removePropertyChangeListener介绍

暂无

代码示例

代码示例来源:origin: groovy/groovy-core

public synchronized void syntheticUnbind() {
  boundSlider.removePropertyChangeListener("model", this);
  boundSlider.getModel().removeChangeListener(this);
  boundSlider = null;
}

代码示例来源:origin: it.tidalwave.betterbeansbinding/betterbeansbinding-swingbinding

protected void listeningStopped() {
  slider.removeChangeListener(handler);
  slider.removePropertyChangeListener("model", handler);
  handler = null;
}

代码示例来源:origin: net.java.dev.beansbinding/beansbinding

protected void listeningStopped() {
  slider.removeChangeListener(handler);
  slider.removePropertyChangeListener("model", handler);
  handler = null;
}

代码示例来源:origin: khuxtable/seaglass

protected void uninstallListeners(JSlider slider) {
  slider.removePropertyChangeListener(this);
  super.uninstallListeners(slider);
}

代码示例来源:origin: org.kohsuke.droovy/groovy

public synchronized void syntheticUnbind() {
  boundSlider.removePropertyChangeListener("model", this);
  boundSlider.getModel().removeChangeListener(this);
  boundSlider = null;
}

代码示例来源:origin: org.codehaus.groovy/groovy-swing

public synchronized void syntheticUnbind() {
  boundSlider.removePropertyChangeListener("model", this);
  boundSlider.getModel().removeChangeListener(this);
  boundSlider = null;
}

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

public synchronized void unbind() {
  if (bound) {
    bound = false;
    // fail dirty, no checks
    boundSlider.removePropertyChangeListener("model", this);
    boundSlider.getModel().removeChangeListener(this);
    boundSlider = null;
  }
}

代码示例来源:origin: org.codehaus.groovy/groovy-jdk14

public synchronized void syntheticUnbind() {
  boundSlider.removePropertyChangeListener("model", this);
  boundSlider.getModel().removeChangeListener(this);
  boundSlider = null;
}

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

public synchronized void syntheticUnbind() {
  boundSlider.removePropertyChangeListener("model", this);
  boundSlider.getModel().removeChangeListener(this);
  boundSlider = null;
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: org.java.net.substance/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  // fix for defect 109 - memory leak on changing skin
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: org.java.net.substance/substance

@Override
protected void uninstallListeners(JSlider slider) {
  super.uninstallListeners(slider);
  // fix for defect 109 - memory leak on changing skin
  slider.removeMouseListener(this.substanceRolloverListener);
  slider.removeMouseMotionListener(this.substanceRolloverListener);
  this.substanceRolloverListener = null;
  slider
      .removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  this.stateTransitionTracker.unregisterModelListeners();
  this.stateTransitionTracker.unregisterFocusListeners();
}

代码示例来源:origin: com.synaptix/SynaptixSwing

protected void uninstallListeners(JSlider slider) {
  slider.removeMouseListener(trackListener);
  slider.removeMouseMotionListener(trackListener);
  slider.removeFocusListener(focusListener);
  slider.removeComponentListener(componentListener);
  slider.removePropertyChangeListener(propertyChangeListener);
  slider.getModel().removeChangeListener(changeListener);
  handler = null;
}

代码示例来源:origin: com.synaptix/SynaptixSwing

protected void uninstallListeners(JSlider slider) {
  slider.removeMouseListener(trackListener);
  slider.removeMouseMotionListener(trackListener);
  slider.removeFocusListener(focusListener);
  slider.removeComponentListener(componentListener);
  slider.removePropertyChangeListener(propertyChangeListener);
  slider.getModel().removeChangeListener(changeListener);
  handler = null;
}

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

public synchronized void bind() {
  if (!bound) {
    boundSlider = (JSlider) ((PropertyBinding)sourceBinding).getBean();
    try {
      boundSlider.addPropertyChangeListener("model", this);
      boundSlider.getModel().addChangeListener(this);
      bound = true;
    } catch (RuntimeException re) {
      try {
        boundSlider.removePropertyChangeListener("model", this);
        boundSlider.getModel().removeChangeListener(this);
      } catch (Exception e) {
        // ignore as we are re-throwing the original cause
      }
      throw re;
    }
  }
}

相关文章

JSlider类方法