Example #1
0
 /**
  * Create a dynamic column definition in order to specify steps required for a <code>TreeColumn
  * </code>.
  *
  * <p><b>Definition of length</b> <br>
  * The lengths are specified using a <code>String</code>, containing quantity, followed by an
  * identifier of measurement. <br>
  * Ex.: "355px", "100%"
  *
  * @param treeColumn TreeColumn Column (a tree) you want to control the length.
  * @param preferredLength String That defines or <i>desired length</i> as column.
  * @param minLength String That defines or <i>minimum length</i> as column.
  * @see org.eclipse.swt.widgets.TreeColumn
  */
 public DynamicColumnData(
     final TreeColumn treeColumn, final String preferredLength, final String minLength) {
   this(
       treeColumn,
       DynamicLengthFormat.parse(preferredLength),
       DynamicLengthFormat.parse(minLength));
 }
Example #2
0
 /**
  * Create a dynamic column definition in order to specify steps required for a <code>TableColumn
  * </code>.
  *
  * <p><i>!Builder alternative avoids setting minimum length, using default 0px !</i>
  *
  * <p><b>Definition of length</b> <br>
  * The lengths are specified using a <code>String</code>, containing quantity, followed by an
  * identifier of measurement. <br>
  * Ex.: "355px", "100%"
  *
  * @param tableColumn TableColumn The column (a table) that should be controlled length.
  * @param preferredLength String That defines or <i>desired length</i> as column.
  * @see org.eclipse.swt.widgets.TableColumn
  */
 public DynamicColumnData(final TableColumn tableColumn, final String preferredLength) {
   this(
       tableColumn,
       DynamicLengthFormat.parse(preferredLength),
       new DynamicLength(0d, DynamicLengthMeasure.PIXEL));
 }