Package com.jformdesigner.model
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 aLayoutManagerin 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 com.jformdesigner.model.FormObject
NULL_VALUE
-
-
Constructor Summary
Constructors Constructor Description FormLayoutManager(Class<?> managerClass)Constructs a form layout manager object for the specified layout manager class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clones this form component.FormLayoutConstraintsgetConstraints(FormComponent comp)Returns the form layout constraints for the specified form component, ornullthe form component has no constraints.FormContainergetContainer()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.FormLayoutConstraintssetConstraints(FormComponent comp, FormLayoutConstraints constraints)Sets the form layout constraints for a form component.StringtoString()Returns a string representation of the object.-
Methods inherited from class com.jformdesigner.model.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, setPropertyString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
FormLayoutManager
public FormLayoutManager(Class<?> managerClass)
Constructs a form layout manager object for the specified layout manager class.
-
-
Method Detail
-
getLayoutClass
public Class<?> getLayoutClass()
Returns the layout manager class.
-
getConstraints
public FormLayoutConstraints getConstraints(FormComponent comp)
Returns the form layout constraints for the specified form component, ornullthe form component has no constraints.
-
setConstraints
public FormLayoutConstraints setConstraints(FormComponent comp, FormLayoutConstraints constraints)
Sets the form layout constraints for a form component.
-
getContainer
public FormContainer getContainer()
Returns the form container for this object.
-
iterator
public Iterator<Map.Entry<FormComponent,FormLayoutConstraints>> 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
public String toString()
Returns a string representation of the object.- Overrides:
toStringin classFormObject
-
-