public interface FlowLayout extends Layout
Compared to no layout, Flow Layout offers the following features:
LayoutControl.getLayout()| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSpacerSize()
Horizontal spacing between adjacent controls.
|
java.lang.String |
getVerticalAlignment()
Vertical alignment for all child content.
|
void |
setSpacerSize(java.lang.String spacerSize)
Horizontal spacing between adjacent controls.
|
void |
setVerticalAlignment(java.lang.String verticalAlignment)
Sets the Vertical alignment for all child content.
|
java.lang.String getSpacerSize()
setSpacerSize(String) for details of supported values when setting this property.void setSpacerSize(java.lang.String spacerSize)
java.lang.String getVerticalAlignment()
setVerticalAlignment(String) for details of supported values when setting this property.void setVerticalAlignment(java.lang.String verticalAlignment)
verticalAlignment must be one of the following:
Supported values:
| Value | Constant |
|---|---|
| Center | ControlConstants.VERTICAL_ALIGNMENT_CENTER |
| Top | ControlConstants.VERTICAL_ALIGNMENT_TOP |
| Bottom | ControlConstants.VERTICAL_ALIGNMENT_BOTTOM |
Setting a value of null removes any existing value for the property.
Example:
controls.PANEL1.layout.setVerticalAlignment(ControlConstants.VERTICAL_ALIGNMENT_TOP);