com.sencha.gxt.widget.core.client.container
Class CssFloatLayoutContainer.CssFloatData

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.container.CssFloatLayoutContainer.CssFloatData
All Implemented Interfaces:
HasUiAttributes, HasSize, LayoutData
Enclosing class:
CssFloatLayoutContainer

public static class CssFloatLayoutContainer.CssFloatData
extends java.lang.Object
implements HasSize, LayoutData

Specifies widget layout parameters that control the size of the widget.


Constructor Summary
CssFloatLayoutContainer.CssFloatData()
          Creates layout data for the CSS float layout container with the default value for width (-1 = use widget's default width).
CssFloatLayoutContainer.CssFloatData(double width)
          Creates layout data for the CSS float layout container using the specified width.
 
Method Summary
 double getSize()
          Returns the size specification.
 void setSize(double size)
          Sets the width of the column.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssFloatLayoutContainer.CssFloatData

public CssFloatLayoutContainer.CssFloatData()
Creates layout data for the CSS float layout container with the default value for width (-1 = use widget's default width).


CssFloatLayoutContainer.CssFloatData

public CssFloatLayoutContainer.CssFloatData(double width)
Creates layout data for the CSS float layout container using the specified width. Values <= 1 are treated as percentages.

Parameters:
width - the width of the widget
Method Detail

getSize

public double getSize()
Description copied from interface: HasSize
Returns the size specification. Values greater than 1 represent height in pixels. Values between 0 and 1 (inclusive) represent a percent of the height of the container.

Specified by:
getSize in interface HasSize
Returns:
the size specification

setSize

public void setSize(double size)
Sets the width of the column.

Specified by:
setSize in interface HasSize
Parameters:
size - the width, values <= 1 treated a percentages.


Copyright © 2012. All Rights Reserved.