|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.co.westhawk.tablelayout.TableLayout
public class TableLayout
TableLayout is a layout manager which allows components to be arranged in a tabular form. The TableLayout component has a layout resource which is used to specify the column and row position of each component. Components can span rows and/or columns. Layout options are available to control the initial sizes, justification, and dynamic resizing
| Constructor Summary | |
|---|---|
TableLayout()
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the layout string to the layout |
java.lang.Object |
clone()
Creates a clone of the object. |
void |
columnSpacing(int sp)
Specifies the number of pixels between columns |
void |
forceShrink(boolean force)
Specifies if components should be made smaller than their "preferred" sizes. |
void |
layoutContainer(java.awt.Container target)
Lays out the container in the specified panel |
void |
marginHeight(int i)
The minimum spacing between the top and bottom edges of the components in the Container |
void |
marginWidth(int i)
The minimum spacing between the left and right edges of the components in the Container |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Calculates the minimum size dimensions for the specified panel, given the components in the specified target container |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Calculates the preferred size dimensions for the specified panel, given the components in the specified target container |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout |
void |
rowSpacing(int sp)
Specifies the number of pixels between rows |
void |
sameHeight(java.util.Vector v)
This resource is used to specify the names of components which will be constrained to remain the same heigth as the table shrinks and grows |
void |
sameWidth(java.util.Vector v)
This resource is used to specify the names of components which will be constrained to remain the same width as the table shrinks and grows |
java.lang.String |
toString()
Returns the String representation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableLayout()
| Method Detail |
|---|
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerlayout - represents the wanted layout of the componentcomp - the component to be addedTableLocRecpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize in interface java.awt.LayoutManagertarget - the component to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize in interface java.awt.LayoutManagertarget - the component to be laid outpublic void layoutContainer(java.awt.Container target)
layoutContainer in interface java.awt.LayoutManagertarget - the component to be laid outpublic void sameWidth(java.util.Vector v)
v - the vector of component with the same widthpublic void sameHeight(java.util.Vector v)
v - the vector of component with the same heigthpublic void marginWidth(int i)
i - the spacingpublic void marginHeight(int i)
i - the spacingpublic void forceShrink(boolean force)
force - boolean to indicate shrink should be forcedTableOptspublic void columnSpacing(int sp)
sp - the spacing between columnspublic void rowSpacing(int sp)
sp - the spacing between rowspublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||