|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tigris.swidgets.LabelledLayout
This layout manager lines up components in 2 columns. All JLabels are the first column and any component the JLabel is registered with is in a second column next to the label.
The height of each row is the largest minimum height of the 2 components.
The width of the first column is the largest preferred width of the 2 components.
The width of the 2nd column is any left over space or the maximum width of the component, whichever is the least.
LabelledLayout can show multiple panels of label/component pairs. The seperation of these panels is indicated by adding a Seperator component to the parent component. Labelled layout starts a new panel when detecting this Seperator.
| Constructor Summary | |
LabelledLayout()
Construct a new LabelledLayout. |
|
LabelledLayout(boolean ignoreSplitters)
Construct a new LabelledLayout. |
|
LabelledLayout(int hgap,
int vgap)
Construct a new horizontal LabelledLayout with the specified cell spacing. |
|
| Method Summary | |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the specified name to the layout. |
int |
getHgap()
|
static org.tigris.swidgets.Seperator |
getSeperator()
|
int |
getVgap()
|
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Required by LayoutManager. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Determines the preferred size of the container argument using this labelled layout. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component with the specified name from the layout. |
void |
setHgap(int hgap)
|
void |
setVgap(int vgap)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LabelledLayout()
public LabelledLayout(boolean ignoreSplitters)
public LabelledLayout(int hgap,
int vgap)
| 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.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerLayoutManager.minimumLayoutSize(java.awt.Container)public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerLayoutManager.layoutContainer(java.awt.Container)public static org.tigris.swidgets.Seperator getSeperator()
public int getHgap()
public void setHgap(int hgap)
public int getVgap()
public void setVgap(int vgap)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||