Class SwapData

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

public class SwapData extends LayoutProp implements ILayoutDataAlignX, ILayoutDataAlignY
The SwapData is the layout data for components in a container with SwapLayout.
Author:
Christopher Mindus
  • Constructor Details

    • SwapData

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

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

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

    • getDefaultAlignX

      public int getDefaultAlignX()
      Returns the default alignment value in Y.
      Specified by:
      getDefaultAlignX in interface ILayoutDataAlignX
      Returns:
      4 as fill is the default.
    • getDefaultAlignY

      public int getDefaultAlignY()
      Returns the default alignment value in Y.
      Specified by:
      getDefaultAlignY in interface ILayoutDataAlignY
      Returns:
      4 as fill is the default.