本文整理汇总了Java中com.intellij.util.ui.components.BorderLayoutPanel类的典型用法代码示例。如果您正苦于以下问题:Java BorderLayoutPanel类的具体用法?Java BorderLayoutPanel怎么用?Java BorderLayoutPanel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BorderLayoutPanel类属于com.intellij.util.ui.components包,在下文中一共展示了BorderLayoutPanel类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createNorthPanel
import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
protected JComponent createNorthPanel() {
BorderLayoutPanel panel = JBUI.Panels.simplePanel(15, 10);
if (myIcon != null) {
JLabel iconLabel = new JLabel(myIcon);
panel.addToLeft(JBUI.Panels.simplePanel().addToTop(iconLabel));
}
BorderLayoutPanel messagePanel = JBUI.Panels.simplePanel();
if (myMessage != null) {
JLabel textLabel = new JLabel(myMessage);
textLabel.setBorder(JBUI.Borders.emptyBottom(5));
textLabel.setUI(new MultiLineLabelUI());
messagePanel.addToTop(textLabel);
}
panel.add(messagePanel, BorderLayout.CENTER);
final JScrollPane jScrollPane = ScrollPaneFactory.createScrollPane();
jScrollPane.setViewportView(myView);
jScrollPane.setPreferredSize(JBUI.size(300, 80));
panel.addToBottom(jScrollPane);
return panel;
}
示例2: createSouthPanel
import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createSouthPanel() {
JComponent southPanel = super.createSouthPanel();
if (southPanel != null) {
southPanel.add(new JBLabel("Following nodes will be downloaded & installed"), BorderLayout.WEST);
southPanel.setBorder(JBUI.Borders.empty(ourDefaultBorderInsets));
BorderLayoutPanel borderLayoutPanel = JBUI.Panels.simplePanel(southPanel);
borderLayoutPanel.setBorder(new CustomLineBorder(JBUI.scale(1), 0, 0, 0));
return borderLayoutPanel;
}
return null;
}
示例3: createSouthPanel
import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createSouthPanel() {
JComponent southPanel = super.createSouthPanel();
if(southPanel != null) {
southPanel.setBorder(JBUI.Borders.empty(ourDefaultBorderInsets));
BorderLayoutPanel borderLayoutPanel = JBUI.Panels.simplePanel(southPanel);
borderLayoutPanel.setBorder(new CustomLineBorder(JBUI.scale(1), 0, 0, 0));
return borderLayoutPanel;
}
return null;
}
示例4: decorate
import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
protected JPanel decorate(JComponent component, boolean multiline, boolean showEditor) {
BorderLayoutPanel panel = JBUI.Panels.simplePanel();
JPanel factoryPanel = JBUI.Panels.simplePanel();
factoryPanel.add(myChooseFactory, multiline ? BorderLayout.NORTH : BorderLayout.CENTER);
panel.add(factoryPanel, BorderLayout.WEST);
if (!multiline && showEditor) {
component = addMultilineButton(component);
}
panel.addToCenter(component);
return panel;
}
示例5: simplePanel
import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
public static BorderLayoutPanel simplePanel() {
return new BorderLayoutPanel();
}
示例6: addChooser
import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
protected JComponent addChooser(JComponent component) {
BorderLayoutPanel panel = JBUI.Panels.simplePanel(component);
panel.setBackground(component.getBackground());
panel.addToRight(myChooseFactory);
return panel;
}
示例7: XVariablesView
import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
public XVariablesView(@Nonnull XDebugSessionImpl session) {
super(session.getProject(), session.getDebugProcess().getEditorsProvider(), session.getValueMarkers());
myComponent = new BorderLayoutPanel();
myComponent.add(super.getPanel());
DataManager.registerDataProvider(myComponent, this);
}