Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.PanelBuilder


   * @return panel
   */
  private Component buildPostShipmentPanel(WindowInterface window) {
    FormLayout layout = new FormLayout("240dlu:grow",
        "p,3dlu,fill:120dlu:grow,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Ettersendinger:", cc.xy(1, 1));
    builder.add(new JScrollPane(tablePostShipment), cc.xy(1, 3));
    builder.add(ButtonBarFactory.buildCenteredBar(buttonAddPostShipment,
        buttonDeletePostShipment), cc.xy(1, 5));

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


  @Override
  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout("10dlu,p,3dlu,70dlu,3dlu,p,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,3dlu,50dlu,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(layout,new FormDebugPanel());
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Navn:", cc.xy(2, 2));
    builder.add(textFieldProductionUnitName, cc.xy(4, 2));
    builder.addLabel("Artikkel:", cc.xy(2, 4));
    builder.add(comboBoxArticleType, cc.xy(4, 4));
    builder.addLabel("Produktomr�der:", cc.xy(2, 6));
    builder.add(new JScrollPane(listProductAreaGroup), cc.xywh(4, 6, 1, 3));
    builder.add(buildButtonPanel(), cc.xywh(6, 6, 1, 3));
    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 10, 5));

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

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

    builder.addLabel("Kollier:", cc.xy(2, 2));
    builder.add(new JScrollPane(listCollies), cc.xy(2, 4));
    builder.add(buildButtonPanel(), cc.xy(4, 4));
    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 6, 3));

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

                + viewHandler.getTableWidth() + ":grow,3dlu,p,15dlu",
                "10dlu,p,3dlu,10dlu,p,3dlu,p,3dlu,p,3dlu,p,"
                        + viewHandler.getTableHeight()
                        + ":grow,p,fill:30dlu,p,5dlu");
        // PanelBuilder builder = new PanelBuilder(layout,new FormDebugPanel());
        PanelBuilder builder = new PanelBuilder(layout);
        JScrollPane scrollPaneTable = new JScrollPane(table);
        CellConstraints cc = new CellConstraints();
        scrollPaneTable.setBorder(Borders.EMPTY_BORDER);
        builder.add(labelHeading, cc.xy(2, 2));
        builder.addLabel("Produktomr�de:", cc.xy(3, 2));
        builder.add(comboBoxProductAreaGroup, cc.xy(5, 2));
        builder.add(new JScrollPane(labelFilterInfo), cc.xyw(2, 14, 5));
        builder.add(scrollPaneTable, cc.xywh(2, 4, 5, 9));
        builder.add(labelNumberOf, cc.xy(2, 13));
        if (!selectView) {
            builder.add(buildButtonPanel(), cc.xywh(8, 5, 1, 10));

            builder.add(ButtonBarFactory.buildCenteredBar(buttonExcel,
                    buttonCancel), cc.xyw(2, 15, 7));
        } else {
            builder.add(ButtonBarFactory.buildCenteredBar(buttonCancel), cc
                    .xyw(2, 15, 7));
        }

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

  @Override
  protected JComponent buildEditPanel(WindowInterface window) {

    FormLayout layout = new FormLayout("10dlu,p,3dlu,100dlu,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,5dlu");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Navn:", cc.xy(2, 2));
    builder.add(textFieldSupplierTypeName, cc.xy(4, 2));
    builder.addLabel("Beskrivelse:", cc.xy(2, 4));
    builder.add(textFieldDescription, cc.xy(4, 4));

    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 6, 3));
    return new IconFeedbackPanel(validationResultModel, builder.getPanel());

  }
View Full Code Here

     * @param window
     * @return panel
     */
    private Component buildDeviationPanel(final WindowInterface window) {
        FormLayout layout = new FormLayout("130dlu:grow", "p,3dlu,50dlu:grow");
        PanelBuilder builder = new PanelBuilder(layout);
        // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();

        builder.addLabel("Avvik:", cc.xy(1, 1));
        builder.add(new JScrollPane(tableDeviation), cc.xy(1, 3));

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

     */
    private JPanel buildAssembliesWeekPanel(final WindowInterface window,
            final boolean starting) {
        FormLayout layout = new FormLayout("348dlu:grow",
                "p,3dlu,p,2dlu,fill:300dlu:grow");
        PanelBuilder builder = new PanelBuilder(layout);
//         PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
        builder.add(buildColorInfoPanel(),cc.xy(1, 1));
        JScrollPane scrollPaneWeek = new JScrollPane(buildWeekPanel());
        scrollPaneWeek
                .setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

        builder.add(scrollPaneWeek, cc.xy(1, 3));

        JScrollPane scrollPaneAssembly = new JScrollPane(
                buildAssemblyWeekPanel(window, starting));
        scrollPaneAssembly.getHorizontalScrollBar().addAdjustmentListener(
                viewHandler.getHorizontalAdjustmentListener(scrollPaneWeek
                        .getHorizontalScrollBar()));
        scrollPaneAssembly.getVerticalScrollBar().addAdjustmentListener(
                viewHandler
                        .getVerticalAdjustmentListener(teamVerticalScrollBar));

        builder.add(scrollPaneAssembly, cc.xy(1, 5));
        return builder.getPanel();
    }
View Full Code Here

    }

    private Component buildColorInfoPanel() {
      FormLayout layout = new FormLayout("52dlu,3dlu,52dlu,3dlu,52dlu",
                "p");
        PanelBuilder builder = new PanelBuilder(layout);
//         PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
        builder.add(textFieldGreen,cc.xy(1, 1));
        builder.add(textFieldYellow,cc.xy(3, 1));
        builder.add(textFieldRed,cc.xy(5, 1));
        return builder.getPanel();
  }
View Full Code Here

  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout(
        "10dlu,p,3dlu,80dlu,3dlu,170dlu,3dlu,p,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,3dlu,top:100dlu:grow,3dlu,p");

    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();
    builder.addLabel("Navn:", cc.xy(2, 2));
    builder.add(textFieldName, cc.xy(4, 2));
    builder.addLabel("Beskrivelse:", cc.xy(2, 4));
    builder.add(textFieldDescription, cc.xyw(4, 4, 1));
    builder.addLabel("Skisse:", cc.xy(2, 6));
    builder.add(comboBoxSketch, cc.xyw(4, 6, 1));
    // builder.add(checkBoxVilla, cc.xyw(4, 8, 1));
    builder.addLabel("Produktomr�de:", cc.xy(2, 8));
    builder.add(comboBoxProductArea, cc.xyw(4, 8, 1));
    if (!((ConstructionTypeViewHandler) viewHandler).isMaster()) {
      builder.add(buttonCopyMaster, cc.xyw(4, 10, 1));
    }

    builder.add(checkBoxAttributes, cc.xy(6, 2));
    builder.add(buildAttributePanel(), cc.xywh(6, 4, 1, 5));
    builder.add(checkBoxArticles, cc.xy(8, 2));
    builder.add(buildArticlePanel(), cc.xywh(8, 4, 1, 5));
    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 10, 8));
    builder.appendRow(new RowSpec("5dlu"));
    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

   *
   * @return panel
   */
  private JPanel buildAttributePanel() {
    FormLayout layout = new FormLayout("100dlu,3dlu,p", "120dlu");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.add(new JScrollPane(listAttributes), cc.xy(1, 1));
    builder.add(buildAttributeButtons(), cc.xy(3, 1));
    collapsiblePaneAttribute.add(builder.getPanel(), BorderLayout.CENTER);
    return collapsiblePaneAttribute;
  }
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.