|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebBrowserPrinting
Mozilla printing API.
Field Summary | |
---|---|
static short |
PRINTPREVIEW_END
|
static short |
PRINTPREVIEW_GOTO_PAGENUM
|
static short |
PRINTPREVIEW_HOME
|
static short |
PRINTPREVIEW_NEXT_PAGE
|
static short |
PRINTPREVIEW_PREV_PAGE
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getAvailablePrintersNames()
Returns a set of names of all registered printers in the system. |
PrintSettings |
getCurrentPrintSettings()
Returns the current print settings. |
java.lang.String |
getDefaultPrinterName()
Returns default printer name, or null if system doesn't has any installed printer. |
int |
getPrintPreviewPageNumbers()
Returns the number of pages in print preview. |
void |
initPrintSettings(PrintSettings settings)
Manually initialize printer settings. |
void |
initPrintSettingsFromDefaultPrinter()
Automatically initialize printer settings form system default printer. |
void |
initPrintSettingsFromPrinter(java.lang.String printerName)
Automatically initialize printer settings form the specified printer. |
boolean |
isPrintPreviewMode()
Return true if now print previewing |
void |
print(PrintProgressListener listener)
Starts printing of the current page without any further questions or customizations. |
void |
printPreviewNavigate(short navType,
int pageNum)
Print Preview - navigate within the window. |
void |
setPrintPreviewMode(boolean mode)
Switch browser print preview mode on or off. |
void |
showPageSetupDialog()
Displays native page setup dialog. |
void |
showPrinterProperties(java.lang.String printerName)
Displays native printer properties dialog. |
void |
updatePrintPreview()
Update the print preview if some print settings is changed. |
Field Detail |
---|
static final short PRINTPREVIEW_GOTO_PAGENUM
static final short PRINTPREVIEW_PREV_PAGE
static final short PRINTPREVIEW_NEXT_PAGE
static final short PRINTPREVIEW_HOME
static final short PRINTPREVIEW_END
Method Detail |
---|
boolean isPrintPreviewMode()
void setPrintPreviewMode(boolean mode)
mode
- true - switch browser to print preview mode, otherwise switch
to document mode.void updatePrintPreview()
void printPreviewNavigate(short navType, int pageNum)
void print(PrintProgressListener listener)
listener
- listener for verify the printing progress. Optional can be
null
PrintEngineInitException
- if some of print settings is invalid or unsupportedint getPrintPreviewPageNumbers()
void initPrintSettingsFromDefaultPrinter()
void initPrintSettingsFromPrinter(java.lang.String printerName)
printerName
- the name of printer. Printer has to be registered in your
system.void initPrintSettings(PrintSettings settings)
settings
- java bean with print settings propertiesPrintSettings getCurrentPrintSettings()
java.util.List<java.lang.String> getAvailablePrintersNames()
java.lang.String getDefaultPrinterName()
void showPrinterProperties(java.lang.String printerName)
printerName
- the name of printer for which to display the properties
dialog.void showPageSetupDialog()
getCurrentPrintSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |