All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.GadgetVertFlowLayout

java.lang.Object
   |
   +----dtai.gwt.GadgetVertFlowLayout

public class GadgetVertFlowLayout
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 BOTTOM
The bottom alignment variable.
 o CENTER
The center alignment variable.
 o LEFT
The left alignment variable.
 o MIDDLE
The middle alignment variable.
 o RIGHT
The right alignment variable.
 o TOP
The top alignment variable.

Constructor Index

 o GadgetVertFlowLayout()
Constructs a new Flow Layout with a centered alignment.
 o GadgetVertFlowLayout(int)
Constructs a new Flow Layout with the specified vertical alignment.
 o GadgetVertFlowLayout(int, 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 GadgetVertFlowLayout's values.

Variables

 o TOP
 public static final int TOP
The top alignment variable.

 o MIDDLE
 public static final int MIDDLE
The middle alignment variable.

 o BOTTOM
 public static final int BOTTOM
The bottom alignment variable.

 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 GadgetVertFlowLayout
 public GadgetVertFlowLayout()
Constructs a new Flow Layout with a centered alignment.

 o GadgetVertFlowLayout
 public GadgetVertFlowLayout(int valign)
Constructs a new Flow Layout with the specified vertical alignment.

Parameters:
valign - the alignment value
 o GadgetVertFlowLayout
 public GadgetVertFlowLayout(int valign,
                             int halign,
                             int hgap,
                             int vgap)
Constructs a new Flow Layout with the specified alignment and gap values.

Parameters:
valign - the vertical alignment value
halign - the horizontal 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 GadgetVertFlowLayout's values.

Returns:
String
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index