Class Div

    • Constructor Detail

      • Div

        public Div()
        Creates a new Div instance.
    • Method Detail

      • add

        public Div add​(IBlockElement element)
        Adds any block element to the div's contents.
        Parameters:
        element - a BlockElement
        Returns:
        this Element
      • add

        public Div add​(Image element)
        Adds an image to the div's contents.
        Parameters:
        element - an Image
        Returns:
        this Element
      • add

        public Div add​(AreaBreak areaBreak)
        Adds an area break to the div's contents.
        Parameters:
        areaBreak - an AreaBreak
        Returns:
        this Element
      • setFillAvailableArea

        public Div setFillAvailableArea​(boolean fillArea)
        Defines whether the Div should occupy all the space left in the available area in case it is the last element in this area.
        Parameters:
        fillArea - defines whether the available area should be filled
        Returns:
        this Div
      • setFillAvailableAreaOnSplit

        public Div setFillAvailableAreaOnSplit​(boolean fillAreaOnSplit)
        Defines whether the Div should occupy all the space left in the available area in case the area has been split and it is the last element in the split part of this area.
        Parameters:
        fillAreaOnSplit - defines whether the available area should be filled
        Returns:
        this Div