Top Description Inners Fields Constructors Methods
com.vladsch.flexmark.ext.tables

public Class TableCell

extends Node
implements DelimitedNode
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.util.ast.DelimitedNode, com.vladsch.flexmark.util.ast.TextContainer
Imports
com.vladsch.flexmark.ast.Text, .WhiteSpace, com.vladsch.flexmark.ast.util.TextNodeConverter, com.vladsch.flexmark.util.ast.DelimitedNode, .Node, com.vladsch.flexmark.util.html.CellAlignment, com.vladsch.flexmark.util.sequence.BasedSequence, org.jetbrains.annotations.NotNull

Table cell of a TableRow containing inline nodes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
TableCell.Alignment

How the cell is aligned horizontally.

Field Summary

Modifier and TypeField and Description
private TableCell.Alignment
protected BasedSequence
private boolean
protected BasedSequence
private int
protected BasedSequence
Inherited from com.vladsch.flexmark.util.ast.Node:
AST_ADAPTEREMPTY_SEGMENTSSPLICE

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public TableCell.Alignment

Returns:

the cell alignment
getAlignment
()

public void
public BasedSequence
public BasedSequence
public @NotNull BasedSequence[]
public int
public BasedSequence
public boolean

Returns:

whether the cell is a header or not
isHeader
()

public void
public void
public void
public void
setHeader(boolean header)

public void
public void
setSpan(int span)

public void
public void
Inherited from com.vladsch.flexmark.util.ast.Node:
appendChainappendChildastCharsastExtraCharsastStringbaseSubSequencebaseSubSequencecountAncestorsOfTypecountDirectAncestorsOfTypedelimitedSegmentSpandelimitedSegmentSpanCharsendOfLineextractChainToextractToFirstInChaingetAncestorOfTypegetAstExtragetBaseSequencegetBlankLineSiblinggetCharsgetCharsFromSegmentsgetChildCharsgetChildIteratorgetChildOfTypegetChildrengetDescendantsgetDocumentgetEmptyPrefixgetEmptySuffixgetEndLineNumbergetEndOffsetgetEndOfLinegetExactChildCharsgetFirstChildgetFirstChildAnygetFirstChildAnyNotgetFirstInChaingetGrandParentgetLastBlankLineChildgetLastChildgetLastChildAnygetLastChildAnyNotgetLastInChaingetLeadSegmentgetLineColumnAtEndgetLineNumbergetNextgetNextAnygetNextAnyNotgetNodeNamegetNodeOfTypeIndexgetNodeOfTypeIndexgetOldestAncestorOfTypeAftergetParentgetPreviousgetPreviousAnygetPreviousAnyNotgetReversedChildIteratorgetReversedChildrengetReversedDescendantsgetSegmentsForCharsgetSourceRangegetStartLineNumbergetStartOffsetgetStartOfLinegetTextLengthgetTrailSegmenthasChildrenhasOrMoreChildreninsertAfterinsertBeforeinsertChainAfterinsertChainBeforeisOrDescendantOfTypelineColumnAtIndexlineColumnAtStartmoveTrailingBlankLinesprependChildremoveChildrensegmentSpansegmentSpansegmentSpanCharssegmentSpanCharssegmentSpanCharssegmentSpanCharsToVisiblesetCharssetCharsFromContentsetCharsFromContentOnlysetCharsFromSegmentssetParentspanningCharsstartOfLinetakeChildrentoAstStringtoSegmentSpantoStringtoStringAttributesunlink

Field Detail

alignmentback to summary
private TableCell.Alignment alignment
closingMarkerback to summary
protected BasedSequence closingMarker
openingMarkerback to summary
protected BasedSequence openingMarker
spanback to summary
private int span
textback to summary
protected BasedSequence text

Constructor Detail

TableCellback to summary
public TableCell()
TableCellback to summary
public TableCell(BasedSequence chars)

Method Detail

getAlignmentback to summary
public TableCell.Alignment getAlignment()
Returns:TableCell.Alignment

the cell alignment

getAstExtraback to summary
public void getAstExtra(@NotNull StringBuilder out)
Annotations
@Override
getClosingMarkerback to summary
public BasedSequence getClosingMarker()

Implements com.vladsch.flexmark.util.ast.DelimitedNode.getClosingMarker.

Annotations
@Override
getOpeningMarkerback to summary
public BasedSequence getOpeningMarker()

Implements com.vladsch.flexmark.util.ast.DelimitedNode.getOpeningMarker.

Annotations
@Override
getSegmentsback to summary
public @NotNull BasedSequence[] getSegments()

Implements abstract com.vladsch.flexmark.util.ast.Node.getSegments.

Annotations
@NotNull
@Override
getSpanback to summary
public int getSpan()
getTextback to summary
public BasedSequence getText()

Implements com.vladsch.flexmark.util.ast.DelimitedNode.getText.

Annotations
@Override
isHeaderback to summary
public boolean isHeader()
Returns:boolean

whether the cell is a header or not

mergeWhiteSpaceback to summary
public void mergeWhiteSpace()
setAlignmentback to summary
public void setAlignment(TableCell.Alignment alignment)
setClosingMarkerback to summary
public void setClosingMarker(BasedSequence closingMarker)

Implements com.vladsch.flexmark.util.ast.DelimitedNode.setClosingMarker.

Annotations
@Override
setHeaderback to summary
public void setHeader(boolean header)
setOpeningMarkerback to summary
public void setOpeningMarker(BasedSequence openingMarker)

Implements com.vladsch.flexmark.util.ast.DelimitedNode.setOpeningMarker.

Annotations
@Override
setSpanback to summary
public void setSpan(int span)
setTextback to summary
public void setText(BasedSequence text)

Implements com.vladsch.flexmark.util.ast.DelimitedNode.setText.

Annotations
@Override
trimWhiteSpaceback to summary
public void trimWhiteSpace()
com.vladsch.flexmark.ext.tables back to summary

public final Enum TableCell.Alignment

extends Enum<TableCell.Alignment>
Class Inheritance

How the cell is aligned horizontally.

Field Summary

Modifier and TypeField and Description
public static final TableCell.Alignment
public static final TableCell.Alignment
public static final TableCell.Alignment

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public CellAlignment
public static TableCell.Alignment
public static TableCell.Alignment[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CENTERback to summary
public static final TableCell.Alignment CENTER
LEFTback to summary
public static final TableCell.Alignment LEFT
RIGHTback to summary
public static final TableCell.Alignment RIGHT

Constructor Detail

Alignmentback to summary
private Alignment()

Method Detail

cellAlignmentback to summary
public CellAlignment cellAlignment()
valueOfback to summary
public static TableCell.Alignment valueOf(String name)
valuesback to summary
public static TableCell.Alignment[] values()