Class WColumnLayout

    • Constructor Detail

      • WColumnLayout

        public WColumnLayout()
        Creates a column layout with no heading.
      • WColumnLayout

        public WColumnLayout​(String heading)
        Creates a column layout with the given section heading.
        Parameters:
        heading - the heading text.
      • WColumnLayout

        public WColumnLayout​(WHeading heading)
        Creates a column layout with the given heading.
        Parameters:
        heading - the heading.
    • Method Detail

      • setLeftColumn

        public void setLeftColumn​(WComponent content)
        Sets the left column content.
        Parameters:
        content - the content.
      • setLeftColumn

        public void setLeftColumn​(String heading,
                                  WComponent content)
        Sets the left column content.
        Parameters:
        heading - the column heading text.
        content - the content.
      • setLeftColumn

        public void setLeftColumn​(WHeading heading,
                                  WComponent content)
        Sets the left column content.
        Parameters:
        heading - the column heading.
        content - the content.
      • setRightColumn

        public void setRightColumn​(WComponent content)
        Sets the right column content.
        Parameters:
        content - the content.
      • setRightColumn

        public void setRightColumn​(String heading,
                                   WComponent content)
        Sets the right column content.
        Parameters:
        heading - the column heading text.
        content - the content.
      • setRightColumn

        public void setRightColumn​(WHeading heading,
                                   WComponent content)
        Sets the right column content.
        Parameters:
        heading - the column heading.
        content - the content.
      • getLeftColumn

        public WColumn getLeftColumn()
        For the DIMAv2 theme and above, this can be used to change the left column attributes.
        Returns:
        the left column.
      • getRightColumn

        public WColumn getRightColumn()
        For the DIMAv2 theme and above, this can be used to change the right column attributes.
        Returns:
        the right column.
      • hasLeftContent

        public boolean hasLeftContent()
        Returns:
        true if there is content in the left column.
      • hasRightContent

        public boolean hasRightContent()
        Returns:
        true if there is content in the right column.