diff options
author | Michael Koch <konqueror@gmx.de> | 2005-04-19 04:42:48 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2005-04-19 04:42:48 +0000 |
commit | 617c100078a35698529545129b84d75bf9d05d2b (patch) | |
tree | 73139cccd3e91ae680ee53e995311731eff59488 /libjava/java/awt/print | |
parent | 0fabce9650593975dd7e652f66f656f9a1863e32 (diff) | |
download | gcc-617c100078a35698529545129b84d75bf9d05d2b.zip gcc-617c100078a35698529545129b84d75bf9d05d2b.tar.gz gcc-617c100078a35698529545129b84d75bf9d05d2b.tar.bz2 |
2005-04-19 Michael Koch <konqueror@gmx.de>
* java/awt/print/PrinterJob.java
(pageDialog): New method.
(printDialog): Implemented.
From-SVN: r98371
Diffstat (limited to 'libjava/java/awt/print')
-rw-r--r-- | libjava/java/awt/print/PrinterJob.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libjava/java/awt/print/PrinterJob.java b/libjava/java/awt/print/PrinterJob.java index bc5cfcd..c7dba00 100644 --- a/libjava/java/awt/print/PrinterJob.java +++ b/libjava/java/awt/print/PrinterJob.java @@ -152,6 +152,16 @@ public abstract class PrinterJob throws HeadlessException; /** + * @since 1.4 + */ + public PageFormat pageDialog(PrintRequestAttributeSet attributes) + throws HeadlessException + { + // FIXME: Implement this for real. + return pageDialog((PageFormat) null); + } + + /** * Prints the pages. */ public abstract void print () throws PrinterException; @@ -179,8 +189,12 @@ public abstract class PrinterJob * @return <code>false</code> if the user cancels the dialog box, * <code>true</code> otherwise. */ - public abstract boolean printDialog(PrintRequestAttributeSet attributes) - throws HeadlessException; + public boolean printDialog(PrintRequestAttributeSet attributes) + throws HeadlessException + { + // FIXME: Implement this for real. + return printDialog(); + } /** * This sets the pages that are to be printed. |