Examples of RowSpec


Examples of com.jgoodies.forms.layout.RowSpec

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

Examples of com.jgoodies.forms.layout.RowSpec

        /**
         * Set the size of the gaps between element cells.
         */
        public void setGaps(String gapRow, String gapColumn) {
            this.setGapRow(gapRow != null ? new RowSpec(gapRow) : null);
            this.setGapColumn(gapColumn != null ? new ColumnSpec(gapColumn) : null);
        }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

  @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

Examples of com.jgoodies.forms.layout.RowSpec

    List<Colli> colliList = viewHandler.getColliList();
    Collections.sort(colliList);//, viewHandler.getColliComparator());
    for (Colli colli : colliList) {
      builder.append(viewHandler.getColliView(colli,window).buildPanel(window));
    }
    builder.appendRow(new RowSpec("top:1dlu"));
    builder.nextLine();

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

Examples of com.jgoodies.forms.layout.RowSpec

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

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.appendRow(new RowSpec("bottom:20dlu"));
    builder.setLeadingColumnOffset(1);
    builder.nextColumn();
    builder.append("Kundenr:", textFieldCustomerNr);
    builder.nextLine();
    builder.append("Fornavn:", textFieldFirstName, 2);
    builder.append("Etternavn:", textFieldLastName, 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

Examples of com.jgoodies.forms.layout.RowSpec

     * Adds a strut of a specified size.
     *
     * @param size  a constant that describes the gap
     */
    public void addStrut(ConstantSize size) {
        getLayout().appendRow(new RowSpec(RowSpec.TOP,
                                          size,
                                          RowSpec.NO_GROW));
        nextRow();
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    /**
     * Inserts a new row. A gap row with specified RowSpec will be inserted
     * before this row.
     */
    public TableLayoutBuilder row(String gapRowSpec) {
        return row(new RowSpec(gapRowSpec));
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    }

    private Cell cellInternal(JComponent component, String attributes) {
        nextCol();
        Map attributeMap = getAttributes(attributes);
        RowSpec rowSpec = getRowSpec(getAttribute(ROWSPEC, attributeMap, ""));
        if (rowSpec != null) {
            setRowSpec(currentRow, rowSpec);
        }
        ColumnSpec columnSpec = getColumnSpec(getAttribute(COLSPEC, attributeMap, ""));
        if (columnSpec != null) {
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

        columnSpecs.set(col, columnSpec);
    }

    private RowSpec getRowSpec(String rowSpec) {
        if (StringUtils.hasText(rowSpec))
            return new RowSpec(rowSpec);
       
        return null;
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

        }
        List adjustedRows = new ArrayList();
        int adjustedRow = 0;
        int numRows = rowSpecs.size();
        for (int row = 0; row < numRows; row++, adjustedRow++) {
            RowSpec rowSpec = (RowSpec)gapRows.get(new Integer(row));
            if (rowSpec != null) {
                rowSpecs.add(adjustedRow, rowSpec);
                adjustedRow++;
            }
            adjustedRows.add(new Integer(adjustedRow));
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.