Class FormLayoutManager
java.lang.Object
com.jformdesigner.model.FormObject
com.jformdesigner.model.FormLayoutManager
- All Implemented Interfaces:
Iterable<Map.Entry<FormComponent, FormLayoutConstraints>>
public class FormLayoutManager
extends FormObject
implements Iterable<Map.Entry<FormComponent, FormLayoutConstraints>>
A form layout manager represents a
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.
-
Field Summary
Fields inherited from class FormObject
NULL_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionFormLayoutManager(Class<?> managerClass) Constructs a form layout manager object for the specified layout manager class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this form component.getConstraints(FormComponent comp) Returns the form layout constraints for the specified form component, ornullthe form component has no constraints.Returns the form container for this object.Class<?> Returns the layout manager class.iterator()Returns an iterator over the constraints in this object.setConstraints(FormComponent comp, FormLayoutConstraints constraints) Sets the form layout constraints for a form component.toString()Returns a string representation of the object.Methods inherited from class FormObject
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, setPropertyStringMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
FormLayoutManager
Constructs a form layout manager object for the specified layout manager class.
-
-
Method Details
-
clone
-
getLayoutClass
Returns the layout manager class. -
getConstraints
Returns the form layout constraints for the specified form component, ornullthe form component has no constraints. -
setConstraints
Sets the form layout constraints for a form component. -
getContainer
Returns the form container for this object. -
iterator
Returns an iterator over the constraints in this object.Iterator.next()returns anjava.util.Map.Entrywhere the key is the FormComponent and the value is the FormLayoutConstraints.- Specified by:
iteratorin interfaceIterable<Map.Entry<FormComponent, FormLayoutConstraints>>- Since:
- 3.0
-
toString
Returns a string representation of the object.- Overrides:
toStringin classFormObject
-