Package com.vladsch.flexmark.ext.tables
Class TableCell
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.Node
-
- com.vladsch.flexmark.ext.tables.TableCell
-
- All Implemented Interfaces:
DelimitedNode,TextContainer
public class TableCell extends Node implements DelimitedNode
Table cell of aTableRowcontaining inline nodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableCell.AlignmentHow the cell is aligned horizontally.-
Nested classes/interfaces inherited from interface com.vladsch.flexmark.util.ast.TextContainer
TextContainer.Flags
-
-
Field Summary
Fields Modifier and Type Field Description private TableCell.Alignmentalignmentprotected BasedSequenceclosingMarkerprivate booleanheaderprotected BasedSequenceopeningMarkerprivate intspanprotected BasedSequencetext-
Fields inherited from class com.vladsch.flexmark.util.ast.Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
-
Fields inherited from interface com.vladsch.flexmark.util.ast.TextContainer
F_ADD_SPACES_BETWEEN_NODES, F_FOR_HEADING_ID, F_LINK_ANCHOR, F_LINK_NODE_TEXT, F_LINK_PAGE_REF, F_LINK_TEXT, F_LINK_TEXT_TYPE, F_LINK_URL, F_NO_TRIM_REF_TEXT_END, F_NO_TRIM_REF_TEXT_START, F_NODE_TEXT
-
-
Constructor Summary
Constructors Constructor Description TableCell()TableCell(BasedSequence chars)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableCell.AlignmentgetAlignment()voidgetAstExtra(@NotNull java.lang.StringBuilder out)BasedSequencegetClosingMarker()BasedSequencegetOpeningMarker()@NotNull BasedSequence[]getSegments()intgetSpan()BasedSequencegetText()booleanisHeader()voidmergeWhiteSpace()voidsetAlignment(TableCell.Alignment alignment)voidsetClosingMarker(BasedSequence closingMarker)voidsetHeader(boolean header)voidsetOpeningMarker(BasedSequence openingMarker)voidsetSpan(int span)voidsetText(BasedSequence text)voidtrimWhiteSpace()-
Methods inherited from class com.vladsch.flexmark.util.ast.Node
appendChain, appendChild, astChars, astExtraChars, astString, baseSubSequence, baseSubSequence, countAncestorsOfType, countDirectAncestorsOfType, delimitedSegmentSpan, delimitedSegmentSpanChars, endOfLine, extractChainTo, extractToFirstInChain, getAncestorOfType, getBaseSequence, getBlankLineSibling, getChars, getCharsFromSegments, getChildChars, getChildIterator, getChildOfType, getChildren, getDescendants, getDocument, getEmptyPrefix, getEmptySuffix, getEndLineNumber, getEndOffset, getEndOfLine, getExactChildChars, getFirstChild, getFirstChildAny, getFirstChildAnyNot, getFirstInChain, getGrandParent, getLastBlankLineChild, getLastChild, getLastChildAny, getLastChildAnyNot, getLastInChain, getLeadSegment, getLineColumnAtEnd, getLineNumber, getNext, getNextAny, getNextAnyNot, getNodeName, getNodeOfTypeIndex, getNodeOfTypeIndex, getOldestAncestorOfTypeAfter, getParent, getPrevious, getPreviousAny, getPreviousAnyNot, getReversedChildIterator, getReversedChildren, getReversedDescendants, getSegmentsForChars, getSourceRange, getStartLineNumber, getStartOffset, getStartOfLine, getTextLength, getTrailSegment, hasChildren, hasOrMoreChildren, insertAfter, insertBefore, insertChainAfter, insertChainBefore, isOrDescendantOfType, lineColumnAtIndex, lineColumnAtStart, moveTrailingBlankLines, prependChild, removeChildren, segmentSpan, segmentSpan, segmentSpanChars, segmentSpanChars, segmentSpanChars, segmentSpanCharsToVisible, setChars, setCharsFromContent, setCharsFromContentOnly, setCharsFromSegments, setParent, spanningChars, startOfLine, takeChildren, toAstString, toSegmentSpan, toString, toStringAttributes, unlink
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vladsch.flexmark.util.ast.DelimitedNode
collectText, getChars
-
Methods inherited from interface com.vladsch.flexmark.util.ast.TextContainer
collectEndText
-
-
-
-
Field Detail
-
openingMarker
protected BasedSequence openingMarker
-
text
protected BasedSequence text
-
closingMarker
protected BasedSequence closingMarker
-
header
private boolean header
-
alignment
private TableCell.Alignment alignment
-
span
private int span
-
-
Constructor Detail
-
TableCell
public TableCell()
-
TableCell
public TableCell(BasedSequence chars)
-
-
Method Detail
-
trimWhiteSpace
public void trimWhiteSpace()
-
mergeWhiteSpace
public void mergeWhiteSpace()
-
getOpeningMarker
public BasedSequence getOpeningMarker()
- Specified by:
getOpeningMarkerin interfaceDelimitedNode
-
setOpeningMarker
public void setOpeningMarker(BasedSequence openingMarker)
- Specified by:
setOpeningMarkerin interfaceDelimitedNode
-
getText
public BasedSequence getText()
- Specified by:
getTextin interfaceDelimitedNode
-
setText
public void setText(BasedSequence text)
- Specified by:
setTextin interfaceDelimitedNode
-
getClosingMarker
public BasedSequence getClosingMarker()
- Specified by:
getClosingMarkerin interfaceDelimitedNode
-
setClosingMarker
public void setClosingMarker(BasedSequence closingMarker)
- Specified by:
setClosingMarkerin interfaceDelimitedNode
-
getSpan
public int getSpan()
-
setSpan
public void setSpan(int span)
-
getSegments
@NotNull public @NotNull BasedSequence[] getSegments()
- Specified by:
getSegmentsin classNode
-
getAstExtra
public void getAstExtra(@NotNull @NotNull java.lang.StringBuilder out)- Overrides:
getAstExtrain classNode
-
isHeader
public boolean isHeader()
- Returns:
- whether the cell is a header or not
-
setHeader
public void setHeader(boolean header)
-
getAlignment
public TableCell.Alignment getAlignment()
- Returns:
- the cell alignment
-
setAlignment
public void setAlignment(TableCell.Alignment alignment)
-
-