Class AbsoluteData

    • Constructor Detail

      • AbsoluteData

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

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

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

      • canSetPosition

        public boolean canSetPosition()
        Verifies if the component position can be set.
        Overrides:
        canSetPosition in class LayoutProp
        Returns:
        true if the X/Y positions can be set.
      • setPosition

        public boolean setPosition​(GUnit x,
                                   GUnit y,
                                   IComplexOperation op)
        Assigns the composite X and/or Y position.
        Overrides:
        setPosition in class LayoutProp
        Parameters:
        x - The X position to set, null for no change.
        y - The Y position 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).
      • 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.