com.teamdev.jxbrowser.printing
Enum PageRange.RangeType

java.lang.Object
  extended by java.lang.Enum<PageRange.RangeType>
      extended by com.teamdev.jxbrowser.printing.PageRange.RangeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PageRange.RangeType>
Enclosing class:
PageRange

public static enum PageRange.RangeType
extends java.lang.Enum<PageRange.RangeType>

Constants, specifying different range types.


Enum Constant Summary
All
          All pages.
FocusedFrame
          Focused frame only.
Selection
          Selected content only.
Specified
          Specific pages by page numbers.
 
Method Summary
 short getMozillaType()
           
static PageRange.RangeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PageRange.RangeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

All

public static final PageRange.RangeType All
All pages.


Specified

public static final PageRange.RangeType Specified
Specific pages by page numbers. This range requires that you define startPageRange and endPageRange.


Selection

public static final PageRange.RangeType Selection
Selected content only.


FocusedFrame

public static final PageRange.RangeType FocusedFrame
Focused frame only.

Method Detail

values

public static PageRange.RangeType[] 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 (PageRange.RangeType c : PageRange.RangeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PageRange.RangeType 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 name
java.lang.NullPointerException - if the argument is null

getMozillaType

public short getMozillaType()