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


Java TableLayoutBuilder.relatedGapRow方法代码示例

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


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

示例1: createDialogContentPane

import org.springframework.richclient.layout.TableLayoutBuilder; //导入方法依赖的package包/类
protected JComponent createDialogContentPane() {
    TableLayoutBuilder layoutBuilder = new TableLayoutBuilder();

    if (this.inputField == null) {
        this.inputField = getComponentFactory().createTextField();
    }
    // work around for bug in JFormattedTextField text field for selectAll
    if (inputField instanceof JFormattedTextField) {
        SelectAllBugFixer selectAllBugFixer = new SelectAllBugFixer();
        inputField.addFocusListener(selectAllBugFixer);
    }

    layoutBuilder.cell(createInputLabel(), TableLayoutBuilder.DEFAULT_LABEL_ATTRIBUTES);
    layoutBuilder.labelGapCol();
    layoutBuilder.cell(inputField);

    layoutBuilder.unrelatedGapRow();
    layoutBuilder.cell(getMessagePane().getControl());

    layoutBuilder.relatedGapRow();
    layoutBuilder.separator("");
    return layoutBuilder.getPanel();
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:24,代码来源:InputApplicationDialog.java

示例2: createDialogContentPane

import org.springframework.richclient.layout.TableLayoutBuilder; //导入方法依赖的package包/类
protected JComponent createDialogContentPane() {
	TableLayoutBuilder builder = new TableLayoutBuilder();

	JComponent selectionComponent = createSelectionComponent();
	Assert.state(selectionComponent != null, "createSelectionComponent cannot return null");

	if (StringUtils.hasText(description)) {
		builder.cell(getComponentFactory().createLabelFor(description, selectionComponent));
		builder.relatedGapRow();
		builder.row();
	}

	builder.cell(selectionComponent);

	return builder.getPanel();
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:17,代码来源:AbstractSelectionDialog.java

示例3: createSelectionComponent

import org.springframework.richclient.layout.TableLayoutBuilder; //导入方法依赖的package包/类
protected JComponent createSelectionComponent() {
    TableLayoutBuilder builder = new TableLayoutBuilder();

    JComponent filterComponent = createFilterComponent();
    builder.cell(filterComponent);
    builder.row();
    builder.relatedGapRow();
    builder.cell(super.createSelectionComponent());

    return builder.getPanel();
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:12,代码来源:FilterListSelectionDialog.java

示例4: SimplePanel

import org.springframework.richclient.layout.TableLayoutBuilder; //导入方法依赖的package包/类
public SimplePanel() {
    TableLayoutBuilder builder = new TableLayoutBuilder(this);

    stringField = new JTextField(10);
    stringField.setName("stringProperty");

    comboBox = new JComboBox(new String[] { "item 0", "item 1", "item 2" });
    comboBox.setName("comboProperty");

    checkBox = new JCheckBox("checkbox");
    checkBox.setName("booleanProperty");

    builder.cell(new JLabel("string"));
    builder.gapCol();
    builder.cell(stringField);
    builder.relatedGapRow();
    builder.cell(new JLabel("combo"));
    builder.gapCol();
    builder.cell(comboBox);
    builder.relatedGapRow();
    builder.cell(checkBox);
    builder.relatedGapRow();
    
    JPanel nestedPanel =new JPanel();
    nestedField = new JTextField("test");
    nestedField.setName("nestedField");
    nestedPanel.add(nestedField);
    
    builder.cell(nestedPanel);

    builder.getPanel();
}
 
开发者ID:shevek,项目名称:spring-rich-client,代码行数:33,代码来源:SimplePanel.java


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