com.partnersoft.gui
Class FormLayout
java.lang.Object
com.partnersoft.gui.DelegatingLayoutManager
com.partnersoft.gui.FormLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.awt.LayoutManager2
public class FormLayout
- extends DelegatingLayoutManager
A layout for two-column forms.
It has the standard 2-column form layout,
a column of labels and a column of controls, with the option of adding rows
that span both columns.
This implementation uses GroupLayout, which has a couple of nice properties:
the components are vertically aligned along their baseline, which makes the
left-to-right flow look better, and they are spaced according to the
look-and-feel defaults, which makes the form look more like a native form.
Field labels
should be added, followed by fields, in label, field, label, field, order.
Copyright 2007-2008 Partner Software, Inc.
- Version:
- $Id: FormLayout.java 1614 2008-11-11 19:41:50Z paul $
- Author:
- Russell Cagle, Paul Reavis
|
Constructor Summary |
FormLayout(java.awt.Container panel)
|
| Methods inherited from class com.partnersoft.gui.DelegatingLayoutManager |
getDelegate, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setDelegate, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FormLayout
public FormLayout(java.awt.Container panel)
addLayoutComponent
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
- Specified by:
addLayoutComponent in interface java.awt.LayoutManager2- Overrides:
addLayoutComponent in class DelegatingLayoutManager
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
- Specified by:
addLayoutComponent in interface java.awt.LayoutManager- Overrides:
addLayoutComponent in class DelegatingLayoutManager
getPanel
public java.awt.Container getPanel()