Examples of BBFormBuilder


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

     *
     * @return component.
     */
    private JComponent buildGuideSelection()
    {
        BBFormBuilder formBuilder =
            new BBFormBuilder("40dlu, 2dlu, 95dlu, 2dlu, 72px, 2dlu, max(20dlu;p)");

        formBuilder.append(Strings.message("cleanup.wizard.select.guide"), 1);
        formBuilder.append(cbGuides, 1, CellConstraints.FILL, CellConstraints.CENTER);

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

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

     *
     * @return component.
     */
    private JComponent buildResultsTable()
    {
        BBFormBuilder formBuilder = new BBFormBuilder("190dlu");

        formBuilder.appendRow("16dlu");
        formBuilder.appendSeparator("Preview:");
        formBuilder.appendRow("120dlu");
        formBuilder.append(createScrollPane(createFeedsTable(modelFeeds)), 1,
            CellConstraints.FILL, CellConstraints.FILL);

        formBuilder.append(lblInfo, 1);

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

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

            // Initialize types
            cbType.addItem(TYPE_FRIENDS);
            cbType.addItem(TYPE_QUERY);
            cbType.addItem(TYPE_LIST);

            BBFormBuilder b = new BBFormBuilder(labelColWidth + "dlu, 4dlu, p:grow");
            b.append("Query:", tfQuery);
            pnlQuery = b.getPanel();

            b = new BBFormBuilder(labelColWidth + "dlu, 4dlu, 50dlu, 4dlu, p, 4dlu, p:grow");
            b.append("User:", tfListUsername);
            b.append("List:", tfListName);
            pnlList = b.getPanel();

            b = new BBFormBuilder((labelColWidth + "dlu, 4dlu, p, p:grow"));
            b.append("", lblAuthWarning);
            pnlAuthWarning = b.getPanel();

            b = new BBFormBuilder(labelColWidth + "dlu, 4dlu, p, p:grow", this);
            b.append("Type:", cbType);
            b.append(pnlHolder, 4);

            cbType.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
View Full Code Here

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

         * @param paramLabel the label of the field.
         * @param labelColWidth the width in 'dlu' of the label column.
         */
        private QueryEditor(String paramLabel, int labelColWidth)
        {
            BBFormBuilder b = new BBFormBuilder(labelColWidth + "dlu, 4dlu, p:grow", this);
            b.append(paramLabel + ":", tfParameter);
        }
View Full Code Here

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

         *
         * @param labelColWidth the width in 'dlu' of the label column.
         */
        private QueryEditor(int labelColWidth)
        {
            BBFormBuilder b = new BBFormBuilder(labelColWidth + "dlu, 4dlu, p:grow", this);
            b.append("Tags:", tfTags);
            b.append("User:", tfUser);
        }
View Full Code Here

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

     *
     * @return body.
     */
    private JComponent buildBody()
    {
        BBFormBuilder builder = new BBFormBuilder("pref:grow, 2dlu, 100dlu");

        builder.append(Strings.message("merge.guides.guide.to.merge.with"), guideBox);

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

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

        setBackground(Color.WHITE);
        table.setBackground(Color.WHITE);

        // Build the layout
        BBFormBuilder builder = new BBFormBuilder("p:grow", this);
        builder.setDefaultDialogBorder();
        builder.append(UifUtilities.boldFont(new JLabel(getReportName())), 1,
            CellConstraints.CENTER, CellConstraints.DEFAULT);
        builder.appendRelatedComponentsGapRow(2);
        builder.appendRow("50dlu:grow");
        builder.append(sp, 1, CellConstraints.FILL, CellConstraints.FILL);
        builder.append(new SeeAllLinkLabel(Strings.message("report.see.all")));
    }
View Full Code Here

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

        {
            rbUPCustom.setSelected(true);
            tfUPValue.setText(Long.toString(period / Constants.MILLIS_IN_MINUTE));
        }

        BBFormBuilder builder = new BBFormBuilder("p, 2dlu, 30dlu", this);
        builder.append(rbUPGlobal, 3);
        builder.append(rbUPManual, 3);
        builder.append(rbUPCustom, tfUPValue);
    }
View Full Code Here

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

     *
     * @return table.
     */
    protected JPanel createDataTable(JPanel table, int max)
    {
        BBFormBuilder builder = new BBFormBuilder("16px, 4dlu, 50dlu:grow, 2dlu, max(p;50dlu), 2dlu, max(p;50dlu)", table);
        builder.setDefaultDialogBorder();

        // Output header
        builder.append(UifUtilities.boldFont(new JLabel(headerEntityTitle)), 3);
        builder.append(UifUtilities.boldFont(new JLabel(Strings.message("report.since.reset"))), 1,
            CellConstraints.CENTER, CellConstraints.DEFAULT);
        builder.append(UifUtilities.boldFont(new JLabel(Strings.message("report.all.time"))), 1,
            CellConstraints.CENTER, CellConstraints.DEFAULT);

        // Output data
        int i = 0;
        for (VisitStats stat : visitStats)
        {
            if (i++ == max) break;

            builder.append(new JLabel(itemIcon));
            builder.append(createLabel(stat.getObjectId(), stat.getObjectTitle()));
            builder.append(new JLabel(Long.toString(stat.getCountReset())), 1,
                CellConstraints.CENTER, CellConstraints.DEFAULT);
            builder.append(new JLabel(Long.toString(stat.getCountTotal())), 1,
                CellConstraints.CENTER, CellConstraints.DEFAULT);
        }

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

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

     *
     * @return body.
     */
    private Component buildBody()
    {
        BBFormBuilder builder = new BBFormBuilder("pref");
        builder.setDefaultDialogBorder();

        builder.append(new JLabel(Strings.message("new.publication.wording")));
        builder.appendUnrelatedComponentsGapRow(2);
        builder.append(new JLabel(Strings.message("new.publication.query")));
        builder.appendUnrelatedComponentsGapRow(2);
        builder.append(chDoNotShowAgain);

        return 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.