All Implemented Interfaces:
Serializable, Cloneable, Comparable, OdfStylePropertySet, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class OdfStyle extends StyleStyleElement
Convenient functionality for the parent ODF OpenDocument element
See Also:
  • Constructor Details

  • Method Details

    • getParentStyle

      public OdfStyleBase getParentStyle()
      Overrides:
      getParentStyle in class OdfStyleBase
      Returns:
      the style parent of the style or null if none existent
    • getFamily

      public OdfStyleFamily getFamily()
      Overrides:
      getFamily in class OdfStyleBase
      Returns:
      the style family of the style or null if none existent
    • hasPropertyAttribute

      public boolean hasPropertyAttribute()
      Returns:
      true if there is a property other than the style:family, style:name and style:parent-style-name with a value other than "null", or a similar attribute on the properties element
    • mergeSelectionWithSameRange

      public static OdfStylableElement mergeSelectionWithSameRange(OdfStylableElement higherPrioSpan, OdfStylableElement lowerPrioSpan)
      Two spans having the same range will be provided, only one will remain, styles are being merged.

      Merges the automatic styles of the two given spans, uses one template style. The styles from the inner span have the higher priority. The outer span will be deleted afterwards.

      Returns:
      the remaining stylableElement of the two
    • toString

      public String toString()
      Overrides:
      toString in class OdfElement