|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.odftoolkit.odfdom.OdfElement
org.odftoolkit.odfdom.OdfContainerElementBase
org.odftoolkit.odfdom.dom.element.OdfStyleBase
public abstract class OdfStyleBase
| Field Summary |
|---|
| Fields inherited from class org.odftoolkit.odfdom.OdfElement |
|---|
mOdfDocument |
| 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 | |
|---|---|
OdfStyleBase(OdfFileDom ownerDocument,
OdfName aName)
Creates a new instance of OdfElement |
|
OdfStyleBase(OdfFileDom ownerDocument,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
Creates a new instance of OdfElement |
|
| Method Summary | |
|---|---|
void |
addStyleUser(OdfStylableElement user)
|
int |
compareTo(java.lang.Object obj)
compare one style to another one. |
boolean |
equals(java.lang.Object obj)
Indicates if some other object is equal to this one. |
OdfStyleFamily |
getFamily()
|
java.lang.String |
getFamilyName()
|
OdfStylePropertiesBase |
getOrCreatePropertiesElement(OdfStylePropertiesSet set)
|
OdfStyleBase |
getParentStyle()
|
java.util.Map<OdfStyleProperty,java.lang.String> |
getProperties(java.util.Set<OdfStyleProperty> properties)
gets more than one property at once |
OdfStylePropertiesBase |
getPropertiesElement(OdfStylePropertiesSet set)
|
java.lang.String |
getProperty(OdfStyleProperty prop)
returns the given property from this styleable element or style. |
java.util.Set<OdfStyleProperty> |
getStrictProperties()
|
java.util.Map<OdfStyleProperty,java.lang.String> |
getStyleProperties()
get a map containing all properties of this style and their values. |
java.util.Map<OdfStyleProperty,java.lang.String> |
getStylePropertiesDeep()
get a map containing all properties of this style and their values. |
int |
getStyleUserCount()
|
java.lang.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,
org.w3c.dom.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(java.util.Map<OdfStyleProperty,java.lang.String> properties)
set more than one property at once. |
void |
setProperty(OdfStyleProperty property,
java.lang.String value)
sets a single style property for this element. |
| Methods inherited from class org.odftoolkit.odfdom.OdfContainerElementBase |
|---|
insertBefore, removeChild, replaceChild |
| Methods inherited from class org.odftoolkit.odfdom.OdfElement |
|---|
cloneNode, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getOdfName, getParentAs, hasOdfAttribute, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, setOdfAttribute, setOdfAttributeValue, toString |
| Methods inherited from class org.apache.xerces.dom.ElementNSImpl |
|---|
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
|---|
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 |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
|---|
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, 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, appendChild, 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 |
|---|
appendChild, compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData |
| Constructor Detail |
|---|
public OdfStyleBase(OdfFileDom ownerDocument,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public OdfStyleBase(OdfFileDom ownerDocument,
OdfName aName)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMException| Method Detail |
|---|
public void addStyleUser(OdfStylableElement user)
public java.util.Map<OdfStyleProperty,java.lang.String> getStyleProperties()
public java.util.Map<OdfStyleProperty,java.lang.String> getStylePropertiesDeep()
public void removeStyleUser(OdfStylableElement user)
public int getStyleUserCount()
public java.lang.Iterable<OdfStylableElement> getStyleUsers()
OdfStylableElement elements
using this style.
OdfStylableElement elements
using this stylepublic java.lang.String getFamilyName()
public OdfStylePropertiesBase getPropertiesElement(OdfStylePropertiesSet set)
set -
public OdfStylePropertiesBase getOrCreatePropertiesElement(OdfStylePropertiesSet set)
set -
public java.lang.String getProperty(OdfStyleProperty prop)
OdfStylePropertySet
getProperty in interface OdfStylePropertySetprop - is the property which value will be returned.
public boolean hasProperty(OdfStyleProperty prop)
OdfStylePropertySet
hasProperty in interface OdfStylePropertySetprop - is the property to check.
protected void onOdfNodeInserted(OdfElement node,
org.w3c.dom.Node refChild)
OdfContainerElementBase
onOdfNodeInserted in class OdfContainerElementBaseprotected void onOdfNodeRemoved(OdfElement node)
OdfContainerElementBase
onOdfNodeRemoved in class OdfContainerElementBasepublic java.util.Map<OdfStyleProperty,java.lang.String> getProperties(java.util.Set<OdfStyleProperty> properties)
OdfStylePropertySet
getProperties in interface OdfStylePropertySetproperties - is a set of all properties that should be returned.
public java.util.Set<OdfStyleProperty> getStrictProperties()
getStrictProperties in interface OdfStylePropertySetpublic void removeProperty(OdfStyleProperty property)
OdfStylePropertySet
removeProperty in interface OdfStylePropertySetproperty - is the property to be removedpublic void setProperties(java.util.Map<OdfStyleProperty,java.lang.String> properties)
OdfStylePropertySet
setProperties in interface OdfStylePropertySetproperties - is a map of properties with values that should be set.
public void setProperty(OdfStyleProperty property,
java.lang.String value)
OdfStylePropertySet
setProperty in interface OdfStylePropertySetproperty - is the property that you want to set.value - is the value the property is set to.public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - - the reference object with which to compare2.
public boolean equals(java.lang.Object obj)
equals in class OdfElementobj - - the reference object with which to compare2.
public int hashCode()
hashCode in class java.lang.Objectpublic OdfStyleFamily getFamily()
public OdfStyleBase getParentStyle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||