public class ListItem extends FlowObject
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
ListItem() |
ListItem(BlockElement label,
BlockElement body)
Creates a new list item.
|
ListItem(InlineElement label,
InlineElement body)
Creates a new list item.
|
ListItem(ListItemLabel label,
ListItemBody body)
Creates a new list item.
|
ListItem(java.lang.String label,
java.lang.String body)
Creates a new list item.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addUnsafe(java.lang.Object child)
Adds an object to this list item.
|
Accessibility |
getAccessibility()
Gets the accessibilty of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
ListItemBody |
getBody()
Gets the body of this list item.
|
Border |
getBorder()
Gets the border of this fo.
|
Values.Break |
getBreakAfter()
Gets the break after this formatting object.
|
Values.Break |
getBreakBefore()
Gets the break before this formatting object.
|
java.util.List |
getElements()
Gets childreen of this node.
|
ListItemLabel |
getLabel()
Gets the label of this list item.
|
Margin |
getMargin()
Gets the margin of this fo.
|
Padding |
getPadding()
Gets the padding of this fo.
|
RelativePosition |
getRelativePosition()
Gets the relative position of this fo.
|
boolean |
hasBorder()
Returns true if at least one border attribute is set.
|
void |
setAccessibility(Accessibility access)
Sets the accessibility of this fo.
|
void |
setBackground(Background bg)
Sets the background of this fo.
|
void |
setBody(ListItemBody body)
Sets the body of this list item.
|
void |
setBorder(Border border)
Sets the border of this fo.
|
void |
setBreakAfter(Values.Break type)
Sets the break before this formatting object.
|
void |
setBreakBefore(Values.Break type)
Sets the break before this formatting object.
|
void |
setLabel(ListItemLabel label)
Sets the label of this list item.
|
void |
setMargin(Margin margin)
Sets the margin of this fo.
|
void |
setPadding(Padding padding)
Sets the padding of this fo.
|
void |
setRelativePosition(RelativePosition pos)
Sets the relative position of this fo.
|
addElement, addElement, addUnsafe, clone, cloned, clonedList, createUniqueID, createUniqueID, doGetAttribute, doSetAttribute, elementCount, get, getAbsolutePosition, getAttributeMap, getDefinedAttributes, getDocument, getFont, getID, getLanguage, getLogger, getMeasureValue, getObjectValue, getObjectValue, getObjectValue, getObjectValue, getOrphans, getParentFO, getWidows, hasID, hasPadding, isEmpty, isHyphenation, removeElement, removeElement, replaceElement, setAbsolutePosition, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setElement, setFont, setHyphenation, setID, setLanguage, setLanguage, setOrphans, setWidows
getDefaultMapType, setDefaultMapType
addAttributeChangeListener, addElements, addElements, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, firstElement, getAttrAsBoolean, getAttrAsInteger, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getContentText, getDefinedAttributes, getElements, getElements, getElements, getFirstElement, getIndex, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getParent, getParent, getParent, getParentOrThis, getQName, getRoot, hasEqualAttrs, indexOf, lastElement, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
public ListItem()
public ListItem(BlockElement label, BlockElement body)
label
- Label of item.body
- Body of item.public ListItem(InlineElement label, InlineElement body)
label
- Label of item, is wrapped into a fo:block.body
- Body of item, is wrapped into a fo:block.public ListItem(java.lang.String label, java.lang.String body)
label
- Label of item, is wrapped into a fo:block.body
- Body of item, is wrapped into a fo:block.public ListItem(ListItemLabel label, ListItemBody body)
label
- Label of item.body
- Body of item.public java.util.List getElements()
AbstractNode
NodeElement
or String
.getElements
in interface Node
getElements
in class AbstractNode
public Margin getMargin()
getMargin
in class FormattingObject
public void setMargin(Margin margin)
setMargin
in class FormattingObject
margin
- Margin.public Padding getPadding()
getPadding
in class FormattingObject
public void setPadding(Padding padding)
setPadding
in class FormattingObject
padding
- Padding.public boolean hasBorder()
hasBorder
in class FormattingObject
public Border getBorder()
getBorder
in class FormattingObject
public void setBorder(Border border)
setBorder
in class FormattingObject
border
- Border.public Background getBackground()
getBackground
in class FormattingObject
public void setBackground(Background bg)
setBackground
in class FormattingObject
bg
- Background.public Accessibility getAccessibility()
getAccessibility
in class FormattingObject
public void setAccessibility(Accessibility access)
setAccessibility
in class FormattingObject
access
- Accessibility.public RelativePosition getRelativePosition()
getRelativePosition
in class FormattingObject
public void setRelativePosition(RelativePosition pos)
setRelativePosition
in class FormattingObject
pos
- RelativePosition.public ListItemLabel getLabel()
public ListItemBody getBody()
public void setLabel(ListItemLabel label)
label
- Label.public void setBody(ListItemBody body)
body
- Body.public void setBreakBefore(Values.Break type)
type
- Type of break. (see Values.BREAK_*)public Values.Break getBreakBefore()
public void setBreakAfter(Values.Break type)
type
- Type of break. (see Values.BREAK_*)public Values.Break getBreakAfter()
public boolean addUnsafe(java.lang.Object child)
addUnsafe
in class FormattingObject
child
- Child.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.