当前位置: 首页>>代码示例>>Java>>正文


Java OptionGroup.add方法代码示例

本文整理汇总了Java中com.intellij.ui.OptionGroup.add方法的典型用法代码示例。如果您正苦于以下问题:Java OptionGroup.add方法的具体用法?Java OptionGroup.add怎么用?Java OptionGroup.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.ui.OptionGroup的用法示例。


在下文中一共展示了OptionGroup.add方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createCenterPanel

import com.intellij.ui.OptionGroup; //导入方法依赖的package包/类
@Override
protected JComponent createCenterPanel() {
  OptionGroup optionGroup = new OptionGroup(CodeEditorBundle.message("export.to.html.options.group"));

  myCbLineNumbers = new JCheckBox(CodeEditorBundle.message("export.to.html.options.show.line.numbers.checkbox"));
  optionGroup.add(myCbLineNumbers);

  for (UnnamedConfigurable printOption : myExtensions) {
    optionGroup.add(printOption.createComponent());
  }

  myCbOpenInBrowser = new JCheckBox(CodeEditorBundle.message("export.to.html.open.generated.html.checkbox"));
  optionGroup.add(myCbOpenInBrowser);

  return optionGroup.createPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:ExportToHTMLDialog.java

示例2: createNorthPanel

import com.intellij.ui.OptionGroup; //导入方法依赖的package包/类
@Override
protected JComponent createNorthPanel() {
  OptionGroup optionGroup = new OptionGroup();

  myTargetDirectoryField = new TextFieldWithBrowseButton();
  optionGroup.add(com.intellij.codeEditor.printing.ExportToHTMLDialog.assignLabel(myTargetDirectoryField, myProject));

  return optionGroup.createPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:ExportToHTMLDialog.java

示例3: doCreateOption

import com.intellij.ui.OptionGroup; //导入方法依赖的package包/类
private void doCreateOption(OptionGroup optionGroup, String title, IntOption option, String fieldName) {
  String renamed = myRenamedFields.get(fieldName);
  if (renamed != null) title = renamed;

  JBLabel l = new JBLabel(title);
  optionGroup.add(l, option.myTextField);
  myOptions.add(option);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:CodeStyleBlankLinesPanel.java

示例4: createPanel

import com.intellij.ui.OptionGroup; //导入方法依赖的package包/类
@NotNull
private JPanel createPanel() {
  OptionGroup group = new OptionGroup(ApplicationBundle.message("arrangement.settings.additional.title"));
  JPanel textWithComboPanel = new JPanel();
  textWithComboPanel.setLayout(new BoxLayout(textWithComboPanel, BoxLayout.LINE_AXIS));
  textWithComboPanel.add(new JLabel(ApplicationBundle.message("arrangement.settings.additional.force.combobox.name")));
  textWithComboPanel.add(Box.createRigidArea(JBUI.size(5, 0)));
  textWithComboPanel.add(myForceRearrangeComboBox);
  group.add(textWithComboPanel);
  return group.createPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:ForceArrangementPanel.java

示例5: createPanel

import com.intellij.ui.OptionGroup; //导入方法依赖的package包/类
@Nonnull
private JPanel createPanel() {
  OptionGroup group = new OptionGroup(ApplicationBundle.message("arrangement.settings.additional.title"));
  JPanel textWithComboPanel = new JPanel();
  textWithComboPanel.setLayout(new BoxLayout(textWithComboPanel, BoxLayout.LINE_AXIS));
  textWithComboPanel.add(new JLabel(ApplicationBundle.message("arrangement.settings.additional.force.combobox.name")));
  textWithComboPanel.add(Box.createRigidArea(new Dimension(5, 0)));
  textWithComboPanel.add(myForceRearrangeComboBox);
  group.add(textWithComboPanel);
  return group.createPanel();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:ForceArrangementPanel.java

示例6: addOptions

import com.intellij.ui.OptionGroup; //导入方法依赖的package包/类
protected void addOptions(OptionGroup optionGroup) {
  myCbOpenInBrowser = new JCheckBox();
  myCbOpenInBrowser.setText(InspectionsBundle.message("inspection.export.open.option"));
  optionGroup.add(myCbOpenInBrowser);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ExportToHTMLDialog.java

示例7: createNorthPanel

import com.intellij.ui.OptionGroup; //导入方法依赖的package包/类
@Override
protected JComponent createNorthPanel() {
  OptionGroup optionGroup = new OptionGroup();

  myRbCurrentFile = new JRadioButton(CodeEditorBundle.message("export.to.html.file.name.radio", (myFileName != null ? myFileName : "")));
  optionGroup.add(myRbCurrentFile);

  myRbSelectedText = new JRadioButton(CodeEditorBundle.message("export.to.html.selected.text.radio"));
  optionGroup.add(myRbSelectedText);

  myRbCurrentPackage = new JRadioButton(
    CodeEditorBundle.message("export.to.html.all.files.in.directory.radio", (myDirectoryName != null ? myDirectoryName : "")));
  optionGroup.add(myRbCurrentPackage);

  myCbIncludeSubpackages = new JCheckBox(CodeEditorBundle.message("export.to.html.include.subdirectories.checkbox"));
  optionGroup.add(myCbIncludeSubpackages, true);

  FileTextField field = FileChooserFactory.getInstance().createFileTextField(FileChooserDescriptorFactory.createSingleFolderDescriptor(), myDisposable);
  myTargetDirectoryField = new TextFieldWithBrowseButton(field.getField());
  LabeledComponent<TextFieldWithBrowseButton> labeledComponent = assignLabel(myTargetDirectoryField, myProject);

  optionGroup.add(labeledComponent);

  ButtonGroup buttonGroup = new ButtonGroup();
  buttonGroup.add(myRbCurrentFile);
  buttonGroup.add(myRbSelectedText);
  buttonGroup.add(myRbCurrentPackage);

  ActionListener actionListener = new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
      myCbIncludeSubpackages.setEnabled(myRbCurrentPackage.isSelected());
    }
  };

  myRbCurrentFile.addActionListener(actionListener);
  myRbSelectedText.addActionListener(actionListener);
  myRbCurrentPackage.addActionListener(actionListener);

  return optionGroup.createPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:42,代码来源:ExportToHTMLDialog.java


注:本文中的com.intellij.ui.OptionGroup.add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。