JFormDesigner 5.0.4 Runtime API

com.jformdesigner.model
Class FormLayoutConstraints

java.lang.Object
  extended by com.jformdesigner.model.FormObject
      extended by com.jformdesigner.model.FormLayoutConstraints

public class FormLayoutConstraints
extends FormObject

A form layout constraints represents a constraints object (e.g. java.awt.GridBagConstraints) in the form model. It has a layout constraints class and constraints properties.

Take a look at the example source code (FormSaverExamples.java) for details.


Field Summary
static java.lang.String PROP_VALUE
           
 
Fields inherited from class com.jformdesigner.model.FormObject
NULL_VALUE
 
Constructor Summary
FormLayoutConstraints(java.lang.Class<?> constraintsClass)
          Constructs a form layout constraints object for the specified class.
FormLayoutConstraints(java.lang.Class<?> constraintsClass, java.lang.Object value)
          Constructs a form layout constraints object using the specified value.
 
Method Summary
 java.lang.Object clone()
          Clones this form component.
 FormComponent getComponent()
          Returns the form component for this object.
 java.lang.Class<?> getConstraintsClass()
          Returns the layout constraints class.
 FormLayoutManager getLayout()
          Returns the form layout manager for this object.
 boolean isEqual(FormLayoutConstraints constraints)
          Compares this constraints with the given constraints.
 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
 

Field Detail

PROP_VALUE

public static final java.lang.String PROP_VALUE
See Also:
Constant Field Values
Constructor Detail

FormLayoutConstraints

public FormLayoutConstraints(java.lang.Class<?> constraintsClass)
Constructs a form layout constraints object for the specified class.


FormLayoutConstraints

public FormLayoutConstraints(java.lang.Class<?> constraintsClass,
                             java.lang.Object value)
Constructs a form layout constraints object using the specified value. The constraints class is set to the given class and the value into the property PROP_VALUE.

Since:
4.0.9
Method Detail

clone

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

Overrides:
clone in class java.lang.Object

getConstraintsClass

public java.lang.Class<?> getConstraintsClass()
Returns the layout constraints class.


getLayout

public FormLayoutManager getLayout()
Returns the form layout manager for this object.


getComponent

public FormComponent getComponent()
Returns the form component for this object.


isEqual

public boolean isEqual(FormLayoutConstraints constraints)
Compares this constraints with the given constraints.


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.