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 Details

  • Constructor Details

    • 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 property PROP_VALUE.
      Since:
      4.0.9
  • Method Details

    • clone

      public Object clone()
      Clones this form component.
      Overrides:
      clone in class Object
    • 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:
      toString in class FormObject