Bug 167527 Label text does not display correctly [0302]
Description: Label text does not display correctly. Build number: 2.2.0.v20061211-0630 Steps to reproduce: 1. Insert a label item. 2. Define highlight rule for it, choose font color red. 3. Input this.text=this.getHighlightRules()[0].color in onPrepare method of label item. 4. Preview Expected result: The label should display "red". Actual result: The label display "16711680". Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/element/HighlightRuleImpl.java
public String getFontStyle( )
	{
		return (String) rule
				.getProperty( null, HighlightRule.FONT_STYLE_MEMBER );
	}
	public String getFontWeight( )
	{
		return (String) rule.getProperty( null,
				HighlightRule.FONT_WEIGHT_MEMBER );
	}
	public String getStringFormat( )
	{
		Object value = rule.getProperty( null,
				HighlightRule.STRING_FORMAT_MEMBER );
		if ( value == null )
			return null;
		return ( (StringFormatValue) value ).getPattern( );
	}
	public String getTestExpression( )
	{
		return rule.getTestExpression( );
	}
	public void setColor( String color )
	{
		rule.setProperty( HighlightRule.COLOR_MEMBER, color );
	}
	public void setDateTimeFormat( String format )
	{
		FormatValue formatValueToSet = new DateTimeFormatValue( );
		formatValueToSet.setPattern( format );