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.


Variable Index

 o CENTER
The center alignment variable.
 o LEFT
The left alignment variable.
 o RIGHT
The right alignment variable.

Constructor Index

 o GadgetFlowLayout()
Constructs a new Flow Layout with a centered alignment.
 o GadgetFlowLayout(int)
Constructs a new Flow Layout with the specified alignment.
 o GadgetFlowLayout(int, int, int)
Constructs a new Flow Layout with the specified alignment and gap values.

Method Index

 o addLayoutGadget(String, Gadget)
Adds the specified component to the layout.
 o childrenCanOverlap()
returns true if children can overlap each other.
 o layoutContainerGadget(ContainerGadget)
Lays out the container.
 o minimumLayoutSize(ContainerGadget)
Returns the minimum dimensions needed to layout the components contained in the specified target container.
 o preferredLayoutSize(ContainerGadget)
Returns the preferred dimensions for this layout given the components in the specified target container.
 o removeLayoutGadget(Gadget)
Removes the specified component from the layout.
 o toString()
Returns the String representation of this GadgetFlowLayout's values.

Variables

 o LEFT
 public static final int LEFT
The left alignment variable.

 o CENTER
 public static final int CENTER
The center alignment variable.

 o RIGHT
 public static final int RIGHT
The right alignment variable.

Constructors

 o GadgetFlowLayout
 public GadgetFlowLayout()
Constructs a new Flow Layout with a centered alignment.

 o GadgetFlowLayout
 public GadgetFlowLayout(int align)
Constructs a new Flow Layout with the specified alignment.

Parameters:
align - the alignment value
 o 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

Methods

 o childrenCanOverlap
 public boolean childrenCanOverlap()
returns true if children can overlap each other.

Returns:
false
 o 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
 o removeLayoutGadget
 public void removeLayoutGadget(Gadget gadget)
Removes the specified component from the layout. Not used by this class.

Parameters:
gadget - the component to remove
 o 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
 o 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
 o 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
 o 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