|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.GridLayout
|
+--org.moyoman.client.reference.util.GridLayout2
This layout manager extends GridLayout to allow the cells to be different sizes. Taken from Java World Tip #121: Flex Your Grid Layout.
| Field Summary |
| Fields inherited from class java.awt.GridLayout |
|
| Constructor Summary | |
GridLayout2()
Construct this object. |
|
GridLayout2(int rows,
int cols)
Construct this object with the given parameters. |
|
GridLayout2(int rows,
int cols,
int hgap,
int vgap)
Construct this object with the given parameters. |
|
| Method Summary | |
void |
layoutContainer(Container parent)
Layout the components in the given container. |
Dimension |
minimumLayoutSize(Container parent)
Return the minimum layout size for the given container. |
Dimension |
preferredLayoutSize(Container parent)
Return the preferred layout size for the given container. |
| Methods inherited from class java.awt.GridLayout |
addLayoutComponent, getColumns, getHgap, getRows, getVgap, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GridLayout2()
public GridLayout2(int rows,
int cols)
rows - Number of rows.cols - Number of columns.
public GridLayout2(int rows,
int cols,
int hgap,
int vgap)
rows - Number of rows.cols - Number of columns.hgap - Horizontal gap between components.vgap - Vertical gap between components.| Method Detail |
public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerlayoutContainer in class GridLayoutparent - Container to layout.public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerminimumLayoutSize in class GridLayoutparent - Container of interest.public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class GridLayoutparent - Container of interest.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||