public class DirectPrintDocumentCommand extends AbstractDocumentCommand
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
DirectPrintDocumentCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPagesToPrint(PrintJobConfiguration pjc,
EventList<Page> pagesToPrint) |
protected void |
execute()
This method is called in order to execute the command.
|
boolean |
isAvailable()
Returns an indicator whether the command is available and therefore integrable.
|
protected void |
prepare(PrintJobConfiguration pjc)
Overwrite to apply own print job settings before dialog is shown.
|
canExecute, getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isSelected, isSelected, setKey
public boolean isAvailable()
Command
isAvailable
in interface Command
isAvailable
in class InjectedCommand
true
- available false
- not availableCommand.isAvailable()
protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
protected void prepare(PrintJobConfiguration pjc)
pjc
- will be passed in by this command.protected void addPagesToPrint(PrintJobConfiguration pjc, EventList<Page> pagesToPrint)
Copyright © 2024 levigo holding gmbh. All rights reserved.