src/share/classes/java/awt/Toolkit.java

Print this page




1222      * @see     java.lang.RuntimePermission
1223      * @see     java.awt.JobAttributes
1224      * @see     java.awt.PageAttributes
1225      * @since   1.3
1226      */
1227     public PrintJob getPrintJob(Frame frame, String jobtitle,
1228                                 JobAttributes jobAttributes,
1229                                 PageAttributes pageAttributes) {
1230         // Override to add printing support with new job/page control classes
1231 
1232         if (this != Toolkit.getDefaultToolkit()) {
1233             return Toolkit.getDefaultToolkit().getPrintJob(frame, jobtitle,
1234                                                            jobAttributes,
1235                                                            pageAttributes);
1236         } else {
1237             return getPrintJob(frame, jobtitle, null);
1238         }
1239     }
1240 
1241     /**
1242      * Emits an audio beep.






1243      * @since     JDK1.1
1244      */
1245     public abstract void beep();
1246 
1247     /**
1248      * Gets the singleton instance of the system Clipboard which interfaces
1249      * with clipboard facilities provided by the native platform. This
1250      * clipboard enables data transfer between Java programs and native
1251      * applications which use native clipboard facilities.
1252      * <p>
1253      * In addition to any and all formats specified in the flavormap.properties
1254      * file, or other file specified by the <code>AWT.DnD.flavorMapFileURL
1255      * </code> Toolkit property, text returned by the system Clipboard's <code>
1256      * getTransferData()</code> method is available in the following flavors:
1257      * <ul>
1258      * <li>DataFlavor.stringFlavor</li>
1259      * <li>DataFlavor.plainTextFlavor (<b>deprecated</b>)</li>
1260      * </ul>
1261      * As with <code>java.awt.datatransfer.StringSelection</code>, if the
1262      * requested flavor is <code>DataFlavor.plainTextFlavor</code>, or an




1222      * @see     java.lang.RuntimePermission
1223      * @see     java.awt.JobAttributes
1224      * @see     java.awt.PageAttributes
1225      * @since   1.3
1226      */
1227     public PrintJob getPrintJob(Frame frame, String jobtitle,
1228                                 JobAttributes jobAttributes,
1229                                 PageAttributes pageAttributes) {
1230         // Override to add printing support with new job/page control classes
1231 
1232         if (this != Toolkit.getDefaultToolkit()) {
1233             return Toolkit.getDefaultToolkit().getPrintJob(frame, jobtitle,
1234                                                            jobAttributes,
1235                                                            pageAttributes);
1236         } else {
1237             return getPrintJob(frame, jobtitle, null);
1238         }
1239     }
1240 
1241     /**
1242      * Emits an audio beep using the corresponding system function:
1243      * <ul>
1244      * <li>on Windows it's <code>MessageBeep(MB_OK)</code></li>
1245      * <li>on Mac OS X - <code>NSBeep()</code></li>
1246      * <li>on Solaris and Linux - <code>XBell()</code></li>
1247      * </ul>
1248      * Thus, emitting depends on system settings and hardware capabilities.
1249      * @since     JDK1.1
1250      */
1251     public abstract void beep();
1252 
1253     /**
1254      * Gets the singleton instance of the system Clipboard which interfaces
1255      * with clipboard facilities provided by the native platform. This
1256      * clipboard enables data transfer between Java programs and native
1257      * applications which use native clipboard facilities.
1258      * <p>
1259      * In addition to any and all formats specified in the flavormap.properties
1260      * file, or other file specified by the <code>AWT.DnD.flavorMapFileURL
1261      * </code> Toolkit property, text returned by the system Clipboard's <code>
1262      * getTransferData()</code> method is available in the following flavors:
1263      * <ul>
1264      * <li>DataFlavor.stringFlavor</li>
1265      * <li>DataFlavor.plainTextFlavor (<b>deprecated</b>)</li>
1266      * </ul>
1267      * As with <code>java.awt.datatransfer.StringSelection</code>, if the
1268      * requested flavor is <code>DataFlavor.plainTextFlavor</code>, or an