public abstract class OdfStyleBase extends OdfContainerElementBase implements OdfStylePropertySet, Comparable
mPackageDocumentlocalName, 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 |
|---|
OdfStyleBase(OdfFileDom ownerDocument,
OdfName aName)
Creates a new instance of OdfElement
|
OdfStyleBase(OdfFileDom ownerDocument,
String namespaceURI,
String qualifiedName)
Creates a new instance of OdfElement
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStyleUser(OdfStylableElement user) |
int |
compareTo(Object obj)
compare one style to another one.
|
boolean |
equals(Object obj)
Indicates if some other object is equal to this one.
|
OdfStyleFamily |
getFamily() |
String |
getFamilyName() |
OdfStylePropertiesBase |
getOrCreatePropertiesElement(OdfStylePropertiesSet set) |
OdfStyleBase |
getParentStyle() |
Map<OdfStyleProperty,String> |
getProperties(Set<OdfStyleProperty> properties)
gets more than one property at once
|
OdfStylePropertiesBase |
getPropertiesElement(OdfStylePropertiesSet set) |
String |
getProperty(OdfStyleProperty prop)
returns the given property from this styleable element or style.
|
Set<OdfStyleProperty> |
getStrictProperties() |
Map<OdfStyleProperty,String> |
getStyleProperties()
get a map containing all properties of this style and their values.
|
Map<OdfStyleProperty,String> |
getStylePropertiesDeep()
get a map containing all properties of this style and their values.
|
int |
getStyleUserCount() |
Iterable<OdfStylableElement> |
getStyleUsers()
Returns an iterator for all
OdfStylableElement elements using this style. |
int |
hashCode() |
boolean |
hasProperty(OdfStyleProperty prop)
checks if this styleable element or style has this property directly set.
|
protected void |
onOdfNodeInserted(OdfElement node,
Node refChild)
override this method to get notified about element insertion
|
protected void |
onOdfNodeRemoved(OdfElement node)
override this method to get notified about element insertion
|
void |
removeProperty(OdfStyleProperty property)
removes the given property from this set
|
void |
removeStyleUser(OdfStylableElement user) |
void |
setProperties(Map<OdfStyleProperty,String> properties)
set more than one property at once.
|
void |
setProperty(OdfStyleProperty property,
String value)
sets a single style property for this element.
|
insertBefore, removeChild, replaceChildaccept, cloneNode, cloneOdfElement, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getOdfName, 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, setUserDatapublic OdfStyleBase(OdfFileDom ownerDocument, String namespaceURI, String qualifiedName) throws DOMException
DOMExceptionpublic OdfStyleBase(OdfFileDom ownerDocument, OdfName aName) throws DOMException
DOMExceptionpublic void addStyleUser(OdfStylableElement user)
public Map<OdfStyleProperty,String> getStyleProperties()
public Map<OdfStyleProperty,String> getStylePropertiesDeep()
public void removeStyleUser(OdfStylableElement user)
public int getStyleUserCount()
public Iterable<OdfStylableElement> getStyleUsers()
OdfStylableElement elements using this style.OdfStylableElement elements using this stylepublic String getFamilyName()
public OdfStylePropertiesBase getPropertiesElement(OdfStylePropertiesSet set)
set - public OdfStylePropertiesBase getOrCreatePropertiesElement(OdfStylePropertiesSet set)
set - public String getProperty(OdfStyleProperty prop)
OdfStylePropertySetgetProperty in interface OdfStylePropertySetprop - is the property which value will be returned.public boolean hasProperty(OdfStyleProperty prop)
OdfStylePropertySethasProperty in interface OdfStylePropertySetprop - is the property to check.protected void onOdfNodeInserted(OdfElement node, Node refChild)
OdfContainerElementBaseonOdfNodeInserted in class OdfContainerElementBaseprotected void onOdfNodeRemoved(OdfElement node)
OdfContainerElementBaseonOdfNodeRemoved in class OdfContainerElementBasepublic Map<OdfStyleProperty,String> getProperties(Set<OdfStyleProperty> properties)
OdfStylePropertySetgetProperties in interface OdfStylePropertySetproperties - is a set of all properties that should be returned.public Set<OdfStyleProperty> getStrictProperties()
getStrictProperties in interface OdfStylePropertySetpublic void removeProperty(OdfStyleProperty property)
OdfStylePropertySetremoveProperty in interface OdfStylePropertySetproperty - is the property to be removedpublic void setProperties(Map<OdfStyleProperty,String> properties)
OdfStylePropertySetsetProperties in interface OdfStylePropertySetproperties - is a map of properties with values that should be set.public void setProperty(OdfStyleProperty property, String value)
OdfStylePropertySetsetProperty in interface OdfStylePropertySetproperty - is the property that you want to set.value - is the value the property is set to.public int compareTo(Object obj)
compareTo in interface Comparableobj - - the reference object with which to compare2.public boolean equals(Object obj)
equals in class OdfElementobj - - the reference object with which to compare2.public OdfStyleFamily getFamily()
public OdfStyleBase getParentStyle()
Copyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.