Erika Köster created ODFTOOLKIT-420:
---------------------------------------
Summary: 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
Priority: Minor
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)