Package com.saperion.ngc.viewer.pdfjs
Enum PdfjsViewerDisplayMode
- java.lang.Object
-
- java.lang.Enum<PdfjsViewerDisplayMode>
-
- com.saperion.ngc.viewer.pdfjs.PdfjsViewerDisplayMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PdfjsViewerDisplayMode>
public enum PdfjsViewerDisplayMode extends java.lang.Enum<PdfjsViewerDisplayMode>
Display-modes for thePdfjsViewerImpl
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMBED_MP4
Display document as embed-tag with video/mp4 mime type.EMBED_PDF
Display document as embed-tag with application/pdf mime type.IMAGE
Display document as image-tag.LINK
Display a download-link.PDFJS
Display document with PDFJS.PLACEHOLDER
Display a placeholder.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PdfjsViewerDisplayMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PdfjsViewerDisplayMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PDFJS
public static final PdfjsViewerDisplayMode PDFJS
Display document with PDFJS.
-
IMAGE
public static final PdfjsViewerDisplayMode IMAGE
Display document as image-tag.
-
EMBED_MP4
public static final PdfjsViewerDisplayMode EMBED_MP4
Display document as embed-tag with video/mp4 mime type.
-
EMBED_PDF
public static final PdfjsViewerDisplayMode EMBED_PDF
Display document as embed-tag with application/pdf mime type.
-
LINK
public static final PdfjsViewerDisplayMode LINK
Display a download-link.
-
PLACEHOLDER
public static final PdfjsViewerDisplayMode PLACEHOLDER
Display a placeholder.
-
-
Method Detail
-
values
public static PdfjsViewerDisplayMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PdfjsViewerDisplayMode c : PdfjsViewerDisplayMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PdfjsViewerDisplayMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-