Package org.odftoolkit.odfdom.dom.style
Interface OdfStylePropertySet
- All Known Implementing Classes:
ChartAxisElement,ChartChartElement,ChartDataPointElement,ChartErrorIndicatorElement,ChartFloorElement,ChartFooterElement,ChartGridElement,ChartLegendElement,ChartMeanValueElement,ChartPlotAreaElement,ChartRegressionCurveElement,ChartSeriesElement,ChartStockGainMarkerElement,ChartStockLossMarkerElement,ChartStockRangeLineElement,ChartSubtitleElement,ChartTitleElement,ChartWallElement,Dr3dCubeElement,Dr3dExtrudeElement,Dr3dRotateElement,Dr3dSceneElement,Dr3dSphereElement,DrawCaptionElement,DrawCircleElement,DrawConnectorElement,DrawControlElement,DrawCustomShapeElement,DrawEllipseElement,DrawFrameElement,DrawGElement,DrawLineElement,DrawMeasureElement,DrawPageElement,DrawPageThumbnailElement,DrawPathElement,DrawPolygonElement,DrawPolylineElement,DrawRectElement,DrawRegularPolygonElement,DrawShapeElementBase,OdfDefaultStyle,OdfDrawFrame,OdfStylableElement,OdfStyle,OdfStyleableShapeElement,OdfStyleBase,OdfStylePageLayout,OdfTextHeading,OdfTextListLevelStyleBullet,OdfTextListLevelStyleImage,OdfTextListLevelStyleNumber,OdfTextListStyle,OdfTextOutlineLevelStyle,OdfTextParagraph,OdfTextSpan,OfficeAnnotationElement,PresentationNotesElement,StyleDefaultStyleElement,StyleDropCapElement,StyleHandoutMasterElement,StyleMasterPageElement,StylePageLayoutElement,StyleStyleElement,TableBodyElement,TableCoveredTableCellElement,TableEvenColumnsElement,TableEvenRowsElement,TableFirstColumnElement,TableFirstRowElement,TableLastColumnElement,TableLastRowElement,TableOddColumnsElement,TableOddRowsElement,TableTableCellElement,TableTableCellElementBase,TableTableColumnElement,TableTableElement,TableTableRowElement,TextAElement,TextAlphabeticalIndexElement,TextAlphabeticalIndexEntryTemplateElement,TextBibliographyElement,TextBibliographyEntryTemplateElement,TextContainingElement,TextHElement,TextIllustrationIndexElement,TextIllustrationIndexEntryTemplateElement,TextIndexEntryBibliographyElement,TextIndexEntryChapterElement,TextIndexEntryLinkEndElement,TextIndexEntryLinkStartElement,TextIndexEntryPageNumberElement,TextIndexEntrySpanElement,TextIndexEntryTabStopElement,TextIndexEntryTextElement,TextIndexSourceStyleElement,TextIndexTitleElement,TextIndexTitleTemplateElement,TextLinenumberingConfigurationElement,TextListLevelStyleBulletElement,TextListLevelStyleElementBase,TextListLevelStyleImageElement,TextListLevelStyleNumberElement,TextListStyleElement,TextNumberedParagraphElement,TextObjectIndexElement,TextObjectIndexEntryTemplateElement,TextOutlineLevelStyleElement,TextParagraphElementBase,TextPElement,TextRubyElement,TextRubyTextElement,TextSectionElement,TextSpanElement,TextTableIndexElement,TextTableIndexEntryTemplateElement,TextTableOfContentElement,TextTableOfContentEntryTemplateElement,TextUserIndexElement,TextUserIndexEntryTemplateElement
public interface OdfStylePropertySet
-
Method Summary
Modifier and TypeMethodDescriptiongetProperties(Set<OdfStyleProperty> properties) gets more than one property at oncegetProperty(OdfStyleProperty property) returns the given property from this styleable element or style.booleanhasProperty(OdfStyleProperty property) checks if this styleable element or style has this property directly set.voidremoveProperty(OdfStyleProperty property) removes the given property from this setvoidsetProperties(Map<OdfStyleProperty, String> properties) set more than one property at once.voidsetProperty(OdfStyleProperty property, String value) sets a single style property for this element.
-
Method Details
-
hasProperty
checks if this styleable element or style has this property directly set.- Parameters:
property- is the property to check.- Returns:
- true if this property is directly set at this instance or false if not.
-
getProperty
returns the given property from this styleable element or style. If it is not directly set, the value of this property from a parent style will be returned.- Parameters:
property- is the property which value will be returned.- Returns:
- the value of this property or null if it is not available in this set or this parents sets.
-
removeProperty
removes the given property from this set- Parameters:
property- is the property to be removed
-
setProperty
sets a single style property for this element.- Parameters:
property- is the property that you want to set.value- is the value the property is set to.
-
setProperties
set more than one property at once.- Parameters:
properties- is a map of properties with values that should be set.
-
getProperties
gets more than one property at once- Parameters:
properties- is a set of all properties that should be returned.- Returns:
- a map with all asked properties and theire value, if available.
-
getStrictProperties
Set<OdfStyleProperty> getStrictProperties()- Returns:
- a set with all properties which are specified in the strict odf format.
-