本文整理汇总了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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}