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

com.extjs.gxt.ui.client.widget.layout.AnchorData 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.util.Margins;

/**
 * Layout data for AnchorLayout.
 */
public class AnchorData extends MarginData {

  private String anchorSpec;

  public AnchorData() {

  }

  /**
   * Creates a new anchor data.
   * 
   * @param anchorSpec the anchor spec
   */
  public AnchorData(String anchorSpec) {
    this.setAnchorSpec(anchorSpec);
  }

  /**
   * Creates a new anchor data.
   * 
   * @param anchorSpec the anchor spec
   * @param margins the margins
   */
  public AnchorData(String anchorSpec, Margins margins) {
    super(margins);
    this.anchorSpec = anchorSpec;
  }

  /**
   * Sets the anchor spec.
   * 
   * @param anchorSpec the anchor spec
   */
  public void setAnchorSpec(String anchorSpec) {
    this.anchorSpec = anchorSpec;
  }

  /**
   * Returns the anchor spec.
   * 
   * @return the anchor spec
   */
  public String getAnchorSpec() {
    return anchorSpec;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy