public class ListItem extends Div
List
. The list object controls the prefix, postfix, and numbering of the list items.
role, tagProperties
childElements, nextRenderer, styles
properties
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 |
---|---|
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.
|
add, add, getAccessibilityProperties, getRole, setRole
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, isKeepTogether, isKeepWithNext, setKeepTogether, setKeepWithNext, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setRotationAngle, setRotationAngle, setSpacingRatio, setVerticalAlignment
addStyle, createRendererSubTree, getProperty, getRenderer, hasProperty, isEmpty, propagateArtifactRoleToChildElements, setAction, setNextRenderer, setPageNumber
deleteOwnProperty, getDefaultProperty, getHeight, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getWidth, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontKerning, setFontScript, setFontSize, setHeight, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setWidth, setWidth, setWidthPercent, setWordSpacing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteOwnProperty, getDefaultProperty, getOwnProperty, hasOwnProperty, setProperty
public ListItem()
public ListItem(String text)
text
- the textual contents of the list item
public ListItem(Image image)
image
- the graphical contents of the list item
public 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
.
protected IRenderer makeNewRenderer()
makeNewRenderer
in class Div
Copyright © 1998–2016 iText Group NV. All rights reserved.