public class ListItem extends Div
List. The list
object controls the prefix, postfix, and numbering of the list items.tagPropertieschildElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
ListItem()
Creates a ListItem.
|
ListItem(Image image)
Creates a list item with an image.
|
ListItem(String text)
Creates a list item with text.
|
| Modifier and Type | Method and Description |
|---|---|
AccessibilityProperties |
getAccessibilityProperties()
Gets the
accessibility properties. |
<T1> T1 |
getDefaultProperty(int property)
Gets the default property from this entity.
|
protected IRenderer |
makeNewRenderer() |
ListItem |
setListSymbol(Image image)
Sets the list item symbol to be used.
|
ListItem |
setListSymbol(ListNumberingType listNumberingType)
Sets the list item numbering type to be used.
|
ListItem |
setListSymbol(String symbol)
Sets the list item symbol to be used.
|
ListItem |
setListSymbol(Text text)
Sets the list item symbol to be used.
|
ListItem |
setListSymbolOrdinalValue(int ordinalValue)
Customizes the index of the item in the list.
|
add, add, add, setFillAvailableArea, setFillAvailableAreaOnSplitgetHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidth, isKeepTogether, isKeepWithNext, setHeight, setHeight, setKeepTogether, setKeepWithNext, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setRotationAngle, setRotationAngle, setSpacingRatio, setVerticalAlignment, setWidth, setWidthaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertypublic ListItem()
public ListItem(String text)
text - the textual contents of the list itempublic ListItem(Image image)
image - the graphical contents of the list itempublic ListItem setListSymbolOrdinalValue(int ordinalValue)
ordinalValue - the custom value property of an ordered list's list item.public <T1> T1 getDefaultProperty(int property)
IPropertyContainergetDefaultProperty in interface IPropertyContainergetDefaultProperty in class BlockElement<Div>T1 - the return type associated with the propertyproperty - the property to be retrievednull will be returnedpublic ListItem setListSymbol(String symbol)
symbol - the textual symbol to be used for the item.public ListItem setListSymbol(Text text)
text - the Text object to be used for the item.public ListItem setListSymbol(Image image)
image - the Image object to be used for the item.public ListItem setListSymbol(ListNumberingType listNumberingType)
listNumberingType - the ListNumberingType that will generate appropriate prefixes for the ListItem.public AccessibilityProperties getAccessibilityProperties()
IAccessibleElementaccessibility properties. See also IAccessibleElement.getAccessibilityProperties in interface IAccessibleElementgetAccessibilityProperties in class Divprotected IRenderer makeNewRenderer()
makeNewRenderer in class DivCopyright © 1998–2020 iText Group NV. All rights reserved.