javax.swing.JComboBox.addPropertyChangeListener()方法的使用及代码示例

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

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

JComboBox.addPropertyChangeListener介绍

暂无

代码示例

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

public synchronized void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.addItemListener(this);
}

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

public synchronized void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.addItemListener(this);
}

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

protected void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.getModel().addListDataListener(this);
}

代码示例来源:origin: fr.ifremer/isis-fish

@Override
public void applyDataBinding() {
  if (comboResult != null) {
    comboResult.addPropertyChangeListener("model", this);
  }
}

代码示例来源:origin: fr.ifremer/isis-fish

@Override
public void applyDataBinding() {
  if (comboResult != null) {
    comboResult.addPropertyChangeListener("model", this);
  }
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
public void addValueChangeListener(PropertyChangeListener listener) {
  super.addPropertyChangeListener(VALUE_PROP_NAME, listener);
}

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

public synchronized void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.addItemListener(this);
}

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

public synchronized void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.addItemListener(this);
}

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

protected void listeningStarted() {
  handler = new Handler();
  cachedItem = combo.getSelectedItem();
  combo.addActionListener(handler);
  combo.addPropertyChangeListener("model", handler);
}

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

public synchronized void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.addItemListener(this);
}

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

public synchronized void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.addItemListener(this);
}

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

protected void listeningStarted() {
  handler = new Handler();
  cachedItem = combo.getSelectedItem();
  combo.addActionListener(handler);
  combo.addPropertyChangeListener("model", handler);
}

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

public synchronized void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.addItemListener(this);
}

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

protected void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.getModel().addListDataListener(this);
}

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

protected void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.getModel().addListDataListener(this);
}

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

protected void syntheticBind() {
  boundComboBox = (JComboBox) ((PropertyBinding)sourceBinding).getBean();
  boundComboBox.addPropertyChangeListener("model", this);
  boundComboBox.getModel().addListDataListener(this);
}

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

@Override
protected void installComboBoxListeners() {
 // create extra listener for popupRenderer
 comboBox.addPropertyChangeListener(getTPropertyChangeListener());
 super.installComboBoxListeners();
}

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

@Override
protected void installListeners() {
  comboBox.addPropertyChangeListener(this);
  comboBox.addMouseListener(buttonHandler);
  editorFocusHandler = new EditorFocusHandler(comboBox);
  super.installListeners();
}

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

private EditorFocusHandler(JComboBox comboBox) {
  this.comboBox = comboBox;
  editor = comboBox.getEditor();
  if (editor != null) {
    editorComponent = editor.getEditorComponent();
    if (editorComponent != null) {
      editorComponent.addFocusListener(this);
    }
  }
  comboBox.addPropertyChangeListener("editor", this);
}

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

@Override
protected void installListeners() {
  super.installListeners();
  this.substanceChangeHandler = new ComboBoxPropertyChangeHandler();
  this.comboBox.addPropertyChangeListener(this.substanceChangeHandler);
  this.substanceRolloverListener = new RolloverTextControlListener(
      this.comboBox, this, this.transitionModel);
  this.substanceRolloverListener.registerListeners();
  this.stateTransitionTracker.registerModelListeners();
  this.stateTransitionTracker.registerFocusListeners();
}

相关文章

JComboBox类方法