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.
-
GadgetGridLayout(int, int)
- Creates a grid layout with the specified rows and columns.
-
GadgetGridLayout(int, int, int, int)
- Creates a grid layout with the specified rows, columns,
horizontal gap, and vertical gap.
-
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.
-
addLayoutGadget(String, Gadget)
- Adds the specified gadget with the specified name to the layout.
-
childrenCanOverlap()
- returns true if children can overlap each other.
-
layoutContainerGadget(ContainerGadget)
- Lays out the container in the specified panel.
-
minimumLayoutSize(ContainerGadget)
- Returns the minimum dimensions needed to layout the gadgets
contained in the specified panel.
-
preferredLayoutSize(ContainerGadget)
- Returns the preferred dimensions for this layout given the gadgets
int the specified panel.
-
removeLayoutGadget(Gadget)
- Removes the specified gadget from the layout.
-
toString()
- Returns the String representation of this GadgetGridLayout's values.
GadgetGridLayout
public GadgetGridLayout(int rows,
int cols)
- Creates a grid layout with the specified rows and columns.
- Parameters:
- rows - the rows
- cols - the columns
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.
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.
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 gadget with the specified name to the layout.
- Parameters:
- name - the name of the gadget
- gadget - the gadget to be added
removeLayoutGadget
public void removeLayoutGadget(Gadget gadget)
- Removes the specified gadget from the layout. Does not apply.
- Parameters:
- gadget - the gadget to be removed
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
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
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
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