com.crystaldecisions.sdk.occa.report.document
Class PaperSource

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.document.PaperSource

public final class PaperSource
extends java.lang.Object

This class is used to specify the paper source (input tray) of the printer when printing a report.

Some paper sources exposed in the SDK are not supported by JDK 1.4. If you set an unsupported paper source for the printing options and attempt to print a report using PrintOutputController.printReport, a ReportSDKPrinterPaperSourceException exception is thrown.


Field Summary
static int _auto
          Allow the printer to automatically select an input tray.
static int _cassette
          Not supported by JDK 1.4.
static int _envelope
          Use the envelope input tray of the printer.
static int _envManual
          Not supported by JDK 1.4.
static int _formSource
          Not supported by JDK 1.4.
static int _largeCapacity
          Use the large capacity input tray of the printer.
static int _largeFmt
          Not supported by JDK 1.4.
static int _lower
          Use the bottom input tray of the printer.
static int _manual
          Use the manual feed input tray of the printer.
static int _middle
          Use the middle input tray of the printer.
static int _smallFmt
          Not supported by JDK 1.4.
static int _tractor
          Not supported by JDK 1.4.
static int _upper
          Use the top input tray of the printer.
static PaperSource auto
          Specifies that the printer automatically selects an input tray.
static PaperSource cassette
          Not supported by JDK 1.4.
static PaperSource envelope
          Specifies the envelope input tray of the printer.
static PaperSource envManual
          Not supported by JDK 1.4.
static PaperSource formSource
          Not supported by JDK 1.4.
static PaperSource largeCapacity
          Specifies the large capacity input tray of the printer.
static PaperSource largeFmt
          Not supported by JDK 1.4.
static PaperSource lower
          Specifies the bottom input tray of the printer.
static PaperSource manual
          Specifies the manual feed input tray of the printer.
static PaperSource middle
          Specifies the middle input tray of the printer.
static PaperSource smallFmt
          Not supported by JDK 1.4.
static PaperSource tractor
          Not supported by JDK 1.4.
static PaperSource upper
          Specifies the top input tray of the printer.
 
Method Summary
static PaperSource from_int(int i)
           Returns the PaperSource object corresponding to the specified value.
static PaperSource from_string(java.lang.String sVal)
           Returns the PaperSource object corresponding to the specified type.
 java.lang.String toString()
           Returns the String value of this PaperSource object.
 int value()
           Returns the int value of this PaperSource object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_upper

public static final int _upper

Use the top input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.TOP in the Java Print Service API.

See Also:
Constant Field Values

_lower

public static final int _lower

Use the bottom input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.BOTTOM in the Java Print Service API.

See Also:
Constant Field Values

_middle

public static final int _middle

Use the middle input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.MIDDLE in the Java Print Service API.

See Also:
Constant Field Values

_manual

public static final int _manual

Use the manual feed input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.MANUAL in the Java Print Service API.

See Also:
Constant Field Values

_envelope

public static final int _envelope

Use the envelope input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.ENVELOPE in the Java Print Service API.

See Also:
Constant Field Values

_envManual

public static final int _envManual

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.

See Also:
Constant Field Values

_auto

public static final int _auto

Allow the printer to automatically select an input tray.

See Also:
Constant Field Values

_tractor

public static final int _tractor

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.

See Also:
Constant Field Values

_smallFmt

public static final int _smallFmt

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.

See Also:
Constant Field Values

_largeFmt

public static final int _largeFmt

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.

See Also:
Constant Field Values

_largeCapacity

public static final int _largeCapacity

Use the large capacity input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.LARGE_CAPACITY in the Java Print Service API.

See Also:
Constant Field Values

_cassette

public static final int _cassette

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.

See Also:
Constant Field Values

_formSource

public static final int _formSource

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.

See Also:
Constant Field Values

upper

public static final PaperSource upper

Specifies the top input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.TOP in the Java Print Service API.


lower

public static final PaperSource lower

Specifies the bottom input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.BOTTOM in the Java Print Service API.


middle

public static final PaperSource middle

Specifies the middle input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.MIDDLE in the Java Print Service API.


manual

public static final PaperSource manual

Specifies the manual feed input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.MANUAL in the Java Print Service API.


envelope

public static final PaperSource envelope

Specifies the envelope input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.ENVELOPE in the Java Print Service API.


envManual

public static final PaperSource envManual

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.


auto

public static final PaperSource auto

Specifies that the printer automatically selects an input tray.


tractor

public static final PaperSource tractor

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.


smallFmt

public static final PaperSource smallFmt

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.


largeFmt

public static final PaperSource largeFmt

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.


largeCapacity

public static final PaperSource largeCapacity

Specifies the large capacity input tray of the printer. Corresponds to javax.print.attribute.standard.MediaTray.LARGE_CAPACITY in the Java Print Service API.


cassette

public static final PaperSource cassette

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.


formSource

public static final PaperSource formSource

Not supported by JDK 1.4. PrintOutputController.printReport will throw a ReportSDKPrinterPaperSourceException exception.

Method Detail

from_int

public static final PaperSource from_int(int i)

Returns the PaperSource object corresponding to the specified value.

Parameters:
i - The int value of the desired PaperSource object.
Returns:
The PaperSource object corresponding to the specified value.

from_string

public static final PaperSource from_string(java.lang.String sVal)

Returns the PaperSource object corresponding to the specified type.

Parameters:
sVal - The String value of the desired PaperSource object.
Returns:
The PaperSource object corresponding to the specified type.

toString

public java.lang.String toString()

Returns the String value of this PaperSource object.

Overrides:
toString in class java.lang.Object
Returns:
The String value of this PaperSource object.

value

public int value()

Returns the int value of this PaperSource object.

Returns:
The int value of this PaperSource object.