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_NAMEmPackageDocumentlocalName, namespaceURIattributes, namefirstChild, fNodeListCache, ownerDocumentnextSibling, previousSiblingDOCUMENT_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_NODEATTRIBUTE_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_NODEDERIVATION_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, setTextConsecutiveNumberingAttributeaddStyleUser, compareTo, equals, getFamilyName, getOrCreatePropertiesElement, getProperties, getPropertiesElement, getProperty, getStrictProperties, getStyleProperties, getStylePropertiesDeep, getStyleUserCount, getStyleUsers, hashCode, hasProperty, onOdfNodeInserted, onOdfNodeRemoved, removeProperty, removeStyleUser, setProperties, setPropertyinsertBefore, removeChild, replaceChildcloneNode, cloneOdfElement, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, hasOdfAttribute, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, setOdfAttribute, setOdfAttributeValue, toStringgetLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setPrefix, setTypegetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDatagetChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildrengetNextSibling, getParentNode, getPreviousSiblingaddEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendChild, compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserDataprotected 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 OdfStyleBasepublic OdfStyleBase getParentStyle()
getParentStyle in class OdfStyleBaseCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2019 The Document Foundation. All rights reserved.