com.sencha.gxt.widget.core.client.container
Class VerticalLayoutContainer.VerticalLayoutData

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.container.MarginData
      extended by com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData
All Implemented Interfaces:
HasUiAttributes, HasHeight, HasMargins, HasWidth, LayoutData
Enclosing class:
VerticalLayoutContainer

public static class VerticalLayoutContainer.VerticalLayoutData
extends MarginData
implements HasWidth, HasHeight, LayoutData

Specifies parameters that control the layout of the widget in the container.


Constructor Summary
VerticalLayoutContainer.VerticalLayoutData()
          Creates vertical layout parameters with default values for height (-1) and width (-1) and margins (none).
VerticalLayoutContainer.VerticalLayoutData(double width, double height)
          Creates vertical layout parameters with the specified values.
VerticalLayoutContainer.VerticalLayoutData(double width, double height, Margins margins)
          Creates ertical layout parameters with the specified values.
 
Method Summary
 double getHeight()
          Returns the height specification.
 double getWidth()
          Returns the width specification.
 void setHeight(double height)
          Sets the height specification.
 void setWidth(double width)
          Sets the width specification.
 
Methods inherited from class com.sencha.gxt.widget.core.client.container.MarginData
getMargins, setMargins
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticalLayoutContainer.VerticalLayoutData

public VerticalLayoutContainer.VerticalLayoutData()
Creates vertical layout parameters with default values for height (-1) and width (-1) and margins (none).


VerticalLayoutContainer.VerticalLayoutData

public VerticalLayoutContainer.VerticalLayoutData(double width,
                                                  double height)
Creates vertical layout parameters with the specified values.

Parameters:
width - the width specification (see HasWidth)
height - the height specification (see HasHeight)

VerticalLayoutContainer.VerticalLayoutData

public VerticalLayoutContainer.VerticalLayoutData(double width,
                                                  double height,
                                                  Margins margins)
Creates ertical layout parameters with the specified values.

Parameters:
width - the width specification (see HasWidth)
height - the height specification (see HasHeight)
margins - the margin specification (see HasMargins)
Method Detail

getHeight

public double getHeight()
Description copied from interface: HasHeight
Returns the height specification. Values greater than 1 represent height in pixels. Values between 0 and 1 (inclusive) represent a percent of the height of the container. A value of -1 represents the default height of the associated widget. Values less than -1 represent the height of the container minus the absolute value of the widget height.

Specified by:
getHeight in interface HasHeight
Returns:
the height specification

getWidth

public double getWidth()
Description copied from interface: HasWidth
Returns the width specification. Values greater than 1 represent width in pixels. Values between 0 and 1 (inclusive) represent a percent of the width of the container. A value of -1 represents the default width of the associated widget. Values less than -1 represent the width of the container minus the absolute value of the widget width.

Specified by:
getWidth in interface HasWidth
Returns:
the width specification

setHeight

public void setHeight(double height)
Description copied from interface: HasHeight
Sets the height specification. Values greater than 1 represent height in pixels. Values between 0 and 1 (inclusive) represent a percent of the height of the container. A value of -1 represents the default height of the associated widget. Values less than -1 represent the height of the container minus the absolute value of the widget height.

Specified by:
setHeight in interface HasHeight
Parameters:
height - the height specification

setWidth

public void setWidth(double width)
Description copied from interface: HasWidth
Sets the width specification. Values greater than 1 represent width in pixels. Values between 0 and 1 (inclusive) represent a percent of the width of the container. A value of -1 represents the default width of the associated widget. Values less than -1 represent the width of the container minus the absolute value of the widget width.

Specified by:
setWidth in interface HasWidth
Parameters:
width - the width specification


Copyright © 2012. All Rights Reserved.