Package org.springframework.richclient.layout

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


        JButton invalidPerson = new JButton(new AbstractAction("Validate a person with a null name and age 1981"){
            public void actionPerformed(ActionEvent e) {
                validateInvalidPerson();
            }
        });
        layoutBuilder.cell(invalidPerson);
        layoutBuilder.row();
        layoutBuilder.relatedGapRow();

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


        JButton nullPointer = new JButton(new AbstractAction("Cause a NumberFormatException"){
            public void actionPerformed(ActionEvent e) {
                causeNumberFormatException();
            }
        });
        layoutBuilder.cell(nullPointer);
        layoutBuilder.row();
        layoutBuilder.relatedGapRow();

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

        JButton stackOverflow = new JButton(new AbstractAction("Cause a stack overflow error"){
            public void actionPerformed(ActionEvent e) {
                causeStackOverflow();
            }
        });
        layoutBuilder.cell(stackOverflow);
        layoutBuilder.row();

        JPanel panel = layoutBuilder.getPanel();
        panel.setBorder(GuiStandardUtils.createEvenlySpacedBorder(UIConstants.ONE_SPACE));
        return panel;
View Full Code Here

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

            inputField.addFocusListener(selectAllBugFixer);
        }

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

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

        layoutBuilder.relatedGapRow();
View Full Code Here

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

        }
        TableLayoutBuilder layoutBuilder = getLayoutBuilder();
        if (!layoutBuilder.hasGapToLeft()) {
            layoutBuilder.gapCol();
        }
        layoutBuilder.cell(label, labelAttributes);
        layoutBuilder.labelGapCol();
        layoutBuilder.cell(wrappedComponent, attributes);
        return new JComponent[] { label, component, wrappedComponent };
    }
}
View Full Code Here

        if (!layoutBuilder.hasGapToLeft()) {
            layoutBuilder.gapCol();
        }
        layoutBuilder.cell(label, labelAttributes);
        layoutBuilder.labelGapCol();
        layoutBuilder.cell(wrappedComponent, attributes);
        return new JComponent[] { label, component, wrappedComponent };
    }
}
View Full Code Here

    TableLayoutBuilder builder = new TableLayoutBuilder( filterPanel );

    for ( String filteredProperty : filteredProperties ) {
      //      builder.cell( getComponentFactory().createLabel( objectId + '.' + filteredProperty + KEY_SUFFIX_FILTER_LABEL ) );
      builder.cell( getComponentFactory().createLabel( createMessageKeys( filteredProperty ) ) );
      builder.labelGapCol();

      JTextField filterField = getComponentFactory().createTextField();
      //      filterField.setToolTipText( getMessage(filteredProperty, KEY_LABEL, KEY_FILTER) );
View Full Code Here

      builder.labelGapCol();

      JTextField filterField = getComponentFactory().createTextField();
      //      filterField.setToolTipText( getMessage(filteredProperty, KEY_LABEL, KEY_FILTER) );

      builder.cell( filterField );
      builder.gapCol();
      filterFields.put( filteredProperty, filterField );
    }

    builder.getPanel();
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.