Package org.springframework.richclient.layout

Examples of org.springframework.richclient.layout.GridBagLayoutBuilder.appendLabel()


        ComponentFactory cf = getComponentFactory();
        JLabel label = cf.createLabelFor(getMessage("annotationToolWindow.annotations.comboBox.label"), this.jcbAnnotations);
        GridBagLayoutBuilder builder = new GridBagLayoutBuilder();
        builder.setAutoSpanLastComponent(false);
        builder.setDefaultInsets(new Insets(5, 5, 5, 5));
        builder.appendLabel(label).append(this.jcbAnnotations, 1, 1, false, false).append(Box.createHorizontalStrut(10), 1, 1, true, false).append(jcbEnableHtml, 1, 1, false, false, new Insets(5, 5, 5, 5)).nextLine();
        builder.append(cf.createScrollPane(jetDocumentation, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED), 4, 1, true, true).nextLine();

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


    @Override
    protected JComponent createTitledDialogContentPane() {
        ComponentFactory cf = getComponentFactory();
        GridBagLayoutBuilder builder = new GridBagLayoutBuilder();

        builder.appendLabel(new JLabel(getMessage("runMultiple.analyzerSelectLabel")));
        builder.nextLine();

        for (Analyzer analyzer : getAvailableAnalyzers()) {
            JCheckBox jcb = cf.createCheckBox(analyzer.getLabelProvider().getCaption());
            jcb.addActionListener(new AnalyzerCheckBoxListener(this.selectedAnalyzers, analyzer));
View Full Code Here

        builder.setDefaultInsets(new Insets(2, 5, 2, 5));

        final JToolBar filterToolbar = FilterToolbarFactory.createFilterToolBar(new SchemaTypeConstraint[] { unusedTypesConstraint, usedTypesConstraint});
        builder.append(filterToolbar, 1, 1, true, false).nextLine();

        builder.appendLabel(cf.createLabel("typeUsageView.label.unusedTypes", new ValueModel[] { numUnusedTypes})).nextLine();

        builder.append(cf.createScrollPane(jlUnusedTypes, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), 1, 1, 1, 1).nextLine();

        builder.appendSeparator();
View Full Code Here

        builder.append(cf.createScrollPane(jlUnusedTypes, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), 1, 1, 1, 1).nextLine();

        builder.appendSeparator();

        builder.appendLabel(cf.createLabel("typeUsageView.label.usedTypes", new ValueModel[] { numUsedTypes})).nextLine();

        builder.append(cf.createScrollPane(jtUsedTypes, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED), 1, 1, 1, 2);

        builder.setAutoSpanLastComponent(true);
        JPanel jpTypeUsage = 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.