All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.GadgetFlowLayout
java.lang.Object
|
+----dtai.gwt.GadgetFlowLayout
- public class GadgetFlowLayout
- extends Object
- implements GadgetLayoutManager
Flow layout is used to layout gadgets in a panel. It will arrange
gadgets left to right until no more gadgets fit on the same line.
Each line is centered.
-
CENTER
- The center alignment variable.
-
LEFT
- The left alignment variable.
-
RIGHT
- The right alignment variable.
-
GadgetFlowLayout()
- Constructs a new Flow Layout with a centered alignment.
-
GadgetFlowLayout(int)
- Constructs a new Flow Layout with the specified alignment.
-
GadgetFlowLayout(int, int, int)
- Constructs a new Flow Layout with the specified alignment and gap
values.
-
addLayoutGadget(String, Gadget)
- Adds the specified component to the layout.
-
childrenCanOverlap()
- returns true if children can overlap each other.
-
layoutContainerGadget(ContainerGadget)
- Lays out the 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.
-
toString()
- Returns the String representation of this GadgetFlowLayout's values.
LEFT
public static final int LEFT
- The left alignment variable.
CENTER
public static final int CENTER
- The center alignment variable.
RIGHT
public static final int RIGHT
- The right alignment variable.
GadgetFlowLayout
public GadgetFlowLayout()
- Constructs a new Flow Layout with a centered alignment.
GadgetFlowLayout
public GadgetFlowLayout(int align)
- Constructs a new Flow Layout with the specified alignment.
- Parameters:
- align - the alignment value
GadgetFlowLayout
public GadgetFlowLayout(int align,
int hgap,
int vgap)
- Constructs a new Flow Layout with the specified alignment and gap
values.
- Parameters:
- align - the alignment value
- hgap - the horizontal gap variable
- vgap - the vertical gap variable
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 component to the layout. Not used by this class.
- Parameters:
- name - the name of the component
- gadget - the the component to be added
removeLayoutGadget
public void removeLayoutGadget(Gadget gadget)
- Removes the specified component from the layout. Not used by
this class.
- Parameters:
- gadget - the component to remove
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
minimumLayoutSize
public Dimension minimumLayoutSize(ContainerGadget target)
- Returns the minimum dimensions needed to layout the components
contained in the specified target container.
- Parameters:
- target - the component which needs to be laid out
- Returns:
- Dimension
- See Also:
- preferredLayoutSize
layoutContainerGadget
public void layoutContainerGadget(ContainerGadget target)
- Lays out the container. This method will actually reshape the
components in the target in order to satisfy the constraints of
the BorderLayout object.
- Parameters:
- target - the specified component being laid out.
- See Also:
- ContainerGadget
toString
public String toString()
- Returns the String representation of this GadgetFlowLayout's values.
- Returns:
- String
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index