com.crystaldecisions.report.web.viewer
Class CrHtmlUnitEnum

java.lang.Object
  extended bycom.crystaldecisions.report.web.viewer.CrHtmlUnitEnum

public class CrHtmlUnitEnum
extends java.lang.Object

This class allows you to specify the units used to determine the group tree width. It allows you to choose between using pixels or percentage to determine the width.


Field Summary
static CrHtmlUnitEnum crHtmlUnitPercentage
          Specifies to use percentage to calculate the group tree width.
static CrHtmlUnitEnum crHtmlUnitPixel
          Specifies to use pixels to calculate the group tree width.
 
Method Summary
static CrHtmlUnitEnum fromString(java.lang.String mode)
           Converts the case-insensitive strings "Percentage", "Percent" and "Pixel" to a CrHtmlUnitEnum object.
 java.lang.String toString()
           Converts a CrHtmlUnitEnum object to the strings "Pixel" and "Percentage", respectively.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

crHtmlUnitPixel

public static final CrHtmlUnitEnum crHtmlUnitPixel

Specifies to use pixels to calculate the group tree width.


crHtmlUnitPercentage

public static final CrHtmlUnitEnum crHtmlUnitPercentage

Specifies to use percentage to calculate the group tree width.

Method Detail

toString

public java.lang.String toString()

Converts a CrHtmlUnitEnum object to the strings "Pixel" and "Percentage", respectively.

Returns:
"Pixel" or "Percentage" as a String

fromString

public static final CrHtmlUnitEnum fromString(java.lang.String mode)

Converts the case-insensitive strings "Percentage", "Percent" and "Pixel" to a CrHtmlUnitEnum object.

Parameters:
mode - a String that specifies the mode. This can be either "Pixel", "Percent" or "Percentage".
Returns:
a CrHtmlUnitEnum object