public class FormLayoutManager extends FormObject implements java.lang.Iterable<java.util.Map.Entry<FormComponent,FormLayoutConstraints>>
java.awt.LayoutManager
in the form model.
It has a layout manager class, layout properties and constraints of child components.
Take a look at the example source code (FormSaverExamples.java) for details.
NULL_VALUE
Constructor and Description |
---|
FormLayoutManager(java.lang.Class<?> managerClass)
Constructs a form layout manager object for the specified layout manager class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this form component.
|
FormLayoutConstraints |
getConstraints(FormComponent comp)
Returns the form layout constraints for the specified form component,
or
null the form component has no constraints. |
FormContainer |
getContainer()
Returns the form container for this object.
|
java.lang.Class<?> |
getLayoutClass()
Returns the layout manager class.
|
java.util.Iterator<java.util.Map.Entry<FormComponent,FormLayoutConstraints>> |
iterator()
Returns an iterator over the constraints in this object.
|
FormLayoutConstraints |
setConstraints(FormComponent comp,
FormLayoutConstraints constraints)
Sets the form layout constraints for a form component.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
equals, getClientProperty, getProperties, getProperty, getProperty, getPropertyBoolean, getPropertyBoolean, getPropertyCount, getPropertyDouble, getPropertyDouble, getPropertyInt, getPropertyInt, getPropertyNames, getPropertyString, getPropertyString, getReferenceCount, hashCode, properties, propertyNames, putClientProperty, setProperty, setProperty, setProperty, setPropertyBoolean, setPropertyBoolean, setPropertyDouble, setPropertyDouble, setPropertyInt, setPropertyInt, setPropertyString
public FormLayoutManager(java.lang.Class<?> managerClass)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Class<?> getLayoutClass()
public FormLayoutConstraints getConstraints(FormComponent comp)
null
the form component has no constraints.public FormLayoutConstraints setConstraints(FormComponent comp, FormLayoutConstraints constraints)
public FormContainer getContainer()
public java.util.Iterator<java.util.Map.Entry<FormComponent,FormLayoutConstraints>> iterator()
Iterator.next()
returns an java.util.Map.Entry
where the key is the FormComponent and the value is the FormLayoutConstraints.iterator
in interface java.lang.Iterable<java.util.Map.Entry<FormComponent,FormLayoutConstraints>>
public java.lang.String toString()
toString
in class FormObject
Copyright (C) 2004-2017 FormDev Software GmbH. All rights reserved.