本文整理了Java中javax.swing.JSlider.getModel()
方法的一些代码示例,展示了JSlider.getModel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSlider.getModel()
方法的具体详情如下:
包路径:javax.swing.JSlider
类名称:JSlider
方法名:getModel
暂无
代码示例来源:origin: groovy/groovy-core
public synchronized void syntheticUnbind() {
boundSlider.removePropertyChangeListener("model", this);
boundSlider.getModel().removeChangeListener(this);
boundSlider = null;
}
代码示例来源:origin: groovy/groovy-core
public synchronized void syntheticBind() {
boundSlider = (JSlider) ((PropertyBinding)sourceBinding).getBean();
boundSlider.addPropertyChangeListener("model", this);
boundSlider.getModel().addChangeListener(this);
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
*/
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
slider.getModel().setValue(slider.getModel().getMinimum());
slider.getModel().setExtent(slider.getModel().getMaximum() - slider.getModel().getMinimum());
slider.repaint();
}
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
*/
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
slider.getModel().setValue(slider.getModel().getMinimum());
slider.getModel().setExtent(slider.getModel().getMaximum() - slider.getModel().getMinimum());
slider.repaint();
}
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
*/
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
slider.getModel().setValue(slider.getModel().getMinimum());
slider.getModel().setExtent(slider.getModel().getMaximum() - slider.getModel().getMinimum());
slider.repaint();
}
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
*/
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
slider.getModel().setValue(slider.getModel().getMinimum());
slider.getModel().setExtent(slider.getModel().getMaximum() - slider.getModel().getMinimum());
slider.repaint();
}
}
代码示例来源: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: org.codehaus.groovy/groovy-swing
public synchronized void syntheticUnbind() {
boundSlider.removePropertyChangeListener("model", this);
boundSlider.getModel().removeChangeListener(this);
boundSlider = null;
}
代码示例来源:origin: ribomation/DroidAtScreen1
@Override
public void stateChanged(ChangeEvent e) {
int value = scaleSlider.getModel().getValue();
if (scaleSlider.getValueIsAdjusting()) {
action.onScaleUpdated(value);
return;
} else {
action.onFinishScaleUpdated(value);
dlg.dispose();
}
}
});
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
*/
@Override
public void mouseReleased(MouseEvent e) {
slider.getModel().setValueIsAdjusting(false);
setMouseReleased(handle);
_listener.mouseReleased(e);
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
*/
@Override
public void mouseReleased(MouseEvent e) {
slider.getModel().setValueIsAdjusting(false);
setMouseReleased(handle);
_listener.mouseReleased(e);
}
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
public synchronized void syntheticBind() {
boundSlider = (JSlider) ((PropertyBinding)sourceBinding).getBean();
boundSlider.addPropertyChangeListener("model", this);
boundSlider.getModel().addChangeListener(this);
}
代码示例来源:origin: org.kohsuke.droovy/groovy
public synchronized void syntheticBind() {
boundSlider = (JSlider) ((PropertyBinding)sourceBinding).getBean();
boundSlider.addPropertyChangeListener("model", this);
boundSlider.getModel().addChangeListener(this);
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
*/
@Override
public void mouseReleased(MouseEvent e) {
slider.getModel().setValueIsAdjusting(false);
setMouseReleased(handle);
_listener.mouseReleased(e);
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
*/
@Override
public void mouseReleased(MouseEvent e) {
slider.getModel().setValueIsAdjusting(false);
setMouseReleased(handle);
_listener.mouseReleased(e);
}
代码示例来源:origin: com.synaptix/SynaptixSwing
protected void installListeners(JSlider slider) {
slider.addMouseListener(trackListener);
slider.addMouseMotionListener(trackListener);
slider.addFocusListener(focusListener);
slider.addComponentListener(componentListener);
slider.addPropertyChangeListener(propertyChangeListener);
slider.getModel().addChangeListener(changeListener);
}
代码示例来源:origin: com.synaptix/SynaptixSwing
protected void installListeners(JSlider slider) {
slider.addMouseListener(trackListener);
slider.addMouseMotionListener(trackListener);
slider.addFocusListener(focusListener);
slider.addComponentListener(componentListener);
slider.addPropertyChangeListener(propertyChangeListener);
slider.getModel().addChangeListener(changeListener);
}
代码示例来源: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;
}
内容来源于网络,如有侵权,请联系作者删除!