|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.builder.w3c.html.XHtmlFormLayout
public class XHtmlFormLayout
A layout manager for html forms. Components flow along rows till a break element is encountered abd then they flow to the next row along the page length
Copyright (c) Xoetrope Ltd., 2002-2006
$Revision: 1.2 $
License: see License.txt
| Field Summary | |
|---|---|
protected XHtmlBuilder |
builder
|
static int |
FILL
|
static int |
PREFERRED
|
| Constructor Summary | |
|---|---|
XHtmlFormLayout(XHtmlBuilder htmlBuilder)
Creates a layout manager that will lay out components along the y axis. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout,
associating it
with the string specified by name. |
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
void |
setAlignment(java.lang.String alignment)
Set the horizontal alignment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PREFERRED
public static final int FILL
protected XHtmlBuilder builder
| Constructor Detail |
|---|
public XHtmlFormLayout(XHtmlBuilder htmlBuilder)
target - the container that needs to be laid out| Method Detail |
|---|
public void setAlignment(java.lang.String alignment)
alignment - the alignment string - left|right|center
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
comp to the layout,
associating it
with the string specified by name.
addLayoutComponent in interface java.awt.LayoutManagername - the string to be associated with the componentcomp - the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - the container to be laid outminimumLayoutSize(java.awt.Container)public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - the component to be laid outpreferredLayoutSize(java.awt.Container)public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - the container to be laid out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||