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.RowColLayout
Constructor Summary | |
RowColLayout()
|
Method Summary | |
void | addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Add a component to the layout manager's records. |
boolean | getAdjustLast()
Get accessor for the 'adjust last' flag, which determines whether the last column (row if horizontal) is resized in width (height) to take advantage of any extra space remaining when the other columns (rows) have been laid out |
boolean | getVertical()
Get accessor for the 'vertical' flag. |
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 | setAdjustLast(boolean adjust)
Set accessor for the 'adjust last' flag, which determines whether the last column (row if horizontal) is resized in width (height) to take advantage of any extra space remaining when the other columns (rows) have been laid out |
void | setVertical(boolean vert)
Set accessor for the 'vertical' flag. |
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 RowColLayout()
Method Detail |
public void setAdjustLast(boolean adjust)
adjust
- the new value for the flagpublic boolean getAdjustLast()
public void setVertical(boolean vert)
vert
- true if the new layout should be vertical, false if it
should be horizontalpublic boolean getVertical()
public 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
- would be 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 |