Package org.springframework.richclient.layout

Examples of org.springframework.richclient.layout.TableLayoutBuilder.relatedGapRow()


    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);
View Full Code Here


        TableLayoutBuilder builder = new TableLayoutBuilder();

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

        return builder.getPanel();
    }
View Full Code Here

        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);
View Full Code Here

        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");
View Full Code Here

        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);
View Full Code Here

                loginWithBadCredentials();
            }
        });
        layoutBuilder.cell(badCredentials);
        layoutBuilder.row();
        layoutBuilder.relatedGapRow();

        JButton accessDenied = new JButton(new AbstractAction("Do something you don't have access to"){
            public void actionPerformed(ActionEvent e) {
                denyAccess();
            }
View Full Code Here

                denyAccess();
            }
        });
        layoutBuilder.cell(accessDenied);
        layoutBuilder.row();
        layoutBuilder.relatedGapRow();

        JButton invalidPerson = new JButton(new AbstractAction("Validate a person with a null name and age 1981"){
            public void actionPerformed(ActionEvent e) {
                validateInvalidPerson();
            }
View Full Code Here

                validateInvalidPerson();
            }
        });
        layoutBuilder.cell(invalidPerson);
        layoutBuilder.row();
        layoutBuilder.relatedGapRow();

        JButton nullPointer = new JButton(new AbstractAction("Cause a NumberFormatException"){
            public void actionPerformed(ActionEvent e) {
                causeNumberFormatException();
            }
View Full Code Here

                causeNumberFormatException();
            }
        });
        layoutBuilder.cell(nullPointer);
        layoutBuilder.row();
        layoutBuilder.relatedGapRow();

        JButton stackOverflow = new JButton(new AbstractAction("Cause a stack overflow error"){
            public void actionPerformed(ActionEvent e) {
                causeStackOverflow();
            }
View Full Code Here

        layoutBuilder.cell(inputField);

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

        layoutBuilder.relatedGapRow();
        layoutBuilder.separator("");
        return layoutBuilder.getPanel();
    }

    protected JComponent createInputLabel() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.