Class GridLayoutDesc

java.lang.Object
Direct Known Subclasses:
GridBagLayoutDesc

public class GridLayoutDesc
extends LayoutDesc
The basic descriptor for the GridLayout.
See Also:
LayoutDesc
  • Constructor Details

  • Method Details

    • createManager

      public java.awt.LayoutManager createManager()
      Description copied from class: LayoutDesc
      Based on the configuration given by the annotations on each field, this descriptor tries to create the corresponding LayoutManager.

      Implementations of this method should return null of failure instead of throwing an exception.

      Specified by:
      createManager in class LayoutDesc
      Returns:
      the qualified LayoutManager
    • isAbsolute

      public boolean isAbsolute()
      Description copied from class: LayoutDesc
      Indicates that the implemented LayoutDesc will represent the absolute layout.
      Specified by:
      isAbsolute in class LayoutDesc
      Returns:
      true if the absolute layout should be used; false otherwise
    • createConstraints

      public java.lang.Object createConstraints​(ComponentDesc child)
      Description copied from class: LayoutDesc
      Creates layout constraints if possible by using extra configuration variables by the parent ComponentDesc.

      This method may return null if no constraints are defined or can be used. Another way is to throw an exception in order to show the user a misconfiguration.

      Specified by:
      createConstraints in class LayoutDesc
      Returns:
      the layout constraints for the given child component