com.levigo.jadice.swing.commands
Class DirectPrintDocumentCommand
java.lang.Object
com.levigo.util.swing.action.injection.InjectedCommand
com.levigo.util.swing.action.AbstractContextCommand
com.levigo.jadice.swing.commands.AbstractPageViewCommand
com.levigo.jadice.swing.commands.AbstractDocumentCommand
com.levigo.jadice.swing.commands.DirectPrintDocumentCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- PrintDocumentCommand
public class DirectPrintDocumentCommand
- extends AbstractDocumentCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectPrintDocumentCommand
public DirectPrintDocumentCommand()
isAvailable
public boolean isAvailable()
- Description copied from interface:
Command
- Returns an indicator whether the command is available and therefore integrable.
- Specified by:
isAvailable
in interface Command
- Overrides:
isAvailable
in class InjectedCommand
- Returns:
true
- available false
- not available- See Also:
Command.isAvailable()
execute
protected void execute()
- Description copied from class:
InjectedCommand
- This method is called in order to execute the command. It is only called, after the arguments
have been validated and injected and only if
InjectedCommand.canExecute()
has returned
true
.
- Specified by:
execute
in class InjectedCommand
prepare
protected void prepare(PrintJobConfiguration pjc)
- Overwrite to apply own print job settings before dialog is shown. This method works like a
template method.
- Parameters:
pjc
- will be passed in by this command.
addPagesToPrint
protected void addPagesToPrint(PrintJobConfiguration pjc,
EventList<Page> pagesToPrint)
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.