PrinterJob

final class PrinterJob(val delegate: PrinterJob) extends SFXDelegate[PrinterJob]
Value Params
delegate

JavaFX PrinterJob. Since there is no public constructor for it, there is not a default value.

Constructor

Creates a new ScalaFX PrinterJob from its JavaFX counterpart.

Since

8.0

Companion
object
trait SFXDelegate[PrinterJob]
class Object
trait Matchable
class Any

Value members

Concrete methods

def cancelJob(): Unit

Cancel the underlying print job at the earliest opportunity.

Cancel the underlying print job at the earliest opportunity.

def endJob: Boolean

If the job can be successfully spooled to the printer queue this will return true.

If the job can be successfully spooled to the printer queue this will return true.

The JobSettings encapsulates all the API supported job configuration options such as number of copies, collation option, duplex option, etc.

The JobSettings encapsulates all the API supported job configuration options such as number of copies, collation option, duplex option, etc.

A read only object property representing the current JobStatus

A read only object property representing the current JobStatus

def printPage(node: Node): Boolean

Print the specified node.

Print the specified node.

Value Params
node

The node to print.

Returns

whether rendering was successful.

def printPage(pageLayout: PageLayout, node: Node): Boolean

Print the specified node using the specified page layout.

Print the specified node using the specified page layout.

Value Params
node

The node to print.

pageLayout

Layout for this page.

Returns

whether rendering was successful.

def printer: ObjectProperty[Printer]

Property representing the Printer for this job.

Property representing the Printer for this job.

def printer_=(v: Printer): Unit
def showPageSetupDialog(owner: Window): Boolean

Displays a Page Setup dialog.

Displays a Page Setup dialog.

Value Params
owner

owner to block input, or 'null'.

Returns

false if the user opts to cancel the dialog, or the job is not in the new state. That is if it has already started, has failed, or has been cancelled, or ended.

def showPrintDialog(owner: Window): Boolean

Displays a Print Dialog.

Displays a Print Dialog.

Value Params
owner

owner to which to block input, or 'null'.

Returns

false if the user opts to cancel printing, or the job is not in the new state. That is if it has already started, has failed, or has been cancelled, or ended.

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate

Concrete fields

override val delegate: PrinterJob