Package com.jformdesigner.model
Class FormLayoutConstraints
- java.lang.Object
-
- com.jformdesigner.model.FormObject
-
- 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
Fields Modifier and Type Field Description static StringPROP_VALUE-
Fields inherited from class com.jformdesigner.model.FormObject
NULL_VALUE
-
-
Constructor Summary
Constructors Constructor Description FormLayoutConstraints(Class<?> constraintsClass)Constructs a form layout constraints object for the specified class.FormLayoutConstraints(Class<?> constraintsClass, Object value)Constructs a form layout constraints object using the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clones this form component.FormComponentgetComponent()Returns the form component for this object.Class<?>getConstraintsClass()Returns the layout constraints class.FormLayoutManagergetLayout()Returns the form layout manager for this object.booleanisEqual(FormLayoutConstraints constraints)Compares this constraints with the given constraints.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
-
-
-
-
Field Detail
-
PROP_VALUE
public static final String PROP_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FormLayoutConstraints
public FormLayoutConstraints(Class<?> constraintsClass)
Constructs a form layout constraints object for the specified class.
-
FormLayoutConstraints
public FormLayoutConstraints(Class<?> constraintsClass, 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 propertyPROP_VALUE.- Since:
- 4.0.9
-
-
Method Detail
-
getConstraintsClass
public 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 String toString()
Returns a string representation of the object.- Overrides:
toStringin classFormObject
-
-