Package com.jgoodies.forms.layout

Examples of com.jgoodies.forms.layout.ColumnSpec


          {
            contentPane.setLayout(new FormLayout(
              new ColumnSpec[] {
                FormFactory.DEFAULT_COLSPEC,
                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                new ColumnSpec("max(min;200dlu):grow"),
                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                FormFactory.DEFAULT_COLSPEC
              },
              new RowSpec[] {
                FormFactory.DEFAULT_ROWSPEC,
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

        /**
         * 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

        /**
         * 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

    /**
     * Inserts a gap column with the specified colSpec.
     */
    public TableLayoutBuilder gapCol(String colSpec) {
        return gapCol(new ColumnSpec(colSpec));
    }
View Full Code Here

        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) {
            setColumnSpec(currentCol, columnSpec);
        }
        addRowGroup(getAttribute(ROWGROUPID, attributeMap, null));
        addColGroup(getAttribute(COLGROUPID, attributeMap, null));
View Full Code Here

        return null;
    }

    private ColumnSpec getColumnSpec(String columnSpec) {
        if (StringUtils.hasText(columnSpec))
            return new ColumnSpec(columnSpec);

        return null;
    }
View Full Code Here

    private void fillInGaps() {
        List adjustedCols = new ArrayList();
        int adjustedCol = 0;
        for (int col = 0; col < maxColumns; col++, adjustedCol++) {
            ColumnSpec colSpec = (ColumnSpec)gapCols.get(new Integer(col));
            if (colSpec != null) {
                columnSpecs.add(adjustedCol, colSpec);
                adjustedCol++;
            }
            adjustedCols.add(new Integer(adjustedCol + 1));
View Full Code Here

    private RowSpec getDefaultRowSpec() {
        return FormFactory.DEFAULT_ROWSPEC;
    }

    private ColumnSpec getDefaultColSpec() {
        return new ColumnSpec("default:grow");
    }
View Full Code Here

   * @param border if null, then don't use a border
   *
   * @return never null
   */
  public JComponent createButtonBar(final Size minimumButtonSize, final Border border) {
    return createButtonBar(minimumButtonSize == null ? null : new ColumnSpec(minimumButtonSize), null, border);
  }
View Full Code Here

TOP

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

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.