Class AbsoluteLayout

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
Direct Known Subclasses:
EAbsoluteLayout

public class AbsoluteLayout extends LayoutMgr<AbsoluteData>
AbsoluteLayout is a layout manager.
Author:
Christopher Mindus
  • Constructor Details

    • AbsoluteLayout

      public AbsoluteLayout()
      Creates the layout without name with a null value.
    • AbsoluteLayout

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

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

    • clone

      public AbsoluteLayout clone()
      Creates a clone out of this property. The cloning is overridden by the subclasses in order to handle cloning of its class variables appropriately.
      Overrides:
      clone in class LayoutMgr<AbsoluteData>
    • createDefaultLayoutProp

      public AbsoluteData createDefaultLayoutProp(UIComp uiComp)
      Creates the default LayoutProp to use for a new component that is inserted directly into the UIComps container.
      Specified by:
      createDefaultLayoutProp in class LayoutMgr<AbsoluteData>
      Parameters:
      uiComp - The component requesting the default layout property.
      Returns:
      A new instance of the layout data of this layout manager.
    • getLayoutPropClass

      public Class<AbsoluteData> getLayoutPropClass()
      Returns the class required for this layout property.
      Specified by:
      getLayoutPropClass in class LayoutMgr<AbsoluteData>
      Returns:
      The class for the layout property required.
    • mustHaveWidth

      public boolean mustHaveWidth()
      Does this component require a width?
      Overrides:
      mustHaveWidth in class LayoutMgr<AbsoluteData>
      Returns:
      Returns true if the horizontal scrollbar setting is undefined or set to "visible".
    • mustHaveHeight

      public boolean mustHaveHeight()
      Does this component require a height?
      Overrides:
      mustHaveHeight in class LayoutMgr<AbsoluteData>
      Returns:
      Returns true if the vertical scrollbar setting is undefined or set to "visible".
    • hasWidth0

      protected boolean hasWidth0(AbsoluteData layout)
      Verifies if the layout data has a width.
      Overrides:
      hasWidth0 in class LayoutMgr<AbsoluteData>
      Parameters:
      layout - The layout data.
      Returns:
      true if the width is defined and non-zero, false otherwise.
    • hasHeight0

      protected boolean hasHeight0(AbsoluteData layout)
      Verifies if the layout data has a height.
      Overrides:
      hasHeight0 in class LayoutMgr<AbsoluteData>
      Parameters:
      layout - The layout data.
      Returns:
      true if the height is defined and non-zero, false otherwise.
    • hasContainerLayoutImplicitWidth

      protected boolean hasContainerLayoutImplicitWidth()
      Verifies if this container has an implicit width due to e.g. children.
      Overrides:
      hasContainerLayoutImplicitWidth in class LayoutMgr<AbsoluteData>
      Returns:
      true if an implicit width is present, false (default) otherwise.
    • hasContainerLayoutImplicitHeight

      protected boolean hasContainerLayoutImplicitHeight()
      Verifies if this container has an implicit height due to e.g. children.
      Overrides:
      hasContainerLayoutImplicitHeight in class LayoutMgr<AbsoluteData>
      Returns:
      true if an implicit height is present, false (default) otherwise.