public class CDiv extends CBlockElement
elementPtr| Constructor and Description |
|---|
CDiv(long ptr)
Create a div element with native pointer.
|
| Modifier and Type | Method and Description |
|---|---|
CDiv |
createDivElement()
Create a nested div element as a child of this div.
|
CImage |
createImageElement(java.lang.String path)
Create an image element as a child of this div.
|
CLineSeparator |
createLineSeparatorElement()
Create a line separator element as a child of this div.
|
CList |
createListElement()
Create a list element as a child of this div.
|
CParagraph |
createParagraphElement()
Create a paragraph element as a child of this div.
|
CParagraph |
createParagraphElement(java.lang.String text)
Create a paragraph element as a child of this div with initial text.
|
CTable |
createTableElement(CUnitValue[] colWidths)
Create a table element as a child of this div, with column widths as unit values.
|
CTable |
createTableElement(float[] colWidths)
Create a table element as a child of this div, with column widths in points.
|
CTable |
createTableElement(int numColumns)
Create a table element as a child of this div, specifying number of columns.
|
CText |
createTextElement(java.lang.String text)
Create a text element as a child of this div.
|
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 CDiv(long ptr)
ptr - Native div pointer/handle.public CElementType getType()
CElementType.ELEMENT_DIV.public CText createTextElement(java.lang.String text)
text - Text content.CText element instance.public CDiv createDivElement()
CDiv 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 CLineSeparator createLineSeparatorElement()
CLineSeparator 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.