|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.gui.FlexGridLayout
public class FlexGridLayout
Works like a GridLayout with variable sized rows and columns a la GridBagLayout.
| Constructor Summary | |
|---|---|
FlexGridLayout(int rows,
int cols)
Creates a FlexGridLayout with the specified rows and columns. |
|
FlexGridLayout(int rows,
int cols,
int hgap,
int vgap)
Creates a grid layout with the specified rows, columns, horizontal gap, and vertical gap. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the specified name to the layout. |
void |
layoutContainer(java.awt.Container parent)
Lays out the container in the specified panel. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the minimum dimensions needed to layout the components contained in the specified panel. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns the preferred dimensions for this layout given the components int the specified panel. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
java.lang.String |
toString()
Returns the String representation of this GridLayout's values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FlexGridLayout(int rows,
int cols)
rows - the rowscols - the columns
public FlexGridLayout(int rows,
int cols,
int hgap,
int vgap)
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 variablevgap - the vertical gap variable
java.lang.IllegalArgumentException - If the rows and columns are invalid.| Method Detail |
|---|
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - the name of the componentcomp - the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - the component which needs to be laid outminimumLayoutSize(java.awt.Container)public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - the component which needs to be laid outpreferredLayoutSize(java.awt.Container)public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - the specified component being laid outContainerpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||