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


Java BorderLayoutPanel类代码示例

本文整理汇总了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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:ChooseModulesDialog.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:15,代码来源:PluginListDialog.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:OptionsEditorDialog.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:16,代码来源:XDebuggerEditorBase.java

示例5: simplePanel

import com.intellij.util.ui.components.BorderLayoutPanel; //导入依赖的package包/类
public static BorderLayoutPanel simplePanel() {
  return new BorderLayoutPanel();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:JBUI.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:XDebuggerEditorBase.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:XVariablesView.java


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