User: kz Date: 2008-03-05 17:46:04+0000 Modified: dba/reportdesign/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineWidthMapper.java
Log: INTEGRATION: CWS rptchart01_DEV300 (1.2.70); FILE MERGED 2008/02/21 09:57:26 oj 1.2.70.1: #i85225# fixes found with PMD File Changes: Directory: /dba/reportdesign/java/com/sun/star/report/pentaho/parser/stylemapper/style/ ======================================================================================= File [changed]: TextUnderlineWidthMapper.java Url: http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/parser/stylemapper/style/TextUnderlineWidthMapper.java?r1=1.2&r2=1.3 Delta lines: +35 -32 --------------------- --- TextUnderlineWidthMapper.java 2007-07-09 11:56:11+0000 1.2 +++ TextUnderlineWidthMapper.java 2008-03-05 17:46:01+0000 1.3 @@ -33,8 +33,6 @@ * MA 02111-1307 USA * ************************************************************************/ - - package com.sun.star.report.pentaho.parser.stylemapper.style; import com.sun.star.report.pentaho.parser.stylemapper.OneOfConstantsMapper; @@ -47,7 +45,8 @@ public class TextUnderlineWidthMapper extends OneOfConstantsMapper { - public TextUnderlineWidthMapper () + + public TextUnderlineWidthMapper() { super(TextStyleKeys.TEXT_UNDERLINE_WIDTH); addMapping("auto", CSSAutoValue.getInstance()); @@ -59,23 +58,27 @@ addMapping("thick", BorderWidth.THICK); } - public void updateStyle (final String uri, + public void updateStyle(final String uri, final String attrName, final String attrValue, final CSSDeclarationRule targetRule) { - if (attrName == null) throw new NullPointerException(); + if (attrName == null) + { + throw new NullPointerException(); + } final CSSValue value = lookupMapping(attrValue); if (value != null) { targetRule.setPropertyValue(getStyleKey(), value); - return; } - + else // percent // positive integer // positive length + { targetRule.setPropertyValueAsString(getStyleKey(), attrValue); } + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
