javax.swing.JCheckBox.getSelectedObjects()方法的使用及代码示例

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

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

JCheckBox.getSelectedObjects介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-webui-designtime

/**
 * Returns true if the user has chosen to be able to select multiple items.
 * This value should correspond to the component's <code>multiple</code>
 * property (or equivalent). If the component has no <code>multiple</code>
 * property, this options list should have been constructed with 
 * <code>acceptsMultipleChoice</code> set to <code>false</code>, in which
 * case, this method will always return false.
 */
public boolean isMultipleChoice() {
  return this.multipleChoiceCheckBox.getSelectedObjects() == null ? false : true;
}

代码示例来源:origin: org.opencadc/cadc-download-manager

public void stateChanged(ChangeEvent e) {
  if (e.getSource() != null && e.getSource() == retryControl) {
    boolean enabled = (retryControl.getSelectedObjects() != null);
    log.debug("stateChanged: retry -> " + enabled);
    this.downloadManager.setRetryEnabled(enabled);
  }
}

相关文章

JCheckBox类方法