| java.lang.Object org.wings.SAbstractLayoutManager org.wings.SFlowLayout
All known Subclasses: org.wings.SFlowDownLayout,
Field Summary | |
protected int | align Alignment (left, center, right) of components. | final protected List | components List of layouted components. | protected int | hgap The horizontal gap (in pixels) specifiying the space
between columns. | protected int | vgap The vertical gap (in pixels) which specifiying the space
between rows. |
Constructor Summary | |
public | SFlowLayout() Creates a new SFlowLayout with horizontal orientation,
center alignment and a default 5-unit horizontal and vertical gap. | public | SFlowLayout(int alignment) Creates a new SFlowLayout with horizonal orientation and the
given alignment and a default 5-unit horizontal and vertical gap. | public | SFlowLayout(int alignment, int hgap, int vgap) |
align | protected int align(Code) | | Alignment (left, center, right) of components.
|
components | final protected List components(Code) | | List of layouted components.
|
hgap | protected int hgap(Code) | | The horizontal gap (in pixels) specifiying the space
between columns. They can be changed at any time.
This should be a non-negative integer.
|
vgap | protected int vgap(Code) | | The vertical gap (in pixels) which specifiying the space
between rows. They can be changed at any time.
This should be a non negative integer.
|
SFlowLayout | public SFlowLayout()(Code) | | Creates a new SFlowLayout with horizontal orientation,
center alignment and a default 5-unit horizontal and vertical gap.
|
SFlowLayout | public SFlowLayout(int alignment)(Code) | | Creates a new SFlowLayout with horizonal orientation and the
given alignment and a default 5-unit horizontal and vertical gap.
Parameters: alignment - the alignment |
SFlowLayout | public SFlowLayout(int alignment, int hgap, int vgap)(Code) | | Creates a new SFlowLayout with horizontal orientation and the given alignment
and gaps
Parameters: alignment - the alignment Parameters: hgap - the horizontal gap Parameters: vgap - the vertical gap |
addComponent | public void addComponent(SComponent c, Object constraint, int index)(Code) | | Adds the given component at given index.
Parameters: c - component to add Parameters: constraint - is ignored in this layout manager! Parameters: index - position to add component to |
getAlignment | public int getAlignment()(Code) | | returns the alignment
alignment |
getComponentAt | public SComponent getComponentAt(int i)(Code) | | returns the component at the given position
Parameters: i - position component |
getComponents | public List getComponents()(Code) | | returns a list of all components
all components |
getHgap | public int getHgap()(Code) | | Gets the horizontal gap between components in pixel. Rendered half as margin left and margin right
Some PLAFs might ignore this property.
the horizontal gap between components |
getVgap | public int getVgap()(Code) | | Gets the vertical gap between components in pixel. Rendered half as margin top and margin bottom
Some PLAFs might ignore this property.
the vertical gap between components |
setAlignment | public void setAlignment(int a)(Code) | | Sets the alignment for this layout. Possible values are
Parameters: a - one of the allignment values shown above |
setHgap | public void setHgap(int hgap)(Code) | | Sets the horizontal gap between components to the specified value in pixe. Rendered half as margin left and margin right
Some PLAFs might ignore this property.
Parameters: hgap - the horizontal gap between components |
setVgap | public void setVgap(int vgap)(Code) | | Sets the vertical gap between components to the specified value in pixel.
Rendered half as margin top and margin bottom. Some PLAFs might ignore this property.
Parameters: vgap - the vertical gap between components |
|
|