|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.document.PaperSource
public final class PaperSource
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 |
---|
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.
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.
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.
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.
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.
public static final int _envManual
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final int _auto
Allow the printer to automatically select an input tray.
public static final int _tractor
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final int _smallFmt
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final int _largeFmt
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
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.
public static final int _cassette
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final int _formSource
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
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.
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.
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.
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.
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.
public static final PaperSource envManual
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final PaperSource auto
Specifies that the printer automatically selects an input tray.
public static final PaperSource tractor
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final PaperSource smallFmt
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final PaperSource largeFmt
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
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.
public static final PaperSource cassette
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
public static final PaperSource formSource
Not supported by JDK 1.4. PrintOutputController.printReport
will throw a ReportSDKPrinterPaperSourceException
exception.
Method Detail |
---|
public static final PaperSource from_int(int i)
Returns the PaperSource
object corresponding to the specified value.
i
- The int
value of the desired PaperSource
object.
PaperSource
object corresponding to the specified value.public static final PaperSource from_string(java.lang.String sVal)
Returns the PaperSource
object corresponding to the specified type.
sVal
- The String
value of the desired PaperSource
object.
PaperSource
object corresponding to the specified type.public java.lang.String toString()
Returns the String
value of this PaperSource
object.
toString
in class java.lang.Object
String
value of this PaperSource
object.public int value()
Returns the int
value of this PaperSource
object.
int
value of this PaperSource
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |