Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.PanelBuilder


   *
   * @return panel
   */
  public JPanel buildPanelDates() {
    FormLayout layout = new FormLayout("p,3dlu,p", "p,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Fra dato:", cc.xy(1, 1));
    builder.add(dateChooserFrom, cc.xy(3, 1));
    builder.addLabel("Til dato:", cc.xy(1, 3));
    builder.add(dateChooserTo, cc.xy(3, 3));

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


   * @return panel
   */
  public JPanel buildPanelWeeks() {
    FormLayout layout = new FormLayout("p,3dlu,30dlu,3dlu,p,3dlu,p",
        "p,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Fra �r:", cc.xy(1, 1));
    builder.add(yearChooserFrom, cc.xy(3, 1));
    builder.addLabel("Fra uke:", cc.xy(5, 1));
    builder.add(comboBoxWeeksFrom, cc.xy(7, 1));

    builder.addLabel("Til �r:", cc.xy(1, 3));
    builder.add(yearChooserTo, cc.xy(3, 3));
    builder.addLabel("Til uke:", cc.xy(5, 3));
    builder.add(comboBoxWeeksTo, cc.xy(7, 3));

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

    FormLayout layout = new FormLayout(
        "10dlu,p,3dlu,60dlu,3dlu,100dlu,3dlu,p,3dlu,130dlu,10dlu",
        "10dlu,p,3dlu,p,3dlu,50dlu,3dlu,p,3dlu,100dlu:grow,5dlu,p:grow");
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();
    builder.add(radioButtonInvoiceDate, cc.xy(2, 2));
    builder.add(radioButtonOrderDate, cc.xy(4, 2));
    builder.add(radioButtonTransportWeek, cc.xy(2, 4));
    builder.add(panelDates, cc.xyw(2, 6, 3));
    builder.add(panelWeeks, cc.xyw(2, 6, 3));

    builder.add(radioButtonAnd, cc.xy(2, 8));
    builder.add(radioButtonOr, cc.xy(4, 8));

    builder.addLabel("Artikler:", cc.xy(6, 2));
    builder.add(new JScrollPane(treeTableArticles), cc.xywh(6, 4, 1, 7));
    builder.add(buildButtonPanel(), cc.xywh(8, 4, 1, 4));
    builder.addLabel("Utvalg:", cc.xy(10, 2));
    builder.add(new JScrollPane(treeTableChosen), cc.xywh(10, 4, 1, 7));
    builder.add(ButtonBarFactory.buildCenteredBar(buttonSearch,
        buttonClear, buttonCancel), cc.xyw(2, 12, 9));
    return builder.getPanel();
  }
View Full Code Here

    public final JComponent buildPanel(final WindowInterface window) {
        window.setName("UpdateOrderLineView");
        initComponents(window);
        FormLayout layout = new FormLayout("10dlu,310dlu:grow,10dlu",
                "10dlu,p,3dlu,min(400dlu;p),3dlu,p,3dlu");
        PanelBuilder builder = new PanelBuilder(layout);
        CellConstraints cc = new CellConstraints();
        builder.add(labelHeading, cc.xy(2, 2));
        builder.add(new JScrollPane(buildAttributePanel(window)), cc.xy(2, 4));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonOk), cc.xyw(2, 6, 2));
        //return builder.getPanel();
        return new IconFeedbackPanel(validationResultModel, builder.getPanel());
    }
View Full Code Here

        if (buttonsBelow) {
            layout = new FormLayout("190dlu", "top:110dlu:grow,3dlu,p");
        } else {
            layout = new FormLayout("185dlu,3dlu,p", "top:110dlu:grow");
        }
        PanelBuilder builder = new PanelBuilder(layout);
        CellConstraints cc = new CellConstraints();
        builder.add(new JScrollPane(treeTableOrderLines), cc.xy(1, 1));
        if (buttonsBelow) {
            builder.add(ButtonBarFactory.buildCenteredBar(buttonAddArticle,
                    buttonEditArticle, buttonRemoveArticle), cc.xy(1, 3));
        } else {
            builder.add(buildArticleButtons(), cc.xy(3, 1));
        }
        return builder.getPanel();
    }
