|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.schedule.ScheduleAction
com.inet.report.schedule.PrintAction
public class PrintAction
A ScheduleAction for printing the generated
reports of a task to a printer. You can set a number of properties for the
printing e.g. if color should be used or not, which quality should be used or
the printer resolution.
Please have a look at the documentation of these properties to get more
details.
| Field Summary | |
|---|---|
static int |
ORIENTATION_LANDSCAPE
This will explicitly set the orientation for the PrinterJob to landscape. |
static int |
ORIENTATION_PORTRAIT
This will explicitly set the orientation for the PrinterJob to portrait. |
static int |
ORIENTATION_USE_DEFAULT
This will set the orientation for the PrinterJob with the value defined in the report template. |
static int |
QUALITY_DRAFT
This constant can be used to set the print quality to "draft". |
static int |
QUALITY_HIGH
This constant can be used to set the print quality to "high". |
static int |
QUALITY_NORMAL
This constant can be used to set the print quality to "normal". |
| Fields inherited from class com.inet.report.schedule.ScheduleAction |
|---|
TYPE_CACHE, TYPE_CUSTOM, TYPE_EMAIL, TYPE_FILE, TYPE_FTP, TYPE_PRINT |
| Constructor Summary | |
|---|---|
PrintAction()
Creates an instance of PrintAction. |
|
| Method Summary | |
|---|---|
void |
action(ExecutedTask task)
This method will print all reports of the given task with the properties set in this PrintAction. |
int |
getCopies()
Returns the number of times the associated report(s) will be printed. |
java.lang.String[] |
getErrorMessages()
Will provide error information. |
int |
getOrientation()
Returns the orientation that will be used for printing the reports. |
java.lang.String |
getPrinterName()
Returns the name of the printer that will be used for printing the reports. |
int |
getQuality()
Returns the preferred printing quality. |
boolean |
isUseColor()
Will tell you whether the reports will be monochrome or printed using colors. |
void |
setCopies(int copies)
Sets the number of copies which should be printed for each report rendered with the associated task. |
void |
setOrientation(int orientation)
Sets the orientation that will be used for printing the reports. |
void |
setPrinterName(java.lang.String printerName)
Sets the name of the printer which should be used for printing. |
void |
setQuality(int quality)
Allows you to set the printing quality, which should be one of the QUALITY_NORMAL, QUALITY_DRAFT, or QUALITY_HIGH. |
void |
setUseColor(boolean useColor)
Allows you to specify whether the reports should be printed in color or monochrome. |
java.lang.String |
toString()
Returns a string representation of this PrintAction. |
| Methods inherited from class com.inet.report.schedule.ScheduleAction |
|---|
getType, isValid |
| Field Detail |
|---|
public static final int ORIENTATION_USE_DEFAULT
getOrientation(),
setOrientation(int),
Constant Field Valuespublic static final int ORIENTATION_PORTRAIT
getOrientation(),
setOrientation(int),
Constant Field Valuespublic static final int ORIENTATION_LANDSCAPE
getOrientation(),
setOrientation(int),
Constant Field Valuespublic static final int QUALITY_NORMAL
getQuality(),
setQuality(int),
Constant Field Valuespublic static final int QUALITY_DRAFT
getQuality(),
setQuality(int),
Constant Field Valuespublic static final int QUALITY_HIGH
getQuality(),
setQuality(int),
Constant Field Values| Constructor Detail |
|---|
public PrintAction()
| Method Detail |
|---|
public java.lang.String[] getErrorMessages()
getErrorMessages in class ScheduleActionpublic void action(ExecutedTask task)
action in class ScheduleActiontask - The executed task which reports should be printed.public int getCopies()
setCopies(int)public void setCopies(int copies)
valid
anymore.
copies - Number of copies which should be printed per report.getCopies()public int getOrientation()
setOrientation(int),
ORIENTATION_PORTRAIT,
ORIENTATION_LANDSCAPE,
ORIENTATION_USE_DEFAULTpublic void setOrientation(int orientation)
valid anymore.
orientation - The orientation which should be used for printing.getOrientation(),
ORIENTATION_PORTRAIT,
ORIENTATION_LANDSCAPE,
ORIENTATION_USE_DEFAULTpublic java.lang.String getPrinterName()
setPrinterName(String)public void setPrinterName(java.lang.String printerName)
null means that i-net Clear Reports will use the
default printer of the system.
printerName - The name of the printer which should be used.getPrinterName()public int getQuality()
setQuality(int),
QUALITY_DRAFT,
QUALITY_NORMAL,
QUALITY_HIGHpublic void setQuality(int quality)
quality - The quality which should be used.getQuality(),
QUALITY_DRAFT,
QUALITY_NORMAL,
QUALITY_HIGHpublic boolean isUseColor()
True if printing should be done with colors or
false if printing should be done black/white.setUseColor(boolean)public void setUseColor(boolean useColor)
useColor - True for colored printing and false
for black/white printing.isUseColor()public java.lang.String toString()
ScheduleAction.getErrorMessages() if available.
toString in class ScheduleAction
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||