All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.widget.layout.FormData Maven / Gradle / Ivy

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * Sencha GXT 2.3.0 - Sencha for GWT
 * Copyright(c) 2007-2013, Sencha, Inc.
 * [email protected]
 * 
 * http://www.sencha.com/products/gxt/license/
 */
 package com.extjs.gxt.ui.client.widget.layout;

/**
 * Layout data form FormLayout.
 */
public class FormData extends AnchorData {

  private int width;
  private int height;

  /**
   * Creates a new form data instance.
   */
  public FormData() {

  }

  /**
   * Creates a new form data instance.
   * 
   * @param width the width
   * @param height the height
   */
  public FormData(int width, int height) {
    this.width = width;
    this.height = height;
  }

  /**
   * Creates a new form data instance.
   * 
   * @param anchorSpec the anchor spec
   */
  public FormData(String anchorSpec) {
    super(anchorSpec);
  }

  /**
   * Returns the height.
   * 
   * @return the height
   */
  public int getHeight() {
    return height;
  }

  /**
   * Returns the width.
   * 
   * @return the width
   */
  public int getWidth() {
    return width;
  }

  /**
   * Sets the height.
   * 
   * @param height the height
   */
  public void setHeight(int height) {
    this.height = height;
  }

  /**
   * Setst the width.
   * 
   * @param width the width
   */
  public void setWidth(int width) {
    this.width = width;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy