|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbecker.gui.FormLayout
public class FormLayout
A layout manager that arranges components in a double column. In most
cases the left column will hold a label and the right column will hold a
component the user can manipulate. Preferred component sizes are respected
as much as possible. Components in the left column are right justified;
components in the right column are left justified.
Constructor Summary | |
---|---|
FormLayout()
Construct a new FormLayout object. |
|
FormLayout(int hGap,
int vGap)
Construct a new FormLayout object. |
Method Summary | |
---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
layoutContainer(Container parent)
Lays out the container in the specified panel. |
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container. |
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormLayout()
public FormLayout(int hGap, int vGap)
hGap
- the number of hortizontal pixels between componentsvGap
- the number of vertical pixels between componentsMethod Detail |
---|
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- the component namecomp
- the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component to be removedpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
parent
- the component to be laid outminimumLayoutSize(java.awt.Container)
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- the component to be laid outpreferredLayoutSize(java.awt.Container)
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- the component which needs to be laid out
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |