|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.report.web.viewer.CrHtmlUnitEnum
public class CrHtmlUnitEnum
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 |
---|
public static final CrHtmlUnitEnum crHtmlUnitPixel
Specifies to use pixels to calculate the tool panel width.
public static final CrHtmlUnitEnum crHtmlUnitPercentage
Specifies to use percentage of the viewer width to calculate the tool panel width.
Method Detail |
---|
public java.lang.String toString()
Converts a CrHtmlUnitEnum
object to the strings "Pixel" and "Percentage", respectively.
toString
in class java.lang.Object
String
public java.lang.String toCssString()
Converts a CrHtmlUnitEnum
object to the strings "px" and "%",
respectively, for use in Style Sheet code.
String
public static final CrHtmlUnitEnum fromString(java.lang.String mode)
Converts the case-insensitive strings "Percentage", "Percent" and "Pixel" to a CrHtmlUnitEnum
object.
mode
- a String
that specifies the mode. This can be either "Pixel",
"Percent" or "Percentage".
CrHtmlUnitEnum
objectpublic static final CrHtmlUnitEnum fromCssString(java.lang.String mode)
Converts the case-insensitive strings "px" and "%" to a CrHtmlUnitEnum
object.
mode
- a String
that specifies the mode. This can be either "px" or "%".
CrHtmlUnitEnum
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |