[ 
https://issues.apache.org/jira/browse/ODFTOOLKIT-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Svante Schubert resolved ODFTOOLKIT-420.
----------------------------------------
    Resolution: Fixed
      Assignee: Svante Schubert

Added your patch, only adopted indentation to project behavior.
Pushed to trunk.

> missing functions in TextProperties set/get background color
> ------------------------------------------------------------
>
>                 Key: ODFTOOLKIT-420
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-420
>             Project: ODF Toolkit
>          Issue Type: Improvement
>          Components: simple api
>            Reporter: Erika Köster
>            Assignee: Svante Schubert
>            Priority: Minor
>         Attachments: simpleApi_Patch.zip
>
>
> 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
> {quote}
>     public void setBackgroundColorAttribute(Color bkColor)
>    \{
>       if (bkColor != null)
>       \{
>           mElement.setFoBackgroundColorAttribute(bkColor.toString());
>       \}
>       else
>       \{
>           mElement.setFoBackgroundColorAttribute(null);
>       \}
>     \}
>  public String getBackgroundColorAttribute()
>     \{
>       return mElement.getFoBackgroundColorAttribute();
>     \}
> {quote}
> I attach the proposed code including a JUnit test as a zip file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to