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


Java IdeBorderFactory.createTitledBorder方法代码示例

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


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

示例1: PyMemberSelectionPanel

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
/**
 * Creates panel and fills its table (see {@link #init(com.intellij.refactoring.classMembers.MemberInfoModel, java.util.Collection)} ) with members info
 *
 * @param title      Title for panel
 * @param memberInfo list of members
 * @param model      model
 */
public PyMemberSelectionPanel(String title,
                              List<PyMemberInfo<PyElement>> memberInfo,
                              final MemberInfoModel<PyElement, PyMemberInfo<PyElement>> model,
                              final boolean supportAbstract) {
  Border titledBorder = IdeBorderFactory.createTitledBorder(title, false);
  Border emptyBorder = BorderFactory.createEmptyBorder(0, 5, 5, 5);
  Border border = BorderFactory.createCompoundBorder(titledBorder, emptyBorder);
  setBorder(border);
  setLayout(new BorderLayout());

  myTable = new PyMemberSelectionTable(memberInfo, model, supportAbstract);
  JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myTable);


  add(scrollPane, BorderLayout.CENTER);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:PyMemberSelectionPanel.java

示例2: createTitledBorder

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
/**
 * Returns a title with the following format (e.g): 'title'_____________________
 *
 * @param title String
 * @return {@link IdeaTitledBorder}
 */
@NotNull
public static IdeaTitledBorder createTitledBorder(@NotNull final String title) {
    return IdeBorderFactory.createTitledBorder(title, true,
            new Insets(IdeBorderFactory.TITLED_BORDER_TOP_INSET,
                    5,
                    IdeBorderFactory.TITLED_BORDER_BOTTOM_INSET,
                    IdeBorderFactory.TITLED_BORDER_RIGHT_INSET));
}
 
开发者ID:testIT-LivingDoc,项目名称:livingdoc-intellij,代码行数:15,代码来源:GuiUtils.java

示例3: createCenterPanel

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
@Override
protected JComponent createCenterPanel() {
  JPanel panel = new JPanel(new GridBagLayout());
  JLabel nameLabel = new JLabel(IdeBundle.message("label.todo.filter.name"));
  panel.add(nameLabel,
            new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 5, 10), 0, 0));
  panel.add(myNameField,
            new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0));

  JPanel patternsPanel = new JPanel(new GridBagLayout());
  Border border = IdeBorderFactory.createTitledBorder(IdeBundle.message("group.todo.filter.patterns"), false);
  patternsPanel.setBorder(border);
  myTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myTable);
  scrollPane.setPreferredSize(new Dimension(550, myTable.getRowHeight() * 10));
  patternsPanel.add(scrollPane,
                    new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

  // Column "Available"
  TableUtil.setupCheckboxColumn(myTable, 0);
  //

  panel.add(patternsPanel,
            new GridBagConstraints(0, 1, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:28,代码来源:FilterDialog.java

示例4: DocCommentPanel

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
public DocCommentPanel(String title) {
  setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
  myBorder = IdeBorderFactory.createTitledBorder(title, true,
                                                 new Insets(IdeBorderFactory.TITLED_BORDER_TOP_INSET,
                                                            UIUtil.DEFAULT_HGAP,
                                                            IdeBorderFactory.TITLED_BORDER_BOTTOM_INSET,
                                                            IdeBorderFactory.TITLED_BORDER_RIGHT_INSET));
  this.setBorder(myBorder);

  myRbJavaDocAsIs = new JRadioButton();
  myRbJavaDocAsIs.setText(RefactoringBundle.message("javadoc.as.is"));
  add(myRbJavaDocAsIs);
  myRbJavaDocAsIs.setFocusable(false);

  myRbJavaDocCopy = new JRadioButton();
  myRbJavaDocCopy.setText(RefactoringBundle.message("javadoc.copy"));
  myRbJavaDocCopy.setFocusable(false);
  add(myRbJavaDocCopy);

  myRbJavaDocMove = new JRadioButton();
  myRbJavaDocMove.setText(RefactoringBundle.message("javadoc.move"));
  myRbJavaDocMove.setFocusable(false);
  add(myRbJavaDocMove);

  ButtonGroup bg = new ButtonGroup();
  bg.add(myRbJavaDocAsIs);
  bg.add(myRbJavaDocCopy);
  bg.add(myRbJavaDocMove);
  bg.setSelected(myRbJavaDocMove.getModel(), true);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:31,代码来源:DocCommentPanel.java

示例5: getComponent

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
@Override
public JComponent getComponent(){
  if (myComponent == null) {
    myComponent = createComponent();
    final IdeaTitledBorder border = IdeBorderFactory.createTitledBorder(myDescription, false);
    myComponent.setBorder(border);
  }
  return myComponent;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:WizardStep.java

示例6: createUIComponents

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
private void createUIComponents() {
  myEditorSettingsPanel = new JPanel();
  IdeaTitledBorder titledBorder = IdeBorderFactory.createTitledBorder("Editor", false);
  myEditorSettingsPanel.setBorder(titledBorder);
  titledBorder.acceptMinimumSize(myEditorSettingsPanel);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:DataViewsConfigurableUi.java

示例7: MyTitleComponent

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
MyTitleComponent(@NotNull String title) {
  myBorder = IdeBorderFactory.createTitledBorder(title);
  Insets insets = myBorder.getBorderInsets(TitleWithToolbar.this);
  myMinimumSize = new Dimension(1, insets.top);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:TitleWithToolbar.java

示例8: setStepTitle

import com.intellij.ui.IdeBorderFactory; //导入方法依赖的package包/类
protected void setStepTitle(String title){
  final IdeaTitledBorder border = IdeBorderFactory.createTitledBorder(title, false);
  getComponent().setBorder(border);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:WizardStep.java


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