|
||||||||||
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.dom.element.OdfStylableElement
public abstract class OdfStylableElement
Field Summary | |
---|---|
protected OdfStyleFamily |
mFamily
|
protected OdfName |
mStyleNameAttrib
|
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 | |
---|---|
OdfStylableElement(OdfFileDom ownerDocument,
OdfName name,
OdfStyleFamily family,
OdfName styleNameAttrib)
Creates a new instance of OdfElementImpl |
Method Summary | |
---|---|
OdfStyle |
getAutomaticStyle()
Retrieve ODF AutomaticStyle |
OdfOfficeAutomaticStyles |
getAutomaticStyles()
Retrieve ODF OfficeAutomaticStyles |
OdfStyle |
getDocumentStyle()
Retrieve ODF DocumentStyle |
StyleStyleElement |
getOrCreateUnqiueAutomaticStyle()
Retrieve or create uniqiue ODF AutomaticStyle |
Map<OdfStyleProperty,String> |
getProperties(Set<OdfStyleProperty> properties)
Retrieve the set of ODF style proerties |
String |
getProperty(OdfStyleProperty property)
Retrieve ODF style property |
Set<OdfStyleProperty> |
getStrictProperties()
Retrieve the set of strict ODF properties |
OdfStyleFamily |
getStyleFamily()
Retrieve ODF style family |
String |
getStyleName()
Retrieve style name |
boolean |
hasAutomaticStyle()
Judge if there is an automatic style |
boolean |
hasDocumentStyle()
|
boolean |
hasProperty(OdfStyleProperty property)
Judge if there is an automatic style with this property |
protected void |
onInsertNode()
|
protected void |
onRemoveNode()
|
void |
removeProperty(OdfStyleProperty property)
Remove the ODF property |
OdfStyle |
reuseDocumentStyle(String styleName)
Returns a DocumentStyle if there is no local style |
void |
setAttributeNS(String uri,
String qname,
String value)
Set style attribute value with uri and name |
void |
setDocumentStyle(OdfStyle style)
Set ODF DocumentStyle |
void |
setProperties(Map<OdfStyleProperty,String> properties)
Set ODF properties |
void |
setProperty(OdfStyleProperty property,
String value)
Set ODF style property with value |
void |
setStyleName(String name)
Set style name |
Methods inherited from class org.odftoolkit.odfdom.pkg.OdfElement |
---|
accept, cloneNode, cloneOdfElement, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getOdfName, getParentAs, hasOdfAttribute, insertBefore, onInsertNode, onRemoveNode, removeChild, replaceChild, 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, hashCode, 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 |
Field Detail |
---|
protected OdfStyleFamily mFamily
protected OdfName mStyleNameAttrib
Constructor Detail |
---|
public OdfStylableElement(OdfFileDom ownerDocument, OdfName name, OdfStyleFamily family, OdfName styleNameAttrib) throws DOMException
ownerDocument
- name
- family
- styleNameAttrib
-
DOMException
Method Detail |
---|
public StyleStyleElement getOrCreateUnqiueAutomaticStyle()
StyleStyleElement
elementpublic OdfOfficeAutomaticStyles getAutomaticStyles()
OdfOfficeAutomaticStyles
element that contains
the automatic style for this element, or null if not available.public void setAttributeNS(String uri, String qname, String value)
setAttributeNS
in interface Element
setAttributeNS
in class ElementImpl
uri
- The namespace uriqname
- The qualified name of the attributevalue
- The attribute valuepublic String getStyleName()
public void setStyleName(String name)
name
- The style namepublic OdfStyle getAutomaticStyle()
OdfStyle
elementpublic boolean hasAutomaticStyle()
public OdfStyle reuseDocumentStyle(String styleName)
OdfStyle
elementpublic void setDocumentStyle(OdfStyle style)
style
- The document stylepublic OdfStyle getDocumentStyle()
public boolean hasDocumentStyle()
public OdfStyleFamily getStyleFamily()
public String getProperty(OdfStyleProperty property)
getProperty
in interface OdfStylePropertySet
property
- The style property
public Map<OdfStyleProperty,String> getProperties(Set<OdfStyleProperty> properties)
getProperties
in interface OdfStylePropertySet
properties
-
public Set<OdfStyleProperty> getStrictProperties()
getStrictProperties
in interface OdfStylePropertySet
public boolean hasProperty(OdfStyleProperty property)
hasProperty
in interface OdfStylePropertySet
property
-
public void removeProperty(OdfStyleProperty property)
removeProperty
in interface OdfStylePropertySet
property
- public void setProperties(Map<OdfStyleProperty,String> properties)
setProperties
in interface OdfStylePropertySet
properties
- public void setProperty(OdfStyleProperty property, String value)
setProperty
in interface OdfStylePropertySet
property
- value
- protected void onInsertNode()
onInsertNode
in class OdfElement
protected void onRemoveNode()
onRemoveNode
in class OdfElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |