ca.sqlpower.architect.swingui
Class FormLayout
java.lang.Object
ca.sqlpower.architect.swingui.FormLayout
- All Implemented Interfaces:
- java.awt.LayoutManager
public class FormLayout
- extends java.lang.Object
- implements java.awt.LayoutManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormLayout
public FormLayout()
FormLayout
public FormLayout(int hgap,
int vgap)
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
- Specified by:
addLayoutComponent in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
- Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Lays out the container as a 2-column form. Labels go in the
left column and input fields go in the right column.
The left column will always be as wide as its widest
component (so that the labels always fit), and the right column
will be as wide as leftover space permits. Leftover space is
defined as the parent container's width minus its left and
right insets, this layout's hgap, and the left column width.
- Specified by:
layoutContainer in interface java.awt.LayoutManager
Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca