public class OdfTextListStyle extends TextListStyleElement
If an item contains 1
, I
,
i
, A
, or a
, then it is presumed
to be a numbering style; otherwise it is a bulleted style.
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_LIST_LEVEL
Maximum number of levels in a list.
|
static boolean |
SHOW_ALL_LEVELS
List should show all levels of numbering.
|
static boolean |
SHOW_ONE_LEVEL
List should show only one level of numbering.
|
ELEMENT_NAME
mPackageDocument
localName, namespaceURI
attributes, name
firstChild, fNodeListCache, ownerDocument
nextSibling, previousSibling
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
Constructor and Description |
---|
OdfTextListStyle(OdfFileDom ownerDoc) |
OdfTextListStyle(OdfFileDom ownerDoc,
String name,
String[] specArray,
String spacing,
boolean showAllLevels)
Constructor for OdfEasyListStyle.
|
OdfTextListStyle(OdfFileDom ownerDoc,
String name,
String specifiers,
String delim,
String spacing,
boolean showAllLevels)
Creates an OdfListStyle.
|
Modifier and Type | Method and Description |
---|---|
OdfStyleFamily |
getFamily() |
TextListLevelStyleElementBase |
getLevel(int level)
returns the given level or null if it does not exist
|
TextListLevelStyleElementBase |
getOrCreateListLevel(int level,
Class clazz)
always returns the given level with the given class.
|
OdfStyleBase |
getParentStyle() |
accept, getOdfName, getStyleDisplayNameAttribute, getStyleNameAttribute, getTextConsecutiveNumberingAttribute, newTextListLevelStyleBulletElement, newTextListLevelStyleImageElement, newTextListLevelStyleNumberElement, setStyleDisplayNameAttribute, setStyleNameAttribute, setTextConsecutiveNumberingAttribute
addStyleUser, compareTo, equals, getFamilyName, getOrCreatePropertiesElement, getProperties, getPropertiesElement, getProperty, getStrictProperties, getStyleProperties, getStylePropertiesDeep, getStyleUserCount, getStyleUsers, hashCode, hasProperty, onOdfNodeInserted, onOdfNodeRemoved, removeProperty, removeStyleUser, setProperties, setProperty
insertBefore, removeChild, replaceChild
cloneNode, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, hasOdfAttribute, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, setOdfAttribute, setOdfAttributeValue, toString
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
getNextSibling, getParentNode, getPreviousSibling
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendChild, compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData
protected static final int MAX_LIST_LEVEL
public static final boolean SHOW_ALL_LEVELS
public static final boolean SHOW_ONE_LEVEL
public OdfTextListStyle(OdfFileDom ownerDoc)
public OdfTextListStyle(OdfFileDom ownerDoc, String name, String specifiers, String delim, String spacing, boolean showAllLevels)
ownerDoc
- the document that this list style belongs to.name
- the name of this list style.specifiers
- the string of level specifiers.delim
- the delimiter for splitting the string into levels.spacing
- a css "length" telling how far to indent each level; also min. label widthshowAllLevels
- true if you want to display all levels of numbering, false otherwise.public OdfTextListStyle(OdfFileDom ownerDoc, String name, String[] specArray, String spacing, boolean showAllLevels)
ownerDoc
- the document that this list style belongs to.name
- the name of this list style.specArray
- an array of strings of level specifications.spacing
- a css "length" telling how far to indent each level; also min. label widthshowAllLevels
- true if you want to display all levels of numbering, false otherwise.public TextListLevelStyleElementBase getLevel(int level)
level
- is the level number that should be returnedpublic TextListLevelStyleElementBase getOrCreateListLevel(int level, Class clazz)
level
- is the level number that should be returnedclazz
- is the class of the level, should be
TextListLevelStyleImageElement, TextListLevelStyleBulletElement or
TextListLevelStyleNumberElement.public OdfStyleFamily getFamily()
getFamily
in class OdfStyleBase
public OdfStyleBase getParentStyle()
getParentStyle
in class OdfStyleBase
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.