public class CCell extends CBlockElement
elementPtr| Constructor and Description |
|---|
CCell(long ptr)
Create a table cell element with native pointer.
|
| Modifier and Type | Method and Description |
|---|---|
CDiv |
createDivElement()
Create a div element as a child of this cell.
|
CImage |
createImageElement(java.lang.String path)
Create an image element as a child of this cell.
|
CLineSeparator |
createLineSeparatorElement()
Create a line separator element as a child of this cell.
|
CList |
createListElement()
Create a list element as a child of this cell.
|
CParagraph |
createParagraphElement()
Create a paragraph element as a child of this cell.
|
CParagraph |
createParagraphElement(java.lang.String text)
Create a paragraph element as a child of this cell with initial text.
|
CTable |
createTableElement(CUnitValue[] colWidths)
Create a table element as a child of this cell, with column widths as unit values.
|
CTable |
createTableElement(float[] colWidths)
Create a table element as a child of this cell, with column widths in points.
|
CTable |
createTableElement(int numColumns)
Create a table element as a child of this cell, specifying number of columns.
|
CText |
createTextElement(java.lang.String text)
Create a text element as a child of this cell.
|
int |
getCol()
Get the column index of this cell.
|
int |
getColspan()
Get colspan of this cell.
|
int |
getRow()
Get the row index of this cell.
|
int |
getRowspan()
Get rowspan of this cell.
|
CElementType |
getType()
Get element type.
|
getHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidth, setHeight, setHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setVerticalAlignment, setWidth, setWidthaddStyle, getChildren, getStyles, hasProperty, isAbsolute, isEmptydeleteProperty, getProperties, getStrokeColor, getStrokeWidth, hasProperty, setAbsolutePosition, setAbsolutePosition, setBackgroundColor, setBackgroundImage, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setFontColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setHorizontalAlignment, setInlineVerticalAlignment, setOpacity, setStrokeColor, setStrokeWidth, setTextAlignment, setUnderline, setWordSpacingpublic CCell(long ptr)
ptr - Native cell pointer/handle.public CElementType getType()
CElementType.ELEMENT_CELL.public int getRow()
public int getCol()
public int getRowspan()
public int getColspan()
public CText createTextElement(java.lang.String text)
text - Text content.CText element instance.public CDiv createDivElement()
CDiv element instance.public CTable createTableElement(float[] colWidths)
colWidths - Column widths array (unit is implementation-defined; commonly points).CTable element instance.public CTable createTableElement(CUnitValue[] colWidths)
colWidths - Column widths array as CUnitValue.CTable element instance.public CTable createTableElement(int numColumns)
numColumns - Number of columns.CTable element instance.public CParagraph createParagraphElement()
CParagraph element instance.public CParagraph createParagraphElement(java.lang.String text)
text - Paragraph text.CParagraph element instance.public CList createListElement()
CList element instance.public CImage createImageElement(java.lang.String path)
path - Image path or URL (depends on native implementation support).CImage element instance.public CLineSeparator createLineSeparatorElement()
CLineSeparator element instance.