Interface TableCellNode<N extends TableCellNode<N>>
-
- All Superinterfaces:
ContentNode<N,TableCellContent>,Element,Node,TableRowContent
- All Known Implementing Classes:
AbstractTableCellNode,TableCell,TableHeader
public interface TableCellNode<N extends TableCellNode<N>> extends TableRowContent, ContentNode<N,TableCellContent>
Describes features that are common totableHeaderandtableCellnodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>background()Returns the background color for the table cell, if one is set.Nbackground(String background)Sets the background color for the table cell.Optional<Integer>colspan()Returns the colspan setting for the table cell, if one is set.NcolspanAndColwidth(Integer colspan, int[] colwidth)Sets the number of columns that the table cell spans, as well as the widths of those columns.Optional<int[]>colwidth()Returns the column widths for the table cell's spanned columns, if set.Ncontent(String content)Ncontent(String... content)booleanisHeader()Optional<Integer>rowspan()Returns the rowspan setting for the table cell, if one is set.Nrowspan(Integer rowspan)Sets the number of rows that the table cell spans.-
Methods inherited from interface com.atlassian.adf.model.node.type.ContentNode
allNodes, allNodesOfType, allNodesOfTypeAsList, clear, content, content, content, content, content, contentClass, copy, isEmpty, removeIf, replaceContent, transformContent, transformDescendants
-
Methods inherited from interface com.atlassian.adf.model.Element
elementType, isSupported, toMap, validate
-
Methods inherited from interface com.atlassian.adf.model.node.Node
appendPlainText, toPlainText
-
-
-
-
Method Detail
-
isHeader
boolean isHeader()
- Returns:
truefor atableHeaderorfalsefor atableCell
-
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 bycolspan(meaning exactly 1 ifcolspanisnull). As an example,colspanAndColwidth(3, new int[] {120, 0, 120})is a valid request.- Returns:
this
-
-