All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.GadgetGridLayout

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

public class GadgetGridLayout
extends Object
implements GadgetLayoutManager
A layout manager for a container that lays out grids.


Constructor Index

 o GadgetGridLayout(int, int)
Creates a grid layout with the specified rows and columns.
 o GadgetGridLayout(int, int, int, int)
Creates a grid layout with the specified rows, columns, horizontal gap, and vertical gap.
 o GadgetGridLayout(int, int, int, int, int, int)
Creates a grid layout with the specified rows, columns, horizontal gap, vertical gap, and minimum width and height.

Method Index

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

Constructors

 o GadgetGridLayout
 public GadgetGridLayout(int rows,
                         int cols)
Creates a grid layout with the specified rows and columns.

Parameters:
rows - the rows
cols - the columns
 o GadgetGridLayout
 public GadgetGridLayout(int rows,
                         int cols,
                         int hgap,
                         int vgap)
Creates a grid layout with the specified rows, columns, horizontal gap, and vertical gap.

Parameters:
rows - the rows; zero means 'any number.'
cols - the columns; zero means 'any number.' Only one of 'rows' and 'cols' can be zero, not both.
hgap - the horizontal gap variable
vgap - the vertical gap variable
Throws: IllegalArgumentException
If the rows and columns are invalid.
 o GadgetGridLayout
 public GadgetGridLayout(int rows,
                         int cols,
                         int hgap,
                         int vgap,
                         int minWidth,
                         int minHeight)
Creates a grid layout with the specified rows, columns, horizontal gap, vertical gap, and minimum width and height.

Parameters:
rows - the rows; zero means 'any number.'
cols - the columns; zero means 'any number.' Only one of 'rows' and 'cols' can be zero, not both.
hgap - the horizontal gap variable
vgap - the vertical gap variable
minWidth - the minimum width of any child
minHeight - the minimum height of any child
Throws: IllegalArgumentException
If the rows and columns are invalid.

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 gadget with the specified name to the layout.

Parameters:
name - the name of the gadget
gadget - the gadget to be added
 o removeLayoutGadget
 public void removeLayoutGadget(Gadget gadget)
Removes the specified gadget from the layout. Does not apply.

Parameters:
gadget - the gadget to be removed
 o preferredLayoutSize
 public Dimension preferredLayoutSize(ContainerGadget parent)
Returns the preferred dimensions for this layout given the gadgets int the specified panel.

Parameters:
parent - the gadget which needs to be laid out
Returns:
Dimension
See Also:
minimumLayoutSize
 o minimumLayoutSize
 public Dimension minimumLayoutSize(ContainerGadget parent)
Returns the minimum dimensions needed to layout the gadgets contained in the specified panel.

Parameters:
parent - the gadget which needs to be laid out
Returns:
Dimension
See Also:
preferredLayoutSize
 o layoutContainerGadget
 public void layoutContainerGadget(ContainerGadget parent)
Lays out the container in the specified panel.

Parameters:
parent - the specified gadget being laid out
See Also:
ContainerGadget
 o toString
 public String toString()
Returns the String representation of this GadgetGridLayout's values.

Returns:
String
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index