Class ListItem
- All Implemented Interfaces:
IAbstractElement, IBlockElement, IElement, IPropertyContainer, IAccessibleElement
-
Field Summary
Fields inherited from class Div
tagPropertiesFields inherited from class AbstractElement
childElements, nextRenderer, stylesFields inherited from class ElementPropertyContainer
properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theaccessibility properties.<T1> T1getDefaultProperty(int property) Gets the default property from this entity.protected IRendererCreates a new renderer instance.setListSymbol(Image image) Sets the list item symbol to be used.setListSymbol(Text text) Sets the list item symbol to be used.setListSymbol(ListNumberingType listNumberingType) Sets the list item numbering type to be used.setListSymbol(String symbol) Sets the list item symbol to be used.setListSymbolOrdinalValue(int ordinalValue) Customizes the index of the item in the list.Methods inherited from class Div
add, add, add, setFillAvailableArea, setFillAvailableAreaOnSplitMethods inherited from class BlockElement
getHeight, 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, setNeutralRole, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setRotationAngle, setRotationAngle, setSpacingRatio, setVerticalAlignment, setWidth, setWidthMethods inherited from class AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberMethods inherited from class ElementPropertyContainer
deleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getTransparentStrokeColor, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDashPattern, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeColor, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAbstractElement
getChildrenMethods inherited from interface IElement
createRendererSubTree, getRenderer, setNextRendererMethods inherited from interface IPropertyContainer
deleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
Constructor Details
-
ListItem
public ListItem()Creates a ListItem. -
ListItem
Creates a list item with text.- Parameters:
text- the textual contents of the list item
-
ListItem
Creates a list item with an image.- Parameters:
image- the graphical contents of the list item
-
-
Method Details
-
setListSymbolOrdinalValue
Customizes the index of the item in the list.- Parameters:
ordinalValue- the custom value property of an ordered list's list item.- Returns:
- this listItem.
-
getDefaultProperty
public <T1> T1 getDefaultProperty(int property) Description copied from interface:IPropertyContainerGets the default property from this entity.- Specified by:
getDefaultPropertyin interfaceIPropertyContainer- Overrides:
getDefaultPropertyin classBlockElement<Div>- Type Parameters:
T1- the return type associated with the property- Parameters:
property- the property to be retrieved- Returns:
- the default property value. If the default property is not defined,
nullwill be returned
-
setListSymbol
-
setListSymbol
-
setListSymbol
-
setListSymbol
Sets the list item numbering type to be used.- Parameters:
listNumberingType- theListNumberingTypethat will generate appropriate prefixes for theListItem.- Returns:
- this list item.
-
getAccessibilityProperties
Description copied from interface:IAccessibleElementGets theaccessibility properties. See alsoIAccessibleElement.- Specified by:
getAccessibilityPropertiesin interfaceIAccessibleElement- Overrides:
getAccessibilityPropertiesin classDiv- Returns:
- an interface that allows to specify properties of a tagged element in Tagged PDF.
-
makeNewRenderer
Description copied from class:AbstractElementCreates a new renderer instance.- Overrides:
makeNewRendererin classDiv- Returns:
- new
IRenderer
-