Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.swing
Class FieldLayout  view FieldLayout download FieldLayout.java

java.lang.Object
  extended bycom.eireneh.swing.AbstractLayout
      extended bycom.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.


Field Summary
 
Fields inherited from class com.eireneh.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(java.awt.Container target)
          layout the specified container
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          The minimum layout size for a given container
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          The preferred layout size for a given container
 
Methods inherited from class com.eireneh.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
 

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.

Method Detail

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