|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.lib.PWidget.LabeledPairLayout
Defines a layout for a component pair.
Eg : (label) (textfield)
Taken and adapted from the JDK demo Metalworks.
LayoutManager| Field Summary | |
private java.util.Vector |
fields
The vector that contains the primary column components. |
private java.util.Vector |
labels
The vector that contains the primary column components. |
static java.lang.String |
LEFT_COMPONENT
Defines the components (labels) to be included on the left side. |
static java.lang.String |
RIGHT_COMPONENT
Defines the components (fields) to be included on the right side. |
| Constructor Summary | |
LabeledPairLayout()
Creates a new labeled pair layout instance. |
|
| 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)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String LEFT_COMPONENT
public static final java.lang.String RIGHT_COMPONENT
private final java.util.Vector labels
private java.util.Vector fields
| Constructor Detail |
public LabeledPairLayout()
| Method Detail |
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
name - The component name.comp - The component to be added.public 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 out.public 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 be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||