本文整理汇总了Java中com.intellij.util.ui.ColumnInfo.StringColumn方法的典型用法代码示例。如果您正苦于以下问题:Java ColumnInfo.StringColumn方法的具体用法?Java ColumnInfo.StringColumn怎么用?Java ColumnInfo.StringColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.ui.ColumnInfo
的用法示例。
在下文中一共展示了ColumnInfo.StringColumn方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEditor
import com.intellij.util.ui.ColumnInfo; //导入方法依赖的package包/类
@NotNull
@Override
protected JComponent createEditor()
{
JPanel panel = new JPanel(new VerticalFlowLayout());
JBList<Executor> executorList = new JBList<>(new CollectionListModel<>(Executor.EP_NAME.getExtensions()));
executorList.setCellRenderer(new ColoredListCellRenderer<Executor>()
{
@Override
protected void customizeCellRenderer(@NotNull JList<? extends Executor> list, Executor value, int index, boolean selected, boolean hasFocus)
{
setIcon(value.getIcon());
append(value.getActionName());
}
});
JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(executorList);
scrollPane.setPreferredSize(JBUI.size(-1, 90));
panel.add(scrollPane);
JBTextField startupScript = new JBTextField();
JBTextField shutdownScript = new JBTextField();
JBCheckBox startScriptDefault = new JBCheckBox(J2EEBundle.message("checkbox.edit.script.properties.use.default"));
JBCheckBox shutdownScriptDefault = new JBCheckBox(J2EEBundle.message("checkbox.edit.script.properties.use.default"));
JPanel scriptPanel = new JPanel(new GridLayout(2, 3));
panel.add(scriptPanel);
scriptPanel.add(new JBLabel(J2EEBundle.message("label.run.configuration.editor.startup.script")));
scriptPanel.add(startupScript);
scriptPanel.add(startScriptDefault);
scriptPanel.add(new JBLabel(J2EEBundle.message("label.run.configuration.editor.shutdown.script")));
scriptPanel.add(shutdownScript);
scriptPanel.add(shutdownScriptDefault);
JPanel envPanel = new JPanel(new BorderLayout());
envPanel.setBorder(IdeBorderFactory.createTitledBorder(J2EEBundle.message("border.run.configuration.editor.environment.variables"), false));
JBCheckBox passEnvVariables = new JBCheckBox(J2EEBundle.message("checkbox.run.configuration.editor.pass.environment.variables"));
envPanel.add(passEnvVariables, BorderLayout.NORTH);
java.util.List<Couple<String>> env = new ArrayList<>();
ColumnInfo[] columnInfos = {
new ColumnInfo.StringColumn("Name"),
new ColumnInfo.StringColumn("Value")
};
TableView<Couple<String>> tableView = new TableView<>(new ListTableModel<>(columnInfos, env));
ToolbarDecorator decorator = ToolbarDecorator.createDecorator(tableView);
decorator.disableUpDownActions();
JPanel comp = decorator.createPanel();
comp.setPreferredSize(JBUI.size(-1, 100));
envPanel.add(comp, BorderLayout.CENTER);
panel.add(envPanel);
return ScrollPaneFactory.createScrollPane(panel);
}
示例2: ClauseTableModel
import com.intellij.util.ui.ColumnInfo; //导入方法依赖的package包/类
public ClauseTableModel(boolean isReadonlyFile) {
super(new ColumnInfo.StringColumn("Key"), new ColumnInfo.StringColumn("Value"));
myIsReadonlyFile = isReadonlyFile;
}
示例3: FileTableModel
import com.intellij.util.ui.ColumnInfo; //导入方法依赖的package包/类
public FileTableModel(ManifestFile manifestFile) {
super(new ColumnInfo.StringColumn(""));
myManifestFile = manifestFile;
}
示例4: HeaderTableModel
import com.intellij.util.ui.ColumnInfo; //导入方法依赖的package包/类
public HeaderTableModel(final Header header, final HeaderParser headerParser, boolean isReadonlyFile) {
super(new ColumnInfo.StringColumn(""));
myHeader = header;
myIsReadonlyFile = isReadonlyFile;
}