本文整理了Java中javax.swing.JComboBox.removeActionListener()
方法的一些代码示例,展示了JComboBox.removeActionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComboBox.removeActionListener()
方法的具体详情如下:
包路径:javax.swing.JComboBox
类名称:JComboBox
方法名:removeActionListener
暂无
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void prepareSpinner(JComboBox comboBox, ActionListener listener) {
comboBox.removeActionListener(listener);
comboBox.setSelectedItem(null);
comboBox.removeAllItems();
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void prepareSpinner(JComboBox comboBox, ActionListener listener) {
comboBox.removeActionListener(listener);
comboBox.setSelectedItem(null);
comboBox.removeAllItems();
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateAlgorithmMethod() {
methodSpinner.removeActionListener(methodListener);
methodSpinner.removeAllItems();
final List<String> methods = controller.getMethods();
for (String method : methods) {
methodSpinner.addItem(method);
}
methodSpinner.setSelectedItem(controller.getMethod());
methodSpinner.setEnabled(methods.size() > 1);
methodSpinner.addActionListener(methodListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateAlgorithmMethod() {
methodSpinner.removeActionListener(methodListener);
methodSpinner.removeAllItems();
final List<String> methods = controller.getMethods();
for (String method : methods) {
methodSpinner.addItem(method);
}
methodSpinner.setSelectedItem(controller.getMethod());
methodSpinner.setEnabled(methods.size() > 1);
methodSpinner.addActionListener(methodListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateFormat() {
formatSpinner.removeActionListener(formatListener);
formatSpinner.removeAllItems();
for (Format format : Format.nonVectorValues()) {
formatSpinner.addItem(format);
}
formatSpinner.setSelectedItem(controller.getFormat());
formatSpinner.addActionListener(formatListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateSourceResolution() {
sourceResolutionSpinner.removeActionListener(sourceResolutionListener);
sourceResolutionSpinner.removeAllItems();
for (Resolution resolution : Resolution.nonVectorValues()) {
sourceResolutionSpinner.addItem(resolution);
}
sourceResolutionSpinner.setSelectedItem(controller.getSourceResolution());
sourceResolutionSpinner.addActionListener(sourceResolutionListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateAlgorithms() {
algorithmSpinner.removeActionListener(algorithmListener);
algorithmSpinner.removeAllItems();
for (ResizeAlgorithm algorithm : ResizeAlgorithm.values()) {
algorithmSpinner.addItem(algorithm);
}
algorithmSpinner.setSelectedItem(controller.getAlgorithm());
algorithmSpinner.addActionListener(algorithmListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateDestination() {
destinationSpinner.removeActionListener(destinationListener);
destinationSpinner.removeAllItems();
for (Destination format : Destination.values()) {
destinationSpinner.addItem(format);
}
destinationSpinner.setSelectedItem(controller.getDestination());
destinationSpinner.addActionListener(destinationListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateAlgorithms() {
algorithmSpinner.removeActionListener(algorithmListener);
algorithmSpinner.removeAllItems();
for (ResizeAlgorithm algorithm : ResizeAlgorithm.values()) {
algorithmSpinner.addItem(algorithm);
}
algorithmSpinner.setSelectedItem(controller.getAlgorithm());
algorithmSpinner.addActionListener(algorithmListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateSourceResolution() {
sourceResolutionSpinner.removeActionListener(sourceResolutionListener);
sourceResolutionSpinner.removeAllItems();
for (Resolution resolution : Resolution.nonVectorValues()) {
sourceResolutionSpinner.addItem(resolution);
}
sourceResolutionSpinner.setSelectedItem(controller.getSourceResolution());
sourceResolutionSpinner.addActionListener(sourceResolutionListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateFormat() {
formatSpinner.removeActionListener(formatListener);
formatSpinner.removeAllItems();
for (Format format : Format.nonVectorValues()) {
formatSpinner.addItem(format);
}
formatSpinner.setSelectedItem(controller.getFormat());
formatSpinner.setEnabled(!controller.isNinePatch());
formatSpinner.addActionListener(formatListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateFormat() {
formatSpinner.removeActionListener(formatListener);
formatSpinner.removeAllItems();
for (Format format : Format.nonVectorValues()) {
formatSpinner.addItem(format);
}
formatSpinner.setSelectedItem(controller.getFormat());
formatSpinner.setEnabled(!controller.isNinePatch());
formatSpinner.addActionListener(formatListener);
}
代码示例来源:origin: winterDroid/android-drawable-importer-intellij-plugin
private void updateFormat() {
formatSpinner.removeActionListener(formatListener);
formatSpinner.removeAllItems();
for (Format format : Format.nonVectorValues()) {
formatSpinner.addItem(format);
}
formatSpinner.setSelectedItem(controller.getFormat());
formatSpinner.setEnabled(!controller.containsNinePatch());
formatSpinner.addActionListener(formatListener);
}
代码示例来源:origin: pentaho/mondrian
listEditor.removeActionListener(al);
listEditor.removeActionListener(al);
listEditor.removeActionListener(al);
listEditor.setModel(
new DefaultComboBoxModel(
listEditor.removeActionListener(al);
listEditor.setModel(
new DefaultComboBoxModel(
listEditor.removeActionListener(al);
listEditor.setModel(
new DefaultComboBoxModel(
listEditor.removeActionListener(al);
listEditor.setModel(
new DefaultComboBoxModel(MondrianGuiDef.SQL._dialect_values));
listEditor.removeActionListener(al);
listEditor.setModel(
new DefaultComboBoxModel(
listEditor.removeActionListener(al);
listEditor.setModel(
new DefaultComboBoxModel(
listEditor.removeActionListener(al);
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-vmd-midp
void clean() {
combobox.removeActionListener(this);
combobox = null;
this.removeAll();
}
代码示例来源:origin: it.tidalwave.betterbeansbinding/betterbeansbinding-swingbinding
protected void listeningStopped() {
combo.removeActionListener(handler);
combo.removePropertyChangeListener("model", handler);
handler = null;
cachedItem = null;
}
代码示例来源:origin: net.java.dev.beansbinding/beansbinding
protected void listeningStopped() {
combo.removeActionListener(handler);
combo.removePropertyChangeListener("model", handler);
handler = null;
cachedItem = null;
}
代码示例来源:origin: org.codehaus.mevenide/nb-project
public void run() {
component.removeActionListener(ComboBoxUpdater.this);
setComboValue(getValue(), getDefaultValue(), component);
component.addActionListener(ComboBoxUpdater.this);
}
});
代码示例来源:origin: org.codehaus.mevenide/nb-project
private void removeListeners() {
comConfiguration.removeActionListener(comboListener);
txtMainClass.getDocument().removeDocumentListener(docListener);
txtArguments.getDocument().removeDocumentListener(docListener);
txtVMOptions.getDocument().removeDocumentListener(docListener);
txtWorkDir.getDocument().removeDocumentListener(docListener);
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-vmd-screen
public void editedScreenChanged(long editedScreenComponentID) {
editedScreen = document.getComponentByUID(EditedScreenSupport.getSupportForDocument(document).getEditedScreenComponentID());
editedScreenCombo.removeActionListener(editedScreenComboListener);
editedScreenCombo.setSelectedItem(editedScreen);
editedScreenCombo.addActionListener(editedScreenComboListener);
refreshPanels();
}
内容来源于网络,如有侵权,请联系作者删除!