|
||||||||||
| 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.office.OfficeStylesElement
org.odftoolkit.odfdom.incubator.doc.office.OdfOfficeStyles
public class OdfOfficeStyles
Convenient functionalty for the parent ODF OpenDocument element
| Field Summary |
|---|
| Fields inherited from class org.odftoolkit.odfdom.dom.element.office.OfficeStylesElement |
|---|
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 interface org.w3c.dom.TypeInfo |
|---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Constructor Summary | |
|---|---|
OdfOfficeStyles(OdfFileDom ownerDoc)
|
|
| Method Summary | |
|---|---|
NumberBooleanStyleElement |
getBooleanStyle(String name)
Returns the NumberBooleanStyleElement element with the given name. |
Iterable<NumberBooleanStyleElement> |
getBooleanStyles()
Returns an iterator for all NumberBooleanStyleElement elements. |
OdfNumberCurrencyStyle |
getCurrencyStyle(String name)
Returns the OdfNumberCurrencyStyle element with the given name. |
Iterable<OdfNumberCurrencyStyle> |
getCurrencyStyles()
Returns an iterator for all OdfNumberCurrencyStyle elements. |
OdfNumberDateStyle |
getDateStyle(String name)
Returns the OdfNumberDateStyle element with the given name. |
Iterable<OdfNumberDateStyle> |
getDateStyles()
Returns an iterator for all OdfNumberDateStyle elements. |
OdfDefaultStyle |
getDefaultStyle(OdfStyleFamily familyType)
Returns the OdfStyleDefaultStyle element. |
Iterable<OdfDefaultStyle> |
getDefaultStyles()
Returns an iterator for all OdfStyleDefaultStyle elements. |
DrawFillImageElement |
getFillImage(String name)
Returns the DrawFillImageElement element with the given name. |
Iterable<DrawFillImageElement> |
getFillImages()
Returns an iterator for all DrawFillImageElement elements. |
DrawGradientElement |
getGradient(String name)
Returns the DrawGradientElement element with the given name. |
Iterable<DrawGradientElement> |
getGradients()
Returns an iterator for all DrawGradientElement elements. |
DrawHatchElement |
getHatch(String name)
Returns the DrawHatchElement element with the given name. |
Iterable<DrawHatchElement> |
getHatches()
Returns an iterator for all DrawHatchElement elements. |
OdfTextListStyle |
getListStyle(String name)
Returns the OdfTextListStyle element with the given name. |
Iterable<OdfTextListStyle> |
getListStyles()
Returns an iterator for all OdfTextListStyle elements. |
Iterable<DrawMarkerElement> |
getMarker()
Returns an iterator for all DrawMarkerElement elements. |
DrawMarkerElement |
getMarker(String name)
Returns the DrawMarkerElement element with the given name. |
OdfNumberStyle |
getNumberStyle(String name)
Returns the OdfNumberNumberStyle element with the given name. |
Iterable<OdfNumberStyle> |
getNumberStyles()
Returns an iterator for all OdfNumberNumberStyle elements. |
OdfDefaultStyle |
getOrCreateDefaultStyle(OdfStyleFamily family)
Retrieve or create ODF default style |
OdfTextOutlineStyle |
getOrCreateOutlineStyle()
Retrieve or create ODF OutlineStyle |
OdfTextOutlineStyle |
getOutlineStyle()
Returns the OdfTextOutlineStyle element. |
OdfNumberPercentageStyle |
getPercentageStyle(String name)
Returns the OdfNumberPercentageStyle element with the given name. |
Iterable<OdfNumberPercentageStyle> |
getPercentageStyles()
Returns an iterator for all OdfNumberPercentageStyle elements. |
OdfStyle |
getStyle(String name,
OdfStyleFamily familyType)
Returns the OdfStyle element with the given name and family. |
Iterable<OdfStyle> |
getStylesForFamily(OdfStyleFamily familyType)
Returns an iterator for all OdfStyle elements for the given family. |
NumberTextStyleElement |
getTextStyle(String name)
Returns the OdfNumberTextStyle element with the given name. |
Iterable<NumberTextStyleElement> |
getTextStyles()
Returns an iterator for all OdfNumberTextStyle elements. |
OdfNumberTimeStyle |
getTimeStyle(String name)
Returns the OdfNumberTimeStyle element with the given name. |
Iterable<OdfNumberTimeStyle> |
getTimeStyles()
Returns an iterator for all OdfNumberTimeStyle elements. |
OdfTextListStyle |
newListStyle(String name)
Create ODF TextListStyle |
OdfStyle |
newStyle(String name,
OdfStyleFamily family)
Create an ODF style with style name and family |
protected void |
onOdfNodeInserted(OdfElement node,
Node refNode)
override this method to get notified about element insertion |
protected void |
onOdfNodeRemoved(OdfElement node)
override this method to get notified about element insertion |
| Methods inherited from class org.odftoolkit.odfdom.pkg.OdfContainerElementBase |
|---|
insertBefore, removeChild, replaceChild |
| Methods inherited from class org.odftoolkit.odfdom.pkg.OdfElement |
|---|
cloneNode, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, 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, 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 |
| Constructor Detail |
|---|
public OdfOfficeStyles(OdfFileDom ownerDoc)
| Method Detail |
|---|
public OdfStyle newStyle(String name,
OdfStyleFamily family)
name - The style namefamily - The style family
OdfStyle elementpublic OdfDefaultStyle getOrCreateDefaultStyle(OdfStyleFamily family)
family - The style family
public OdfTextListStyle newListStyle(String name)
name - The style name
public OdfTextOutlineStyle getOrCreateOutlineStyle()
public OdfTextOutlineStyle getOutlineStyle()
OdfTextOutlineStyle element.
public OdfDefaultStyle getDefaultStyle(OdfStyleFamily familyType)
OdfStyleDefaultStyle element.
familyType - is the family for the default style
public Iterable<OdfDefaultStyle> getDefaultStyles()
OdfStyleDefaultStyle elements.
OdfStyleDefaultStyle elementspublic DrawMarkerElement getMarker(String name)
DrawMarkerElement element with the given name.
name - is the name of the marker
public Iterable<DrawMarkerElement> getMarker()
DrawMarkerElement elements.
DrawMarkerElement elementspublic DrawGradientElement getGradient(String name)
DrawGradientElement element with the given name.
name - is the name of the gradient
public Iterable<DrawGradientElement> getGradients()
DrawGradientElement elements.
DrawGradientElement elementspublic DrawHatchElement getHatch(String name)
DrawHatchElement element with the given name.
name - is the name of the hatch
public Iterable<DrawHatchElement> getHatches()
DrawHatchElement elements.
DrawHatchElement elementspublic DrawFillImageElement getFillImage(String name)
DrawFillImageElement element with the given name.
name - is the name of the fill image
public Iterable<DrawFillImageElement> getFillImages()
DrawFillImageElement elements.
DrawFillImageElement elements
public OdfStyle getStyle(String name,
OdfStyleFamily familyType)
OdfStyle element with the given name and family.
name - is the name of the stylefamilyType - is the family of the style
public Iterable<OdfStyle> getStylesForFamily(OdfStyleFamily familyType)
OdfStyle elements for the given family.
familyType -
OdfStyle elements for the given familypublic OdfTextListStyle getListStyle(String name)
OdfTextListStyle element with the given name.
name - is the name of the list style
public Iterable<OdfTextListStyle> getListStyles()
OdfTextListStyle elements.
OdfTextListStyle elementspublic OdfNumberStyle getNumberStyle(String name)
OdfNumberNumberStyle element with the given name.
name - is the name of the number style
public Iterable<OdfNumberStyle> getNumberStyles()
OdfNumberNumberStyle elements.
OdfNumberNumberStyle elementspublic OdfNumberDateStyle getDateStyle(String name)
OdfNumberDateStyle element with the given name.
name - is the name of the date style
public Iterable<OdfNumberDateStyle> getDateStyles()
OdfNumberDateStyle elements.
OdfNumberDateStyle elementspublic OdfNumberPercentageStyle getPercentageStyle(String name)
OdfNumberPercentageStyle element with the given name.
name - is the name of the percentage style
public Iterable<OdfNumberPercentageStyle> getPercentageStyles()
OdfNumberPercentageStyle elements.
OdfNumberPercentageStyle elementspublic OdfNumberCurrencyStyle getCurrencyStyle(String name)
OdfNumberCurrencyStyle element with the given name.
name - is the name of the currency style
public Iterable<OdfNumberCurrencyStyle> getCurrencyStyles()
OdfNumberCurrencyStyle elements.
OdfNumberCurrencyStyle elementspublic OdfNumberTimeStyle getTimeStyle(String name)
OdfNumberTimeStyle element with the given name.
name - is the name of the time style
public Iterable<OdfNumberTimeStyle> getTimeStyles()
OdfNumberTimeStyle elements.
OdfNumberTimeStyle elementspublic NumberBooleanStyleElement getBooleanStyle(String name)
NumberBooleanStyleElement element with the given name.
name - is the name of the boolean style
public Iterable<NumberBooleanStyleElement> getBooleanStyles()
NumberBooleanStyleElement elements.
NumberBooleanStyleElement elementspublic NumberTextStyleElement getTextStyle(String name)
OdfNumberTextStyle element with the given name.
name - is the name of the text style
public Iterable<NumberTextStyleElement> getTextStyles()
OdfNumberTextStyle elements.
OdfNumberTextStyle elements
protected void onOdfNodeInserted(OdfElement node,
Node refNode)
OdfContainerElementBase
onOdfNodeInserted in class OdfContainerElementBaseprotected void onOdfNodeRemoved(OdfElement node)
OdfContainerElementBase
onOdfNodeRemoved in class OdfContainerElementBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||