View Full Code Here

    window.setName(viewHandler.getWindowTitle());
    initComponents(window);
    FormLayout layout = new FormLayout(
        "10dlu,p,3dlu,30dlu,3dlu,p,3dlu,40dlu,3dlu,60dlu,3dlu,p,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,5dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Rapporttype:", cc.xyw(2, 2, 3));
    builder.add(comboBoxReportType, cc.xyw(6, 2, 6));
    builder.addLabel("Produktomr�de:", cc.xyw(2, 4, 5));
    builder.add(comboBoxProductArea, cc.xyw(8, 4, 4));
    builder.addLabel("�r:", cc.xy(2, 6));
    builder.add(yearChooser, cc.xyw(4, 6, 1));
    builder.addLabel("Uke:", cc.xy(6, 6));
    builder.add(comboBoxWeek, cc.xy(8, 6));

    // builder.add(radioButtonRow, cc.xy(11, 4));
    builder.add(ButtonBarFactory.buildCenteredBar(buttonShowReport,
        buttonCancel), cc.xyw(2, 8, 11));
    return builder.getPanel();
  }
View Full Code Here

            final String tableWidth, final boolean showEditButton) {
        initComponents(window);
        initEventHandling(rightMouseClickHandler, window);
        FormLayout layout = new FormLayout(tableWidth + "dlu:grow",
                "p,3dlu,fill:" + tableHeight + ":grow,3dlu,p");
        PanelBuilder builder = new PanelBuilder(layout);
        CellConstraints cc = new CellConstraints();
        if (labelString != null) {
            builder.addLabel(labelString, cc.xy(1, 1));
        }
        builder.add(new JScrollPane(tableOrders), cc.xy(1, 3));
        if (showEditButton) {
            builder.add(ButtonBarFactory.buildCenteredBar(buttonEditOrder), cc
                    .xy(1, 5));
        }

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

    viewHandler=handler;
  }
  public JComponent buildPanel(WindowInterface window) {
        initComponents(window);
        FormLayout layout = new FormLayout("10dlu,p,3dlu,p,10dlu", "10dlu,p,3dlu,p,3dlu,p,5dlu,p,3dlu");
        PanelBuilder builder = new PanelBuilder(layout);
        CellConstraints cc = new CellConstraints();
       
        builder.addLabel("Tegner:",cc.xy(2, 2));
        builder.add(comboBoxUsers,cc.xy(4, 2));
        builder.add(radioButtonStart,cc.xy(2, 4));
        builder.add(radioButtonFinish,cc.xy(4, 4));
        builder.addLabel("Takstolkostnad:",cc.xy(2, 6));
        builder.add(textfieldCost,cc.xy(4, 6));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonOk,buttonCancel),cc.xyw(2, 8,3));
       
        return builder.getPanel();
  }
View Full Code Here

   */
  @Override
  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout("10dlu,p,3dlu,170dlu,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,fill:200dlu:grow,3dlu,p,3dlu");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Beskrivelse:", cc.xy(2, 2));
    builder.add(textFieldDescription, cc.xy(4, 2));
    builder.addLabel("Oppstartsvindu:", cc.xy(2, 4));
    builder.add(comboBoxStartupWindow, cc.xy(4, 4));
    builder.add(checkBoxAdmin, cc.xy(2, 6));
    builder.addLabel("Akksess:", cc.xy(2, 8));
    builder.add(new JScrollPane(tableWindows), cc.xyw(2, 10, 3));

    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 12, 3));

    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

  @Override
  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout(
        "10dlu,p,center:3dlu,center:120dlu,10dlu",
        "10dlu,p,3dlu,p,3dlu,fill:50dlu:grow,3dlu,p,3dlu,fill:50dlu:grow,3dlu,p,3dlu,fill:100dlu:grow,3dlu,p,5dlu,p,3dlu");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.add(buildDetailsPanel(), cc.xyw(2, 2, 3));
    builder.addLabel("Beskrivelse:", cc.xy(2, 4));
    builder.add(new JScrollPane(textAreaDescription), cc.xywh(2, 6, 3, 1));
    builder.addLabel("Forventet resultat:", cc.xy(2, 8));
    builder.add(new JScrollPane(textAreaExpectedOutcome),
        cc.xywh(2, 10, 3, 1));
    builder.addLabel("Historikk:", cc.xy(2, 12));
    builder.add(new JScrollPane(listComments), cc.xywh(2, 14, 3, 1));
    builder.add(ButtonBarFactory.buildLeftAlignedBar(buttonAddComment),
        cc.xyw(2, 16, 3));
    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 18, 3));
    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.builder.PanelBuilder

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.