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

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

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

JComboBox.removePopupMenuListener介绍

暂无

代码示例

代码示例来源:origin: com.google.code.validationframework/validationframework-swing

/**
   * @see Disposable#dispose()
   */
  @Override
  public void dispose() {
    if (source != null) {
      source.removePopupMenuListener(sourceAdapter);
      source = null;
    }
  }
}

代码示例来源:origin: xyz.cofe/gui.swing

@Override
  public void close() throws IOException {
    if(cmpt!=null && l!=null ){
      cmpt.removePopupMenuListener(l);
      cmpt = null;
      l = null;
    }
  }
};

代码示例来源:origin: com.google.code.validationframework/validationframework-swing

/**
   * @see Disposable#dispose()
   */
  @Override
  public void dispose() {
    if (source != null) {
      source.removePopupMenuListener(sourceAdapter);
      source = null;
    }
  }
}

代码示例来源:origin: com.google.code.validationframework/validationframework-swing

/**
   * @see Disposable#dispose()
   */
  @Override
  public void dispose() {
    if (source != null) {
      source.removePopupMenuListener(sourceAdapter);
      source = null;
    }
  }
}

代码示例来源:origin: xyz.cofe/gui.swing

@Override
  public void close() throws IOException {
    if(cmpt!=null && l!=null ){
      cmpt.removePopupMenuListener(l);
      cmpt = null;
      l = null;
    }
  }
};

代码示例来源:origin: xyz.cofe/gui.swing

@Override
  public void close() throws IOException {
    if(cmpt!=null && l!=null ){
      cmpt.removePopupMenuListener(l);
      cmpt = null;
      l = null;
    }
  }
};

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javafx2-project

public void removePopupMenuListener(PopupMenuListener l) {
  combo.removePopupMenuListener(l);
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking

@Override
public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
  comboBox.removePopupMenuListener(this);
  /* Restore the item selection listener: */
  comboBox.addItemListener(RepositoryComboSupport.this);
}
@Override

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking

@Override
public void popupMenuCanceled(PopupMenuEvent e) {
  comboBox.removePopupMenuListener(this);
  /* Restore the item selection listener: */
  comboBox.addItemListener(RepositoryComboSupport.this);
}
@Override

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking

@Override
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
  LOG.finer("popupMenuWillBecomeInvisible()");        //NOI18N
  comboBox.removePopupMenuListener(this);
}
@Override

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking

@Override
  public void popupMenuCanceled(PopupMenuEvent e) {
    LOG.finer("popupMenuCanceled()");                   //NOI18N
    comboBox.removePopupMenuListener(this);
    LOG.finest(" - processing deferred selection");     //NOI18N
    preselectItemUnconditionally(repoToPreselect);
  }
});

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-bugtracking

@Override
  public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
    comboBox.removePopupMenuListener(this);
    if (comboBox.getSelectedItem() != SELECT_REPOSITORY) {
      comboBoxModel.removeElementAt(0);
    } else {
      /* Restore the item selection listener: */
      comboBox.addItemListener(RepositoryComboSupport.this);
    }
  }
});

代码示例来源:origin: com.jidesoft/jide-oss

@Override
public void uninstallListeners() {
  super.uninstallListeners();
  if (_component instanceof JComboBox) {
    ((JComboBox) _component).getModel().removeListDataListener(this);
    ((JComboBox) _component).removePopupMenuListener(this);
  }
  _component.removePropertyChangeListener("model", this);
}

相关文章

JComboBox类方法