this(ColumnSpec.decodeSpecs(encodedColumnSpecs, layoutMap), new RowSpec[0]);
this(ColumnSpec.decodeSpecs(encodedColumnSpecs, layoutMap), new RowSpec[0]);
/** * Returns an array of column specifications that is built from the given * encoded column specifications by flipping each column spec and reversing * their order. * * @param encodedColumnSpecs * the original comma-separated encoded column specifications * @return an array of flipped column specs in reversed order */ private static ColumnSpec[] flipped(String encodedColumnSpecs) { return flipped(ColumnSpec.decodeSpecs(encodedColumnSpecs)); }
/** * Parses and splits encoded column specifications using the default * {@link LayoutMap} and returns an array of ColumnSpec objects. * * @param encodedColumnSpecs comma separated encoded column specifications * @return an array of decoded column specifications * @throws NullPointerException if {@code encodedColumnSpecs} is {@code null} * * @see #decodeSpecs(String, LayoutMap) * @see #decode(String) * @see LayoutMap#getRoot() */ public static ColumnSpec[] decodeSpecs(String encodedColumnSpecs) { return decodeSpecs(encodedColumnSpecs, LayoutMap.getRoot()); }
/** * Parses and splits encoded column specifications using the default * {@link LayoutMap} and returns an array of ColumnSpec objects. * * @param encodedColumnSpecs comma separated encoded column specifications * @return an array of decoded column specifications * @throws NullPointerException if {@code encodedColumnSpecs} is {@code null} * * @see #decodeSpecs(String, LayoutMap) * @see #decode(String) * @see LayoutMap#getRoot() */ public static ColumnSpec[] decodeSpecs(String encodedColumnSpecs) { return decodeSpecs(encodedColumnSpecs, LayoutMap.getRoot()); }
/** * Constructs an instance of <code>FormLayout</code> using the given * encoded string representations for column and row specifications. * <p> * * See the class comment for examples. * * @param encodedColumnSpecs * comma separated encoded column specifications * @param encodedRowSpecs * comma separated encoded row specifications * @throws NullPointerException * if encodedColumnSpecs or encodedRowSpecs is null */ public FormLayout(String encodedColumnSpecs, String encodedRowSpecs) { this(ColumnSpec.decodeSpecs(encodedColumnSpecs), RowSpec.decodeSpecs(encodedRowSpecs)); }
String encodedRowSpecs, LayoutMap layoutMap) { this(ColumnSpec.decodeSpecs(encodedColumnSpecs, layoutMap), RowSpec. decodeSpecs(encodedRowSpecs, layoutMap));
String encodedRowSpecs, LayoutMap layoutMap) { this(ColumnSpec.decodeSpecs(encodedColumnSpecs, layoutMap), RowSpec. decodeSpecs(encodedRowSpecs, layoutMap));
/** * Set the rows and columns used for a single element cell. */ public void setElementCells(String rowSpecs, String columnSpecs) { this.setElementRows(RowSpec.decodeSpecs(rowSpecs)); this.setElementColumns(ColumnSpec.decodeSpecs(columnSpecs)); }
/** * 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); }
/** * Set the rows and columns used for a single element cell. */ public void setElementCells(String rowSpecs, String columnSpecs) { this.setElementRows(RowSpec.decodeSpecs(rowSpecs)); this.setElementColumns(ColumnSpec.decodeSpecs(columnSpecs)); }
/** * Set the rows and columns used for a single element cell. */ public void setElementCells(String rowSpecs, String columnSpecs) { this.setElementRows(RowSpec.decodeSpecs(rowSpecs)); this.setElementColumns(ColumnSpec.decodeSpecs(columnSpecs)); }
/** * 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); }
/** * 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); }
/** * 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)); }
/** * 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)); }
/** * 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)); }
FormLayout layout = new FormLayout(ColumnSpec.decodeSpecs("3dlu,p,3dlu,d,3dlu,75dlu:grow,3dlu"), rowSpecs //$NON-NLS-1$ .toArray(new RowSpec[rowSpecs.size()])); PanelBuilder builder = new PanelBuilder(layout);