Class BorderData

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

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

    • BorderData

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

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

      public BorderData(Atom propertyAtom, GProp<?>[] properties) throws PropException
      Creates a BorderData 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

    • getRegion

      public int getRegion()
      Gets the region of the component, i.e. the location.
      Returns:
      Region 2, 4, 44, 5, 6, 66, 8, default is 8 (top). Values 44 and 66 are bidi-related.
    • 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, false for failure (i.e. unsupported operation). true is also returned for partial success, i.e. component can set width but not height and both values were to be set.