| |
|
| java.lang.Object org.wings.SAbstractLayoutManager org.wings.SBorderLayout
SBorderLayout | public class SBorderLayout extends SAbstractLayoutManager (Code) | | Swing-like border layout.
You can add up to 5 components to a
container with this layout at the following positions:
NORTH , SOUTH , EAST ,
WEST and CENTER .
author: Armin Haaf |
Method Summary | |
public void | addComponent(SComponent c, Object constraint, int index) | public Map | getComponents() Returns a map of all components. | public int | getHgap() Gets the horizontal gap between components in pixel. | public int | getVgap() Gets the vertical gap between components in pixel. | public void | removeComponent(SComponent c) | public void | setHgap(int hgap) Sets the horizontal gap between components to the specified value in pixe. | public void | setVgap(int vgap) Sets the vertical gap between components to the specified value in pixel.
Rendered half as margin top and margin bottom. |
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.
|
SBorderLayout | public SBorderLayout()(Code) | | creates a new border layout
|
SBorderLayout | public SBorderLayout(int hgap, int vgap)(Code) | | creates a new border layout
|
getComponents | public Map getComponents()(Code) | | Returns a map of all components.
the components contained by the layout |
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 |
removeComponent | public void removeComponent(SComponent c)(Code) | | Removes the component from the layout manager
Parameters: c - the component to be removed |
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 |
|
|
|