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

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

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

JCheckBox.doClick介绍

暂无

代码示例

代码示例来源:origin: KronicDeth/intellij-elixir

private void setRunInModuleSelected(boolean runInModule) {
    if (runInModule) {
      if (!runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    } else {
      if (runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    }
  }
}

代码示例来源:origin: KronicDeth/intellij-elixir

private void setRunInModuleSelected(boolean runInModule) {
    if (runInModule) {
      if (!runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    } else {
      if (runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    }
  }
}

代码示例来源:origin: KronicDeth/intellij-elixir

private void setRunInModuleSelected(boolean runInModuleSelected) {
    if (runInModuleSelected) {
      if (!runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    } else {
      if (runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    }
  }
}

代码示例来源:origin: KronicDeth/intellij-elixir

private void setRunInModuleSelected(boolean runInModuleSelected) {
    if (runInModuleSelected) {
      if (!runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    } else {
      if (runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    }
  }
}

代码示例来源:origin: KronicDeth/intellij-elixir

private void setRunInModuleSelected(boolean runInModuleSelected) {
    if (runInModuleSelected) {
      if (!runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    } else {
      if (runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    }
  }
}

代码示例来源:origin: KronicDeth/intellij-elixir

private void setRunInModuleSelected(boolean runInModule) {
    if (runInModule) {
      if (!runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    } else {
      if (runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    }
  }
}

代码示例来源:origin: KronicDeth/intellij-elixir

private void setRunInModuleSelected(boolean runInModuleSelected) {
    if (runInModuleSelected) {
      if (!runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    } else {
      if (runInModuleCheckBox.isSelected()) {
        runInModuleCheckBox.doClick();
      }
    }
  }
}

代码示例来源:origin: AlexanderBartash/hybris-integration-intellij-idea-plugin

@Override
  public void mouseClicked(final MouseEvent e) {
    directoryOverrideCheckBox.doClick();
  }
});

代码示例来源:origin: AlexanderBartash/hybris-integration-intellij-idea-plugin

@Override
  public void mouseClicked(final MouseEvent e) {
    dbDriversDirOverrideCheckBox.doClick();
  }
});

代码示例来源:origin: AlexanderBartash/hybris-integration-intellij-idea-plugin

@Override
  public void mouseClicked(final MouseEvent e) {
    circularDependencyCheckBox.doClick();
  }
});

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

/** Triggers validation and marks settings as 'changed' using hidden component. */
// TODO(ivanporty) explore UserActivityProviderComponent usage.
public void triggerSettingsEditorValidation() {
 hiddenValidationTrigger.doClick();
}

代码示例来源:origin: zitmen/thunderstorm

public void undoOrRedoLastOperation() {
  if(!stack.isEmpty()) {
    JCheckBox chb = stack.get(stack.size() - 1).chb;
    if(chb != null) {
      chb.doClick();
    }
  }
}

代码示例来源:origin: com.synaptix.toast/toast-tk-fixtures

private void handle(JCheckBox checkbox, CommandRequest command) {
  switch (command.action) {
  case CLICK:
    checkbox.doClick();
  default:
    throw new IllegalArgumentException("Unsupported command for JCheckBox: " + command.action.name());
  }
}

代码示例来源:origin: net.sf.squirrel-sql.plugins/firebirdmanager

public void keyPressed(KeyEvent e) {
  if (e.getKeyCode() == KeyEvent.VK_ENTER) {
    if (e.getSource() == jpasswordfieldManager
        && !jcheckboxConnectToServer.isSelected()) {
      jcheckboxConnectToServer.doClick();
    }
  }
}
public void keyReleased(KeyEvent e) {

代码示例来源:origin: datacleaner/DataCleaner

@Override
  public void mouseClicked(final MouseEvent e) {
    _checkBox.doClick();
    _datastoreListPanel.requestSearchFieldFocus();
    if (e.getClickCount() > 1) {
      // begin job on double click
      _datastoreListPanel.clickAnalyzeButton();
    }
  }
};

代码示例来源:origin: protegeproject/protege

public void mouseClicked(MouseEvent e) {
    JTableHeader header = (JTableHeader)(e.getSource());
    JTable tableView = header.getTable();
    TableColumnModel columnModel = tableView.getColumnModel();
    int viewColumn = columnModel.getColumnIndexAtX(e.getX());
    int column = tableView.convertColumnIndexToModel(viewColumn);
    if (column == 0 && viewColumn == column && e.getClickCount() == 1) {
      checkAllCheckbox.doClick();
    }
    header.repaint();
  }
};

代码示例来源:origin: org.protege/protege-editor-core-application

public void mouseClicked(MouseEvent e) {
    JTableHeader header = (JTableHeader)(e.getSource());
    JTable tableView = header.getTable();
    TableColumnModel columnModel = tableView.getColumnModel();
    int viewColumn = columnModel.getColumnIndexAtX(e.getX());
    int column = tableView.convertColumnIndexToModel(viewColumn);
    if (column == 0 && viewColumn == column && e.getClickCount() == 1) {
      checkAllCheckbox.doClick();
    }
    header.repaint();
  }
};

代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application

public void mouseClicked(MouseEvent e) {
    JTableHeader header = (JTableHeader)(e.getSource());
    JTable tableView = header.getTable();
    TableColumnModel columnModel = tableView.getColumnModel();
    int viewColumn = columnModel.getColumnIndexAtX(e.getX());
    int column = tableView.convertColumnIndexToModel(viewColumn);
    if (column == 0 && viewColumn == column && e.getClickCount() == 1) {
      checkAllCheckbox.doClick();
    }
    header.repaint();
  }
};

代码示例来源:origin: palantir/Cinch

public void testOne() {
  assertEquals(false, demoModel.isDemoBoolean());
  demoBooleanCheckBox.doClick();
  assertEquals(true, demoModel.isDemoBoolean());
}

代码示例来源:origin: palantir/Cinch

public void testOne() {
  assertEquals(false, view.demoModel.isDemoBoolean());
  view.demoBooleanCheckBox.doClick();
  assertEquals(true, view.demoModel.isDemoBoolean());
}

相关文章

JCheckBox类方法