| Package | org.aswing |
| Class | public class FlowWrapLayout |
| Inheritance | FlowWrapLayout FlowLayout EmptyLayout |
| Method | Defined by | ||
|---|---|---|---|
|
FlowWrapLayout(preferWidth:int = 200, align:int, hgap:int = 5, vgap:int = 5, margin:Boolean = true)
Creates a new flow wrap layout manager with the indicated prefer width, alignment and the indicated horizontal and vertical gaps. | FlowWrapLayout | ||
![]() |
addLayoutComponent(comp:Component, constraints:Object):void
Do nothing
Adds the specified component to the layout, using the specified
constraint object.
| EmptyLayout | |
![]() |
getAlignment():int
Gets the alignment for this layout.
| FlowLayout | |
![]() |
getHgap():int
Gets the horizontal gap between components.
| FlowLayout | |
![]() |
getLayoutAlignmentX(target:Container):Number
return 0
| EmptyLayout | |
![]() |
getLayoutAlignmentY(target:Container):Number
return 0
| EmptyLayout | |
|
getPreferWidth():int
Returns the prefer width for all should should arranged.
| FlowWrapLayout | ||
![]() |
getVgap():int
Gets the vertical gap between components.
| FlowLayout | |
![]() |
invalidateLayout(target:Container):void
do nothing
| EmptyLayout | |
![]() |
isMargin():Boolean
Returns whether or not the gap will margin around.
| FlowLayout | |
![]() |
layoutContainer(target:Container):void
Lays out the container.
| FlowLayout | |
![]() |
return IntDimension.createBigDimension();
| EmptyLayout | |
![]() |
Returns the minimum dimensions needed to layout the visible
components contained in the specified target container.
| FlowLayout | |
|
Returns the preferred dimensions for this layout given the
visible components in the specified target container.
| FlowWrapLayout | ||
![]() |
removeLayoutComponent(comp:Component):void
Do nothing
Removes the specified component from the layout.
| EmptyLayout | |
![]() |
setAlignment(align:int):void
Sets the alignment for this layout.
| FlowLayout | |
![]() |
setHgap(hgap:int):void
Sets the horizontal gap between components.
| FlowLayout | |
![]() |
setMargin(b:Boolean):void
Sets whether or not the gap will margin around.
| FlowLayout | |
|
setPreferWidth(preferWidth:int):void
Sets the prefer width for all should should arranged.
| FlowWrapLayout | ||
![]() |
setVgap(vgap:int):void
Sets the vertical gap between components.
| FlowLayout | |
|
toString():String
Returns a string representation of this
FlowWrapLayout
object and its values. | FlowWrapLayout | ||
| Constant | Defined by | ||
|---|---|---|---|
| CENTER : int = 0 [static]
This value indicates that each row of components
should be centered.
| FlowWrapLayout | ||
| LEFT : int = 2 [static]
This value indicates that each row of components
should be left-justified.
| FlowWrapLayout | ||
| RIGHT : int = 4 [static]
This value indicates that each row of components
should be right-justified.
| FlowWrapLayout | ||
| FlowWrapLayout | () | constructor |
public function FlowWrapLayout(preferWidth:int = 200, align:int, hgap:int = 5, vgap:int = 5, margin:Boolean = true)
Creates a new flow wrap layout manager with the indicated prefer width, alignment and the indicated horizontal and vertical gaps.
The value of the alignment argument must be one ofFlowWrapLayout.LEFT, FlowWrapLayout.RIGHT,or FlowWrapLayout.CENTER.
Parameters
preferWidth:int (default = 200) — preferWidth the width that when component need to wrap to second line
|
|
align:int — align the alignment value, default is LEFT
|
|
hgap:int (default = 5) — hgap the horizontal gap between components, default 5
|
|
vgap:int (default = 5) — vgap the vertical gap between components, default 5
|
|
margin:Boolean (default = true) — margin whether or not the gap will margin around
|
| getPreferWidth | () | method |
public function getPreferWidth():intReturns the prefer width for all should should arranged.
Returnsint — the prefer width for all should should arranged.
|
| preferredLayoutSize | () | method |
public override function preferredLayoutSize(target:Container):IntDimensionReturns the preferred dimensions for this layout given the visible components in the specified target container.
Parameterstarget:Container — the component which needs to be laid out
|
IntDimension —
the preferred dimensions to lay out the
subcomponents of the specified container
|
See also
| setPreferWidth | () | method |
public function setPreferWidth(preferWidth:int):voidSets the prefer width for all should should arranged.
ParameterspreferWidth:int — the prefer width for all should should arranged.
|
| toString | () | method |
public override function toString():String
Returns a string representation of this FlowWrapLayout
object and its values.
String — a string representation of this layout
|
| CENTER | constant |
public static const CENTER:int = 0This value indicates that each row of components should be centered.
| LEFT | constant |
public static const LEFT:int = 2This value indicates that each row of components should be left-justified.
| RIGHT | constant |
public static const RIGHT:int = 4This value indicates that each row of components should be right-justified.