PrintingStatus provides a dialog that displays progress
of the printing job and provides a way to abort it
Methods of these class are thread safe, although most Swing methods are not. Please see Concurrency in Swing for more information.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Action | |
| private JButton | |
| private JDialog | |
| private final WindowAdapter | |
| private final AtomicBoolean | |
| private final PrinterJob | |
| private final Component | |
| private MessageFormat | |
| private JLabel |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Printable | Returns: printable which is used to track the current page being printed in this PrintingStatusto be used to create notification printable printable)Returns printable which is used to track the current page being printed in this PrintingStatus |
| public static PrintingStatus | Returns: aPrintingStatus objecta parent, PrinterJob Component object to be used
as parent component for PrintingStatus dialoga job)PrinterJob object to be cancelled
using this PrintingStatus dialogCreates PrintingStatus instance |
| public void | |
| private void | |
| pack-priv static int | |
| private void | |
| public boolean | Returns: whether the printing was aborted using this PrintingStatusReturns whether the printing was aborted using this PrintingStatus |
| public void | showModal(final boolean
true this dialog should be modal;
false otherwise.Shows PrintingStatus dialog. |
| private void |
| abortAction | back to summary |
|---|---|
| private final Action abortAction | |
| abortButton | back to summary |
|---|---|
| private JButton abortButton | |
| abortDialog | back to summary |
|---|---|
| private JDialog abortDialog | |
| closeListener | back to summary |
|---|---|
| private final WindowAdapter closeListener | |
| isAborted | back to summary |
|---|---|
| private final AtomicBoolean isAborted | |
| job | back to summary |
|---|---|
| private final PrinterJob job | |
| parent | back to summary |
|---|---|
| private final Component parent | |
| statusFormat | back to summary |
|---|---|
| private MessageFormat statusFormat | |
| statusLabel | back to summary |
|---|---|
| private JLabel statusLabel | |
| PrintingStatus | back to summary |
|---|---|
| protected PrintingStatus(Component parent, PrinterJob job) | |
| createNotificationPrintable | back to summary |
|---|---|
| public Printable createNotificationPrintable(Printable printable) Returns printable which is used to track the current page being printed in this PrintingStatus
| |
| createPrintingStatus | back to summary |
|---|---|
| public static PrintingStatus createPrintingStatus(Component parent, PrinterJob job) Creates PrintingStatus instance
| |
| dispose | back to summary |
|---|---|
| public void dispose() Disposes modal PrintingStatus dialog
| |
| disposeOnEDT | back to summary |
|---|---|
| private void disposeOnEDT() The EDT part of the dispose method. This method is to be called on the EDT only. | |
| getInt | back to summary |
|---|---|
| pack-priv static int getInt(Object key, int defaultValue) Duplicated from UIManager to make it visible | |
| init | back to summary |
|---|---|
| private void init() | |
| isAborted | back to summary |
|---|---|
| public boolean isAborted() Returns whether the printing was aborted using this PrintingStatus
| |
| showModal | back to summary |
|---|---|
| public void showModal(final boolean isModal) Shows PrintingStatus dialog.
if dialog is modal this method returns only
after
| |
| showModalOnEDT | back to summary |
|---|---|
| private void showModalOnEDT(boolean isModal) The EDT part of the showModal method. This method is to be called on the EDT only. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Printable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | print(final Graphics graphics, final PageFormat pageFormat, final int pageIndex)
Implements java. Prints the page at the specified index into the specified
|
| private void |
| printDelegatee | back to summary |
|---|---|
| private final Printable printDelegatee | |
| NotificationPrintable | back to summary |
|---|---|
| public NotificationPrintable(Printable delegatee) | |
| back to summary | |
|---|---|
| public int print(final Graphics graphics, final PageFormat pageFormat, final int pageIndex) throws PrinterException Implements java. Doc from java. Prints the page at the specified index into the specified
| |
| updateStatusOnEDT | back to summary |
|---|---|
| private void updateStatusOnEDT(int pageIndex) The EDT part of the print method. This method is to be called on the EDT only. | |