JFormDesigner 5.0.4 Runtime API

com.jformdesigner.model
Class FormLayoutManager

java.lang.Object
  extended by com.jformdesigner.model.FormObject
      extended by com.jformdesigner.model.FormLayoutManager
All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<FormComponent,FormLayoutConstraints>>

public class FormLayoutManager
extends FormObject
implements java.lang.Iterable<java.util.Map.Entry<FormComponent,FormLayoutConstraints>>

A form layout manager represents a 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.


Field Summary
 
Fields inherited from class com.jformdesigner.model.FormObject
NULL_VALUE
 
Constructor Summary
FormLayoutManager(java.lang.Class<?> managerClass)
          Constructs a form layout manager object for the specified layout manager class.
 
Method Summary
 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.
 
Methods inherited from class com.jformdesigner.model.FormObject
getProperties, getProperty, getProperty, getPropertyBoolean, getPropertyBoolean, getPropertyCount, getPropertyDouble, getPropertyDouble, getPropertyInt, getPropertyInt, getPropertyNames, getPropertyString, getPropertyString, getReferenceCount, properties, propertyNames, setProperty, setProperty, setProperty, setPropertyBoolean, setPropertyBoolean, setPropertyDouble, setPropertyDouble, setPropertyInt, setPropertyInt, setPropertyString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormLayoutManager

public FormLayoutManager(java.lang.Class<?> managerClass)
Constructs a form layout manager object for the specified layout manager class.

Method Detail

clone

public java.lang.Object clone()
Clones this form component.

Overrides:
clone in class java.lang.Object

getLayoutClass

public java.lang.Class<?> getLayoutClass()
Returns the layout manager class.


getConstraints

public FormLayoutConstraints getConstraints(FormComponent comp)
Returns the form layout constraints for the specified form component, or null the 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 java.util.Iterator<java.util.Map.Entry<FormComponent,FormLayoutConstraints>> iterator()
Returns an iterator over the constraints in this object. Iterator.next() returns an java.util.Map.Entry where the key is the FormComponent and the value is the FormLayoutConstraints.

Specified by:
iterator in interface java.lang.Iterable<java.util.Map.Entry<FormComponent,FormLayoutConstraints>>
Since:
3.0

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class FormObject

JFormDesigner 5.0.4 Runtime API

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.