public class ListBlock extends FlowObjectWithElements implements BlockElement
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
ListBlock()
Creates a new empty list-block.
|
ListBlock(Measure distance)
Creates a new empty list-block and sets space between labels and bodies.
|
ListBlock(Measure distance,
Block defaultLabel)
Creates a new empty list-block, sets space between labels and bodies and
sets the default label.
|
ListBlock(Measure distance,
InlineElement defaultLabel)
Creates a new empty list-block, sets space between labels and bodies and
sets the default label.
|
ListBlock(Measure distance,
java.lang.String defaultLabel)
Creates a new empty list-block, sets space between labels and bodies and
sets the default label.
|
Modifier and Type | Method and Description |
---|---|
ListBlock |
add(ListItem item)
Adds an item to this list block.
|
ListBlock |
addItem(BlockElement label,
BlockElement body)
Adds an item to this list block.
|
ListBlock |
addItem(InlineElement label,
InlineElement body)
Adds an item to this list block.
|
ListBlock |
addItem(java.lang.String label,
java.lang.String body)
Adds an item to this list block.
|
ListBlock |
addSimpleItem(BlockElement body)
Adds an item with default label to this block.
|
ListBlock |
addSimpleItem(InlineElement body)
Adds an item with default label to this block.
|
ListBlock |
addSimpleItem(java.lang.String body)
Adds an item with default label to this block.
|
Accessibility |
getAccessibility()
Gets the accessibilty of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
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.
|
ListItem |
getListItem(int idx)
Gets a list item at an index.
|
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 |
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 |
setDistance(Measure distance)
Sets attribute provisional-distance-between-starts.
|
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.
|
void |
setSeparation(Measure separation)
Sets the provisional label separation.
|
add, add, add, add, addAllImpl, addAllUnsafe, addAllUnsafe, addElement, addElement, addElements, addElements, addUnsafe, addUnsafe, clone, firstElement, getElementCount, getElements, isEmpty, lastElement, remove, remove, removeAll, removeElement, removeElement, removeLast, replaceElement, setElement
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, isHyphenation, setAbsolutePosition, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setFont, setHyphenation, setID, setLanguage, setLanguage, setOrphans, setWidows
getDefaultMapType, setDefaultMapType
addAttributeChangeListener, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, 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, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeChangeListener, addElement, addElement, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, fireSaxEvents, firstElement, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getDefinedAttributes, getElements, getElements, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getQName, getRoot, indexOf, isEmpty, lastElement, removeAttributeChangeListener, removeElement, removeElement, replaceElement, setAttribute, setAttributes, setElement, setNamespace
clone, getParent, setParent, writeTo
public ListBlock()
public ListBlock(Measure distance)
distance
- Distance.public ListBlock(Measure distance, Block defaultLabel)
distance
- Distance.defaultLabel
- The default label.public ListBlock(Measure distance, InlineElement defaultLabel)
distance
- Distance.defaultLabel
- The default label.public ListBlock(Measure distance, java.lang.String defaultLabel)
distance
- Distance.defaultLabel
- The default label.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 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 ListBlock add(ListItem item)
item
- List item.public ListBlock addItem(BlockElement label, BlockElement body)
label
- Label of item.body
- Body of item.public ListBlock addItem(InlineElement label, InlineElement body)
label
- Label of item.body
- Body of item.public ListBlock addItem(java.lang.String label, java.lang.String body)
label
- Label of item.body
- Body of item.public ListBlock addSimpleItem(BlockElement body)
body
- Body of item.public ListBlock addSimpleItem(InlineElement body)
body
- Body of item.public ListBlock addSimpleItem(java.lang.String body)
body
- Body of item.public ListItem getListItem(int idx)
idx
- Index of item.public void setDistance(Measure distance)
distance
- Distance.public void setSeparation(Measure separation)
separation
- Seperation.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.