Class OdfStyle
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
,OdfStylePropertySet
,Element
,ElementTraversal
,EventTarget
,Node
,NodeList
,TypeInfo
Convenient functionality for the parent ODF OpenDocument element
- See Also:
-
Field Summary
Fields inherited from class org.odftoolkit.odfdom.dom.element.style.StyleStyleElement
ELEMENT_NAME
Fields inherited from class org.odftoolkit.odfdom.pkg.OdfContainerElementBase
mPackageDocument
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
Fields inherited from class org.apache.xerces.dom.NodeImpl
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
Fields inherited from interface org.w3c.dom.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
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static OdfStylableElement
mergeSelectionWithSameRange
(OdfStylableElement higherPrioSpan, OdfStylableElement lowerPrioSpan) Two spans having the same range will be provided, only one will remain, styles are being merged.toString()
Methods inherited from class org.odftoolkit.odfdom.dom.element.style.StyleStyleElement
accept, getOdfName, getStyleAutoUpdateAttribute, getStyleClassAttribute, getStyleDataStyleNameAttribute, getStyleDefaultOutlineLevelAttribute, getStyleDisplayNameAttribute, getStyleFamilyAttribute, getStyleListLevelAttribute, getStyleListStyleNameAttribute, getStyleMasterPageNameAttribute, getStyleNameAttribute, getStyleNextStyleNameAttribute, getStyleParentStyleNameAttribute, getStylePercentageDataStyleNameAttribute, newStyleChartPropertiesElement, newStyleDrawingPagePropertiesElement, newStyleGraphicPropertiesElement, newStyleMapElement, newStyleParagraphPropertiesElement, newStyleRubyPropertiesElement, newStyleSectionPropertiesElement, newStyleTableCellPropertiesElement, newStyleTableColumnPropertiesElement, newStyleTablePropertiesElement, newStyleTableRowPropertiesElement, newStyleTextPropertiesElement, setStyleAutoUpdateAttribute, setStyleClassAttribute, setStyleDataStyleNameAttribute, setStyleDefaultOutlineLevelAttribute, setStyleDisplayNameAttribute, setStyleFamilyAttribute, setStyleListLevelAttribute, setStyleListStyleNameAttribute, setStyleMasterPageNameAttribute, setStyleNameAttribute, setStyleNextStyleNameAttribute, setStyleParentStyleNameAttribute, setStylePercentageDataStyleNameAttribute
Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfStyleBase
addStyleUser, compareTo, equals, getFamilyName, getOrCreatePropertiesElement, getProperties, getPropertiesElement, getProperty, getStrictProperties, getStyleProperties, getStylePropertiesDeep, getStyleUserCount, getStyleUsers, hashCode, hasProperty, onOdfNodeInserted, onOdfNodeRemoved, removeProperty, removeStyleUser, setProperties, setProperty
Methods inherited from class org.odftoolkit.odfdom.pkg.OdfContainerElementBase
insertBefore, removeChild, replaceChild
Methods inherited from class org.odftoolkit.odfdom.pkg.OdfElement
appendChild, appendUsingWhitespaceHandling, cloneElement, cloneNode, cloneNode, cloneNode, cloneOdfElement, componentSize, copyAttributes, countChildComponents, countDescendantComponents, countPrecedingSiblingElements, delete, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getChildElement, getChildElement, getComponent, getComponentRoot, getFirstChildElement, getLastChildElement, getNextSiblingElement, getOdfAttribute, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, getPreviousSiblingElement, getRepetition, getTextContent, hasAncestor, hasOdfAttribute, ignoredComponent, insert, insert, isComponentRoot, isIgnoredElement, isIgnoredElement, isRepeatable, markAsComponentRoot, markText, moveChildrenTo, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, receiveNode, receiveNode, removeContent, removeSingleElement, selfAndDescendantTextIgnoredAsComponent, setComponent, setOdfAttribute, setOdfAttribute, setOdfAttributeValue, setRepetition, split
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setPrefix, setType
Methods inherited from class org.apache.xerces.dom.ElementImpl
getAttribute, 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, synchronizeData
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, item, setTextContent, synchronizeChildren
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.w3c.dom.Node
compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData
-
Constructor Details
-
OdfStyle
-
-
Method Details
-
getParentStyle
- Overrides:
getParentStyle
in classOdfStyleBase
- Returns:
- the style parent of the style or null if none existent
-
getFamily
- Overrides:
getFamily
in classOdfStyleBase
- Returns:
- the style family of the style or null if none existent
-
hasPropertyAttribute
public boolean hasPropertyAttribute()- Returns:
- true if there is a property other than the style:family, style:name and style:parent-style-name with a value other than "null", or a similar attribute on the properties element
-
mergeSelectionWithSameRange
public static OdfStylableElement mergeSelectionWithSameRange(OdfStylableElement higherPrioSpan, OdfStylableElement lowerPrioSpan) Two spans having the same range will be provided, only one will remain, styles are being merged.Merges the automatic styles of the two given spans, uses one template style. The styles from the inner span have the higher priority. The outer span will be deleted afterwards.
- Returns:
- the remaining stylableElement of the two
-
toString
- Overrides:
toString
in classOdfElement
-