public class FormLayoutManager extends FormObject implements Iterable<Map.Entry<FormComponent,FormLayoutConstraints>>
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(Class<?> managerClass)
Constructs a form layout manager object for the specified layout manager class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Class<?> |
getLayoutClass()
Returns the layout manager class.
|
Iterator<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.
|
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
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public FormLayoutManager(Class<?> managerClass)
public 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 Iterator<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 Iterable<Map.Entry<FormComponent,FormLayoutConstraints>>
public String toString()
toString
in class FormObject
Copyright (C) 2004-2019 FormDev Software GmbH. All rights reserved.