Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.ist.mwt.MarginLayoutManager | +--uk.co.ist.mwt.FormLayoutManager
To find out what 'appropriate' means, consult a good book on Motif...
Constructor Summary | |
FormLayoutManager()
Constructor - sets up appropriate defaults |
Method Summary | |
void | addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Add a component to the layout manager's records. |
void | constrain(java.awt.Component child,
FormLayoutConstraints constr)
Method to set the constraints on a particular child component |
int | getFractionBase()
Accessor for the fraction base (the denominator in the fraction for which position values are the numerator) |
void | layoutContainer(java.awt.Container parent)
Lays out the container. |
java.awt.Dimension | minimumLayoutSize(java.awt.Container parent)
Method to find the minimum size of the parent container with this layout |
java.awt.Dimension | preferredLayoutSize(java.awt.Container parent)
Method to find the preferred size of the parent container with this layout. |
void | removeLayoutComponent(java.awt.Component comp)
Remove a component from the layout manager's records. |
void | setFractionBase(int fb)
Method to set the fraction base (the denominator in the fraction for which position values are the numerator) |
Methods inherited from class uk.co.ist.mwt.MarginLayoutManager | |
addLayoutComponent, getMarginHeight, getMarginWidth, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setMarginHeight, setMarginWidth |
Methods inherited from class java.lang.Object | |
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public FormLayoutManager()
Method Detail |
public void setFractionBase(int fb)
fb
- the new fraction basepublic int getFractionBase()
public void constrain(java.awt.Component child, FormLayoutConstraints constr)
child
- the child component
constr
- the constraints to give it, or null for default
constraintspublic void layoutContainer(java.awt.Container parent)
parent
- the component which needs to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
parent
- the component to be laid outpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
parent
- the component to be laid outpublic void removeLayoutComponent(java.awt.Component comp)
comp
- the component to remove.public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
comp
- would be the component to add.
name
- would be the name with which to add the component.Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |