|
||||||||||
| 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.pkg.OdfElement
org.odftoolkit.odfdom.pkg.OdfContainerElementBase
org.odftoolkit.odfdom.dom.element.OdfStyleBase
public abstract class OdfStyleBase
| Field Summary |
|---|
| 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 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,
String namespaceURI,
String qualifiedName)
Creates a new instance of OdfElement |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.odftoolkit.odfdom.pkg.OdfContainerElementBase |
|---|
insertBefore, removeChild, replaceChild |
| Methods inherited from class org.odftoolkit.odfdom.pkg.OdfElement |
|---|
accept, cloneNode, cloneOdfElement, 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.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,
String namespaceURI,
String qualifiedName)
throws DOMException
DOMException
public OdfStyleBase(OdfFileDom ownerDocument,
OdfName aName)
throws DOMException
DOMException| Method Detail |
|---|
public 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)
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,
Node refChild)
OdfContainerElementBase
onOdfNodeInserted in class OdfContainerElementBaseprotected void onOdfNodeRemoved(OdfElement node)
OdfContainerElementBase
onOdfNodeRemoved in class OdfContainerElementBasepublic Map<OdfStyleProperty,String> getProperties(Set<OdfStyleProperty> properties)
OdfStylePropertySet
getProperties 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)
OdfStylePropertySet
removeProperty in interface OdfStylePropertySetproperty - is the property to be removedpublic void setProperties(Map<OdfStyleProperty,String> properties)
OdfStylePropertySet
setProperties in interface OdfStylePropertySetproperties - is a map of properties with values that should be set.
public void setProperty(OdfStyleProperty property,
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(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 int hashCode()
hashCode in class Objectpublic OdfStyleFamily getFamily()
public OdfStyleBase getParentStyle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||