org.crosswire.common.swing
Class FieldLayout

java.lang.Object
  extended by org.crosswire.common.swing.AbstractLayout
      extended by org.crosswire.common.swing.FieldLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, 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:
JSword 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, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
The copyright to this program is held by it's authors.

Version:
$Id: FieldLayout.java,v 1.8 2005/03/06 20:21:59 dmsmith Exp $
Author:
Joe Walker [joe at eireneh dot com], Ideas from JDJ article by Claude Duguay
See Also:
Licence, Serialized Form

Field Summary
private static long serialVersionUID
          Serialization ID
 
Fields inherited from class org.crosswire.common.swing.AbstractLayout
hgap, vgap
 
Constructor Summary
FieldLayout()
          A default FieldLayout with intercomponent spacing of 0.
FieldLayout(int hgap, int vgap)
          FieldLayout with specified intercomponent spacings.
 
Method Summary
 void layoutContainer(Container target)
          layout the specified container
 Dimension minimumLayoutSize(Container target)
          The minimum layout size for a given container
 Dimension preferredLayoutSize(Container target)
          The preferred layout size for a given container
 
Methods inherited from class org.crosswire.common.swing.AbstractLayout
addLayoutComponent, addLayoutComponent, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, maximumLayoutSize, removeLayoutComponent, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serialization ID

See Also:
Constant Field Values
Constructor Detail

FieldLayout

public FieldLayout()
A default FieldLayout with intercomponent spacing of 0.


FieldLayout

public FieldLayout(int hgap,
                   int vgap)
FieldLayout with specified intercomponent spacings.

Parameters:
hgap - The horizontal gaps
vgap - The vertical gaps
Method Detail

minimumLayoutSize

public Dimension minimumLayoutSize(Container target)
The minimum layout size for a given container


preferredLayoutSize

public Dimension preferredLayoutSize(Container target)
The preferred layout size for a given container


layoutContainer

public void layoutContainer(Container target)
layout the specified container


Copyright ? 2003-2004