You are viewing a plain text version of this content. The canonical link for it is here.
Posted to odf-dev@incubator.apache.org by "Svante Schubert (JIRA)" <ji...@apache.org> on 2017/03/05 12:02:32 UTC

[jira] [Reopened] (ODFTOOLKIT-420) missing functions in TextProperties set/get background color

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

Svante Schubert reopened ODFTOOLKIT-420:
----------------------------------------

reopening to add fixed version of upcoming release

> 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
>             Fix For: 0.6.2-incubating
>
>         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.15#6346)