openfuture.util.layout
Class XmFormLayout

java.lang.Object
  |
  +--openfuture.util.layout.XmFormLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class XmFormLayout
extends java.lang.Object
implements java.awt.LayoutManager


Constructor Summary
XmFormLayout(java.lang.String constraintsURLOrFile)
          The constructor for reading constraints from file or URL
XmFormLayout(java.lang.String[] newConstraints)
          The constructor.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component component)
          Add a component.
 void layoutContainer(java.awt.Container parent)
          Reshape all components in the container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          XmFormLayout knowns only one size (the preferred size).
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component oldComponent)
          Removes a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmFormLayout

public XmFormLayout(java.lang.String[] newConstraints)
The constructor.

XmFormLayout

public XmFormLayout(java.lang.String constraintsURLOrFile)
The constructor for reading constraints from file or URL
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component component)
Add a component.
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Reshape all components in the container. Typically, this causes a call to this.reconstrain() only the first time.
Specified by:
layoutContainer in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
XmFormLayout knowns only one size (the preferred size).
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component oldComponent)
Removes a component. This isn't particularly fast, but it is rarely called, if ever.
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.