Package org.springframework.richclient.layout

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


        JPanel panel = new JPanel();
        panel.setName("panel");
        panel.setBackground(getBackgroundColor());
        TableLayoutBuilder table = new TableLayoutBuilder(panel);
        table.row(FormFactory.LINE_GAP_ROWSPEC);
        table.gapCol();
        table.cell(titleLabel);
        table.gapCol();
        table.cell(iconLabel, "rowspan=2 colspec=pref");
        table.row(FormFactory.NARROW_LINE_GAP_ROWSPEC);
View Full Code Here


        table.row(FormFactory.LINE_GAP_ROWSPEC);
        table.gapCol();
        table.cell(titleLabel);
        table.gapCol();
        table.cell(iconLabel, "rowspan=2 colspec=pref");
        table.row(FormFactory.NARROW_LINE_GAP_ROWSPEC);
        table.cell(messagePane.getControl());
        table.row(FormFactory.NARROW_LINE_GAP_ROWSPEC);
        return table.getPanel();
    }
View Full Code Here

        table.cell(titleLabel);
        table.gapCol();
        table.cell(iconLabel, "rowspan=2 colspec=pref");
        table.row(FormFactory.NARROW_LINE_GAP_ROWSPEC);
        table.cell(messagePane.getControl());
        table.row(FormFactory.NARROW_LINE_GAP_ROWSPEC);
        return table.getPanel();
    }

    private Icon getIcon() {
        if (image != null)
View Full Code Here

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

    protected JComponent createSelectionComponent() {
        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

     */
    protected JComponent createControl() {
        TableLayoutBuilder layoutBuilder = new TableLayoutBuilder();

        layoutBuilder.cell(new JLabel("This page demonstrates the exception handling."));
        layoutBuilder.row();
        layoutBuilder.cell(new JLabel("Push the buttons and see which exception handler gets choosen."));
        layoutBuilder.row();
        layoutBuilder.cell(new JLabel("That defines the log level and the dialog shown."));
        layoutBuilder.row();
        layoutBuilder.unrelatedGapRow();
View Full Code Here

        TableLayoutBuilder layoutBuilder = new TableLayoutBuilder();

        layoutBuilder.cell(new JLabel("This page demonstrates the exception handling."));
        layoutBuilder.row();
        layoutBuilder.cell(new JLabel("Push the buttons and see which exception handler gets choosen."));
        layoutBuilder.row();
        layoutBuilder.cell(new JLabel("That defines the log level and the dialog shown."));
        layoutBuilder.row();
        layoutBuilder.unrelatedGapRow();

        JButton badCredentials = new JButton(new AbstractAction("Login with bad credentials"){
View Full Code Here

        layoutBuilder.cell(new JLabel("This page demonstrates the exception handling."));
        layoutBuilder.row();
        layoutBuilder.cell(new JLabel("Push the buttons and see which exception handler gets choosen."));
        layoutBuilder.row();
        layoutBuilder.cell(new JLabel("That defines the log level and the dialog shown."));
        layoutBuilder.row();
        layoutBuilder.unrelatedGapRow();

        JButton badCredentials = new JButton(new AbstractAction("Login with bad credentials"){
            public void actionPerformed(ActionEvent e) {
                loginWithBadCredentials();
View Full Code Here

            public void actionPerformed(ActionEvent e) {
                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

            public void actionPerformed(ActionEvent e) {
                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

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.