Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-420

missing functions in TextProperties set/get background color

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.6.2-incubating
    • simple api
    • None

    Description

      In this file http://svn.apache.org/viewvc/incubator/odf/trunk/simple/src/main/java/org/odftoolkit/simple/style/TextProperties.java there are functions setBackgroundColor and getBackgroundColor missing.
      I propose the following code

      public void setBackgroundColorAttribute(Color bkColor)
      {
      if (bkColor != null)
      {
      mElement.setFoBackgroundColorAttribute(bkColor.toString());
      }
      else
      {
      mElement.setFoBackgroundColorAttribute(null);
      }
      }

      public String getBackgroundColorAttribute()
      {
      return mElement.getFoBackgroundColorAttribute();
      }

      I attach the proposed code including a JUnit test as a zip file.

      Attachments

        1. simpleApi_Patch.zip
          9 kB
          Erika Köster

        Activity

          People

            svanteschubert Svante Schubert
            erika.koester Erika Köster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: