Class FlexData

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, ILayoutAssumeHeight, ILayoutAssumeWidth, ILayoutDataAlignX, ILayoutDataAlignY, ILayoutUnitHeight, ILayoutUnitWidth, Cloneable
Direct Known Subclasses:
EFlexData

The FlexData is the layout data for components in a container with FlexLayout.
Author:
Christopher Mindus
  • Constructor Details

    • FlexData

      public FlexData()
      Creates a FlexData container without name and with a null value.
    • FlexData

      public FlexData(Atom propertyAtom)
      Creates a FlexData container with the specified name with a null value.
      Parameters:
      propertyAtom - the property atom.
    • FlexData

      public FlexData(Atom propertyAtom, GProp<?>[] properties) throws PropException
      Creates a FlexData container with the specified name and properties.
      Parameters:
      propertyAtom - the property atom.
      properties - the property array value for the property.
      Throws:
      PropException - as structural changes in containers on client is prohibited.
  • Method Details

    • canSetWidth

      public boolean canSetWidth()
      Verifies if the component width can be set.
      Overrides:
      canSetWidth in class LayoutProp
      Returns:
      true if the width can be set.
    • canSetHeight

      public boolean canSetHeight()
      Verifies if the component height can be set.
      Overrides:
      canSetHeight in class LayoutProp
      Returns:
      true if the height can be set.
    • setSize

      public boolean setSize(GUnit width, GUnit height, IComplexOperation op)
      Assigns the component width and/or height.
      Overrides:
      setSize in class LayoutProp
      Parameters:
      width - The width to set, null for no change.
      height - The height to set, null for no change.
      op - The complex operation interface for undo/redo operations, null for none.
      Returns:
      true for success.