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

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

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * Ext GWT - Ext for GWT
 * Copyright(c) 2007, 2008, Ext JS, LLC.
 * [email protected]
 * 
 * http://extjs.com/license
 */
package com.extjs.gxt.ui.client.widget.layout;

import com.extjs.gxt.ui.client.Style;

/**
 * Layout data for AbsoluteLayout.
 */
public class AbsoluteData extends AnchorData {

  private int left = Style.DEFAULT;
  private int top = Style.DEFAULT;
  
  public AbsoluteData() {
    
  }
  
  public AbsoluteData(int left, int top) {
    this.left = left;
    this.top = top;
  }

  /**
   * Returns the left coordinate value.
   * 
   * @return the left value
   */
  public int getLeft() {
    return left;
  }

  /**
   * Returns the left value.
   * 
   * @return the left value
   */
  public int getTop() {
    return top;
  }

  /**
   * Sets the left property (defaults to DEFAULT).
   * 
   * @param left the left value
   */
  public void setLeft(int left) {
    this.left = left;
  }

  /**
   * Sets the top position (defaults to DEFAULT).
   * 
   * @param top the top value
   */
  public void setTop(int top) {
    this.top = top;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy