Interface TableCellNode<N extends TableCellNode<N>>

    • Method Detail

      • isHeader

        boolean isHeader()
        Returns:
        true for a tableHeader or false for a tableCell
      • background

        Optional<String> background()
        Returns the background color for the table cell, if one is set.
        Returns:
        the background color for the table cell, or empty() if not set
      • background

        N background​(@Nullable
                     String background)
        Sets the background color for the table cell.
        Parameters:
        background - short or long hex color code or HTML color name
        Returns:
        this
      • rowspan

        Optional<Integer> rowspan()
        Returns the rowspan setting for the table cell, if one is set.
        Returns:
        the rowspan setting for the table cell, or empty() if not set
      • rowspan

        N rowspan​(@Nullable
                  Integer rowspan)
        Sets the number of rows that the table cell spans.
        Parameters:
        rowspan - a positive integer, default 1.
        Returns:
        this
      • colspan

        Optional<Integer> colspan()
        Returns the colspan setting for the table cell, if one is set.
        Returns:
        the colspan setting for the table cell, or empty() if not set
      • colwidth

        Optional<int[]> colwidth()
        Returns the column widths for the table cell's spanned columns, if set.
        Returns:
        the column widths for the table cell's spanned columns, or empty() if not set
      • colspanAndColwidth

        N colspanAndColwidth​(@Nullable
                             Integer colspan,
                             @Nullable
                             int[] colwidth)
        Sets the number of columns that the table cell spans, as well as the widths of those columns.
        Parameters:
        colspan - a positive integer, default 1.
        colwidth - an array of non-negative integers, at least one of which is positive, and with exactly one value for each of the columns counted by colspan (meaning exactly 1 if colspan is null). As an example, colspanAndColwidth(3, new int[] {120, 0, 120}) is a valid request.
        Returns:
        this
      • content

        N content​(String content)
      • content

        N content​(String... content)