com.crystaldecisions.report.web.viewer
Class CrHtmlUnitEnum

java.lang.Object
  extended by com.crystaldecisions.report.web.viewer.CrHtmlUnitEnum

public class CrHtmlUnitEnum
extends java.lang.Object

This class contains constants that specify the units used to determine the tool panel width. The tool panel width may be determined in pixels or as a percentage of the viewer width.

The tool panel width can be set by passing a CrHtmlUnitEnum object to the CrystalReportViewer class' setToolPanelWidthUnit method for a specific JSP.


Field Summary
static CrHtmlUnitEnum crHtmlUnitPercentage
           Specifies to use percentage of the viewer width to calculate the tool panel width.
static CrHtmlUnitEnum crHtmlUnitPixel
           Specifies to use pixels to calculate the tool panel width.
 
Method Summary
static CrHtmlUnitEnum fromCssString(java.lang.String mode)
          Converts the case-insensitive strings "px" and "%" to a CrHtmlUnitEnum object.
static CrHtmlUnitEnum fromString(java.lang.String mode)
           Converts the case-insensitive strings "Percentage", "Percent" and "Pixel" to a CrHtmlUnitEnum object.
 java.lang.String toCssString()
          Converts a CrHtmlUnitEnum object to the strings "px" and "%", respectively, for use in Style Sheet code.
 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 tool panel width.


crHtmlUnitPercentage

public static final CrHtmlUnitEnum crHtmlUnitPercentage

Specifies to use percentage of the viewer width to calculate the tool panel width.

Method Detail

toString

public java.lang.String toString()

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

Overrides:
toString in class java.lang.Object
Returns:
"Pixel" or "Percentage" as a String

toCssString

public java.lang.String toCssString()

Converts a CrHtmlUnitEnum object to the strings "px" and "%", respectively, for use in Style Sheet code.

Returns:
"px" or "%" 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

fromCssString

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

Converts the case-insensitive strings "px" and "%" to a CrHtmlUnitEnum object.

Parameters:
mode - a String that specifies the mode. This can be either "px" or "%".
Returns:
a CrHtmlUnitEnum object.