public static class CssFloatLayoutContainer.CssFloatData extends Object implements HasSize, HasMargins, LayoutData
Constructor and Description |
---|
CssFloatData()
Creates layout data for the CSS float layout container with the default
value for
width (-1 = use widget's default width). |
CssFloatData(double width)
Creates layout data for the CSS float layout container using the
specified width.
|
CssFloatData(double width,
Margins margins) |
Modifier and Type | Method and Description |
---|---|
Margins |
getMargins()
Returns the margin specification.
|
double |
getSize()
Returns the size specification.
|
boolean |
isClear()
Indicates if this item should begin a new line (similar to
clear:both in CSS). |
void |
setClear(boolean clear)
Configures whether or not this child should begin a new line (similar to
clear:both in CSS). |
void |
setMargins(Margins margins)
Sets the margin specification.
|
void |
setSize(double size)
Sets the width of the column.
|
public CssFloatData()
width
(-1 = use widget's default width).public CssFloatData(double width)
width
- the width of the widgetpublic CssFloatData(double width, Margins margins)
public double getSize()
HasSize
public void setSize(double size)
public Margins getMargins()
HasMargins
getMargins
in interface HasMargins
public void setMargins(Margins margins)
HasMargins
setMargins
in interface HasMargins
margins
- the margin specificationpublic boolean isClear()
clear:both
in CSS). Defaults to false
.public void setClear(boolean clear)
clear:both
in CSS). Defaults to
false
.clear
- true if this item should begin a new lineCopyright © 2018. All rights reserved.