All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.GadgetBorderLayout
java.lang.Object
|
+----dtai.gwt.GadgetBorderLayout
- public class GadgetBorderLayout
- extends Object
- implements GadgetLayoutManager
A TNT style border bag layout. It will layout a container
using members named "North", "South", "East", "West" and
"Center".
The "North", "South", "East" and "West" components get layed out
according to their preferred sizes and the constraints of the
container's size. The "Center" component will get any space left
over.
-
GadgetBorderLayout()
- Constructs a new BorderLayout.
-
GadgetBorderLayout(int, int)
- Constructs a BorderLayout with the specified gaps.
-
addLayoutGadget(String, Gadget)
- Adds the specified named component to the layout.
-
childrenCanOverlap()
- returns true if children can overlap each other.
-
layoutContainerGadget(ContainerGadget)
- Lays out the specified container.
-
minimumLayoutSize(ContainerGadget)
- Returns the minimum dimensions needed to layout the components
contained in the specified target container.
-
preferredLayoutSize(ContainerGadget)
- Returns the preferred dimensions for this layout given the components
in the specified target container.
-
removeLayoutGadget(Gadget)
- Removes the specified component from the layout.
GadgetBorderLayout
public GadgetBorderLayout()
- Constructs a new BorderLayout.
GadgetBorderLayout
public GadgetBorderLayout(int hgap,
int vgap)
- Constructs a BorderLayout with the specified gaps.
- Parameters:
- hgap - the horizontal gap
- vgap - the vertical gap
childrenCanOverlap
public boolean childrenCanOverlap()
- returns true if children can overlap each other.
- Returns:
- false
addLayoutGadget
public void addLayoutGadget(String name,
Gadget gadget)
- Adds the specified named component to the layout.
- Parameters:
- name - the String name
- gadget - the component to be added
removeLayoutGadget
public void removeLayoutGadget(Gadget gadget)
- Removes the specified component from the layout.
- Parameters:
- gadget - the component to be removed
minimumLayoutSize
public Dimension minimumLayoutSize(ContainerGadget target)
- Returns the minimum dimensions needed to layout the components
contained in the specified target container.
- Parameters:
- target - the ContainerGadget on which to do the layout
- Returns:
- Dimension
- See Also:
- ContainerGadget, preferredLayoutSize
preferredLayoutSize
public Dimension preferredLayoutSize(ContainerGadget target)
- Returns the preferred dimensions for this layout given the components
in the specified target container.
- Parameters:
- target - the component which needs to be laid out
- Returns:
- Dimension
- See Also:
- ContainerGadget, minimumLayoutSize
layoutContainerGadget
public void layoutContainerGadget(ContainerGadget target)
- Lays out the specified container. This method will actually setBounds the
components in the specified target container in order to satisfy the
constraints of the BorderLayout object.
- Parameters:
- target - the component being laid out
- See Also:
- ContainerGadget
All Packages Class Hierarchy This Package Previous Next Index