java.lang.Object
com.eireneh.swing.AbstractLayout
com.eireneh.swing.FieldLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable
- public class FieldLayout
- extends AbstractLayout
Layout Components along with labels that describe them.
We ought to consider the Form layout idea that I dreamt
up earlier when considering updates to this.
Distribution Licence:
Project B is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License,
version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
The License is available on the internet
here, by writing to
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.
|
|
Constructor Summary |
FieldLayout()
A default FieldLayout with intercomponent
spacing of 0. |
FieldLayout(int hgap,
int vgap)
FieldLayout with specified intercomponent
spacings. |
| Methods inherited from class com.eireneh.swing.AbstractLayout |
addLayoutComponent, addLayoutComponent, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, maximumLayoutSize, removeLayoutComponent, setHgap, setVgap, toString |
FieldLayout
public FieldLayout()
- A default FieldLayout with intercomponent
spacing of 0.
FieldLayout
public FieldLayout(int hgap,
int vgap)
- FieldLayout with specified intercomponent
spacings.
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
- The minimum layout size for a given container
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
- The preferred layout size for a given container
layoutContainer
public void layoutContainer(java.awt.Container target)
- layout the specified container