Package com.jgoodies.forms.layout

Examples of com.jgoodies.forms.layout.RowSpec


    initEventHandling();
    FormLayout layout = new FormLayout(
        "10dlu,p,p,100dlu,3dlu,p,p,20dlu,10dlu", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setLeadingColumnOffset(1);
    builder.appendRow(new RowSpec("top:10dlu"));
    builder.nextLine();
   
    String metric = article.getMetric();
    if(metric!=null){
      metric="("+metric+")";
    }else{
      metric="";
    }

    if (article != null) {
      builder.append(articleName + " - antall:"+metric, textFieldNumberOf);
      if (showOrder) {
        builder.append("Rekkef�lge:", textFieldOrder);
      }
      builder.nextLine();
    }
    if (textFields != null) {
      Set<String> labels = textFields.keySet();
      for (String label : labels) {
        builder.append(label, textFields.get(label));
        if (showOrder) {
          builder.append("Rekkef�lge:", textFieldDialogOrders
              .get(label));
        }
        builder.nextLine();
      }
      labels = checkBoxes.keySet();

      for (String label : labels) {
        builder.append(label, checkBoxes.get(label));
        if (showOrder) {
          builder.append("Rekkef�lge:", textFieldDialogOrders
              .get(label));
        }
        builder.nextLine();
      }

      labels = comboBoxes.keySet();

      for (String label : labels) {
        builder.append(label, comboBoxes.get(label));
        if (showOrder) {
          builder.append("Rekkef�lge:", textFieldDialogOrders
              .get(label));
        }
        builder.nextLine();
      }
    }

    builder.append(ButtonBarFactory.buildCenteredBar(buttonOk), 8);
    builder.appendRow(new RowSpec("top:5dlu"));

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


    if (rowCount == 0) {
      rowCount = 1;
    }
    int tableSize = rowSize;
    String rowSizeSpec = "fill:" + tableSize + "dlu:grow";
    builder.appendRow(new RowSpec(rowSizeSpec));
    builder.append(new JScrollPane(tableOrders));
    return builder.getPanel();
  }
View Full Code Here

     */
    private JComponent buildAttributePanel(final WindowInterface window) {
        FormLayout layout = new FormLayout("10dlu,p:grow,10dlu", "");
        DefaultFormBuilder builder = new DefaultFormBuilder(layout);
        builder.setLeadingColumnOffset(1);
        builder.appendRow(new RowSpec("top:10dlu"));
        builder.nextLine();

        if (components != null) {
            Set<Head> heads = components.keySet();

            for (Head head : heads) {
                builder.append(buildComponentPanel(head));
                builder.nextLine();
            }
        }

        builder.appendRow(new RowSpec("top:5dlu"));
        return builder.getPanel();
    }
View Full Code Here

        builder.setBorder(BorderFactory.createBevelBorder(1));

        Map<String, JComponent> comps;
        Set<String> attLabels;
        builder.setLeadingColumnOffset(1);
        builder.appendRow(new RowSpec("top:5dlu"));
        builder.nextLine();
        JLabel aLabel = new JLabel(head.getNameString());
        builder.append(aLabel, 8);
        builder.nextLine();
        comps = components.get(head);
        if (comps != null) {
            attLabels = comps.keySet();

            for (String attLabel : attLabels) {
                builder.append(attLabel, comps.get(attLabel));
                if (attLabel.equalsIgnoreCase("Antall")) {
                    builder.nextLine();
                }
            }
        }
        builder.appendRow(new RowSpec("top:5dlu"));
        builder.nextLine();

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

    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 14, 5));

    builder.appendRow(new RowSpec("5dlu"));
    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

        FormLayout layout = new FormLayout(columnLayout, "");
        DefaultFormBuilder builder = new DefaultFormBuilder(layout);
        YearWeek currentYearWeek = new YearWeek();
        currentYearWeek.setYear(yearWeek.getYear());

        builder.appendRow(new RowSpec("center:3dlu"));
        builder.nextRow();

        int weekCounter = 0;
        List<Supplier> suppliers = viewHandler.getSuppliers(yearWeek,productAreaGroup);
        for (Supplier supplier : suppliers) {
            weekCounter = 0;
            for (int i = weekStart; i <= weekStop; i++) {
                weekCounter++;
                currentYearWeek.setWeek(i);

                builder.appendRow(new RowSpec("fill:p"));
                builder.append(viewHandler.getAssemblyTeamOrderView(supplier,
                        currentYearWeek, weekCounter, starting,productAreaGroup).buildPanel(
                        window, supplierRowSizes.get(supplier)));
            }
        }
View Full Code Here

            int rowSize = (25 * maxOrderSize) + 30;

            supplierRowSizes.put(supplier, rowSize);

            String rowSizeSpec = "center:" + rowSize + "dlu";
            builder.appendRow(new RowSpec(rowSizeSpec));
            builder.append(new JLabel(supplier.getSupplierName()));
        }
        builder.appendRow(new RowSpec("top:15dlu"));
        return builder.getPanel();
    }
View Full Code Here

    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

  @Override
  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout("10dlu,p,p,50dlu,20dlu,,20dlu", "");

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.appendRow(new RowSpec("bottom:20dlu"));
    builder.setLeadingColumnOffset(1);
    builder.nextColumn();
    builder.append("Navn:", textFieldName);
    builder.nextLine();
    builder.append("Beskrivelse:", textFieldDescription, 2);
    builder.nextLine();
    builder.append(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel), 5);

    builder.appendRow(new RowSpec("5dlu"));
    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

        /**
         * Construct a format using the specifications and constraints specified.
         */
        protected AbstractFormat(String rowSpecs, String columnSpecs, String gapRow, String gapColumn, CellConstraints[] cellConstraints) {
            this(RowSpec.decodeSpecs(rowSpecs), ColumnSpec.decodeSpecs(columnSpecs), new RowSpec(gapRow), new ColumnSpec(gapColumn), cellConstraints);
        }
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.layout.RowSpec

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.