Package org.gwt.mosaic.forms.client.layout

Examples of org.gwt.mosaic.forms.client.layout.RowSpec


   *
   * @param lineGapSize the <code>ConstantSize</code> that describes the size of
   *          the gaps between component lines
   */
  public void setLineGapSize(ConstantSize lineGapSize) {
    RowSpec rowSpec = RowSpec.createGap(lineGapSize);
    this.lineGapSpec = rowSpec;
  }
View Full Code Here


   *
   * @param paragraphGapSize the <code>ConstantSize</code> that describes the
   *          size of the gaps between paragraphs
   */
  public void setParagraphGapSize(ConstantSize paragraphGapSize) {
    RowSpec rowSpec = RowSpec.createGap(paragraphGapSize);
    this.paragraphGapSpec = rowSpec;
  }
View Full Code Here

  private void ensureHasGapRow(RowSpec gapRowSpec) {
    if ((getRow() == 1) || (getRow() <= getRowCount()))
      return;

    if (getRow() <= getRowCount()) {
      RowSpec rowSpec = getCursorRowSpec();
      if ((rowSpec == gapRowSpec))
        return;
    }
    appendRow(gapRowSpec);
    nextLine();
View Full Code Here

   * 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

   * @param layout the <code>FormLayout</code> to inspect
   */
  public static void dumpRowSpecs(FormLayout layout) {
    System.out.print("ROW SPECS:   ");
    for (int row = 1; row <= layout.getRowCount(); row++) {
      RowSpec rowSpec = layout.getRowSpec(row);
      System.out.print(rowSpec.toShortString());
      if (row < layout.getRowCount())
        System.out.print(", ");
    }
    System.out.println();
  }
View Full Code Here

   * @param layout the <code>FormLayout</code> to inspect
   */
  public static void dumpRowSpecs(FormLayout layout) {
    System.out.print("ROW SPECS:   ");
    for (int row = 1; row <= layout.getRowCount(); row++) {
      RowSpec rowSpec = layout.getRowSpec(row);
      System.out.print(rowSpec.toShortString());
      if (row < layout.getRowCount())
        System.out.print(", ");
    }
    System.out.println();
  }
View Full Code Here

   *
   * @param lineGapSize the <code>ConstantSize</code> that describes the size of
   *          the gaps between component lines
   */
  public void setLineGapSize(ConstantSize lineGapSize) {
    RowSpec rowSpec = RowSpec.createGap(lineGapSize);
    this.lineGapSpec = rowSpec;
  }
View Full Code Here

   *
   * @param paragraphGapSize the <code>ConstantSize</code> that describes the
   *          size of the gaps between paragraphs
   */
  public void setParagraphGapSize(ConstantSize paragraphGapSize) {
    RowSpec rowSpec = RowSpec.createGap(paragraphGapSize);
    this.paragraphGapSpec = rowSpec;
  }
View Full Code Here

  private void ensureHasGapRow(RowSpec gapRowSpec) {
    if ((getRow() == 1) || (getRow() <= getRowCount()))
      return;

    if (getRow() <= getRowCount()) {
      RowSpec rowSpec = getCursorRowSpec();
      if ((rowSpec == gapRowSpec))
        return;
    }
    appendRow(gapRowSpec);
    nextLine();
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.forms.client.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.