Package com.salas.bb.utils.uif

Examples of com.salas.bb.utils.uif.BBFormBuilder


     *
     * @return main panel.
     */
    private JPanel buildMainPanel()
    {
        BBFormBuilder builder;

        if (isExistingAccountMode)
        {
            builder = new BBFormBuilder("15dlu, pref");

            builder.nextColumn();
            builder.append(chSynchronize);
        } else
        {
            builder = new BBFormBuilder("15dlu, pref, 2dlu, pref:grow, 2dlu, pref, 2dlu, pref:grow");

            builder.append(lbReadMore, 8);
            builder.appendUnrelatedComponentsGapRow(2);

            builder.append(ComponentsFactory.createWrappedMultilineLabel(
                "If you already have a BlogBridge Service account, " +
                "please enter your BlogBridge Service account's email and password here:"), 8);

            builder.setLeadingColumnOffset(1);
            builder.appendUnrelatedComponentsGapRow(2);
            JLabel lbUseEmail = builder.append(Strings.message("installer.service.email"), 1, tfUseEmail, 1);
            builder.nextLine();
            JLabel lbUsePassword = builder.append(Strings.message("installer.service.password"), 1, tfUsePassword, 1);

            builder.setLeadingColumnOffset(0);

            builder.appendUnrelatedComponentsGapRow(2);
            builder.append(buildSignupLine(), 8);
        }

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


        JLabel lbFeed = new JLabel(selectedFeed.getTitle());
        JLabel lbCreator = new JLabel(article.getAuthor());
        JLabel lbDate = new JLabel(DateUtils.dateToString(article.getPublicationDate()));
        JLabel lbSubject = new JLabel(article.getSubject());

        BBFormBuilder builder = new BBFormBuilder("pref, 4dlu, 200dlu:grow");
        builder.append(Strings.message("article.properties.guide"), lbGuide);
        builder.append(Strings.message("article.properties.feed"), lbFeed);
        builder.append(Strings.message("article.properties.title"), tfTitle);
        builder.append(Strings.message("article.properties.link"), tfLink);
        builder.append(Strings.message("article.properties.creator"), lbCreator);
        builder.append(Strings.message("article.properties.date"), lbDate);
        builder.append(Strings.message("article.properties.subject"), lbSubject);

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

     */
    private JComponent buildBody()
    {
        initComponents();

        BBFormBuilder builder = new BBFormBuilder("pref:grow, 2dlu, 50dlu");

        builder.append(rbDeleteAll, 3);
        builder.append(rbReassign, guideBox);

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

        return builder.getPanel();
    }

    private Component buildSignupLine()
    {
        BBFormBuilder builder = new BBFormBuilder("p, 2dlu, p");
        builder.append(new JLabel(
            Strings.message("installer.service.signup.wording")),
            lnkSignup);

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

     *
     * @return tab.
     */
    private JComponent buildGeneralTab()
    {
        BBFormBuilder builder = new BBFormBuilder("p, 4dlu, 30dlu, 7dlu, p:grow");
        builder.setDefaultDialogBorder();

        builder.append(Strings.message("guide.dialog.title"), tfTitle, 3);
        builder.append(Strings.message("edit.guide.general.position"), tfPosition, chAutoFeedsDiscovery);
        builder.appendRelatedComponentsGapRow(2);
        builder.appendRow("70dlu:grow");
        builder.append(Strings.message("edit.guide.general.icon"), 1,
            CellConstraints.FILL, CellConstraints.TOP).setLabelFor(iconsList);
        builder.append(new JScrollPane(iconsList), 3, CellConstraints.FILL, CellConstraints.FILL);

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

     */
    protected Component buildMainPanel()
    {
        Component controlPanel = buildControlPanel();

        BBFormBuilder builder = new BBFormBuilder("max(p;150dlu):grow, 0");
        builder.setDefaultDialogBorder();

        builder.append(tfTitle, 2);
        builder.appendUnrelatedComponentsGapRow(2);

        builder.append(controlPanel, 2);
        builder.appendRelatedComponentsGapRow(2);
        builder.appendRow("50dlu:grow");
        builder.append(new JScrollPane(tfText), 2, CellConstraints.FILL, CellConstraints.FILL);

        addCustomPanels(builder);

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

            "p, {0}px, p, {0}px, p, {1}px, " +
            "p, {0}px, p, {0}px, p, {0}px, p, {1}px, " +
            "p, {1}px:grow, " +
            "p", spcInGroup, spcBetweenGroups);

        BBFormBuilder builder = new BBFormBuilder(cols);

        registerActionShortcut(undoAction, KeyEvent.VK_Z, Event.CTRL_MASK);
        registerActionShortcut(redoAction, KeyEvent.VK_Z, Event.CTRL_MASK | Event.SHIFT_MASK);

        builder.append(createButton(alignLeftAction, iconAlignLeft, -1, -1));
        builder.append(createButton(alignCenterAction, iconAlignCenter, -1, -1));
        builder.append(createButton(alignRightAction, iconAlignRight, -1, -1));
        builder.append(createButton(boldAction, iconStyleBold, KeyEvent.VK_B, Event.CTRL_MASK));
        builder.append(createButton(italicAction, iconStyleItalic, KeyEvent.VK_I, Event.CTRL_MASK));
        builder.append(createButton(underlineAction, iconStyleUnderline, KeyEvent.VK_U, Event.CTRL_MASK));
        builder.append(createButton(strikethroughAction, iconStyleStrikethrough, KeyEvent.VK_S, Event.CTRL_MASK));
        builder.append(cbInsertLink);

        addCustomControls(builder);

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

    private void initGUI()
    {
        initComponents();

        String columnsDefinition = "80dlu, 2dlu, 75dlu, 2dlu, 75dlu:grow";
        BBFormBuilder builder = new BBFormBuilder(columnsDefinition, this);

        builder.appendRow("pref:grow");
        builder.append(cbProperty, 1, CellConstraints.FILL, CellConstraints.FILL);
        builder.append(cbOperation, 1, CellConstraints.FILL, CellConstraints.FILL);
        builder.append(valueEditor, 1, CellConstraints.FILL, CellConstraints.FILL);
    }
View Full Code Here

     *
     * @param builder builder.
     */
    protected void addCustomControls(BBFormBuilder builder)
    {
        BBFormBuilder b = new BBFormBuilder("p, 2dlu, p, 4dlu, p");
        b.append(lbCategories, cbCategories);
        b.append(chDraft);

        builder.append(b.getPanel());
    }
View Full Code Here

         *
         * @return main panel.
         */
        private Component buildMainPanel()
        {
            BBFormBuilder builder = new BBFormBuilder("p, 2dlu, 150dlu");
            builder.setDefaultDialogBorder();

            builder.append("&Link:", tfLink);
            builder.append("&Text:", tfText);

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

TOP

Related Classes of com.salas.bb.utils.uif.BBFormBuilder

Copyright © 2018 www.massapicom. 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.