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

Print this page




1223                                                            jobAttributes,
1224                                                            pageAttributes);
1225         } else {
1226             return getPrintJob(frame, jobtitle, null);
1227         }
1228     }
1229 
1230     /**
1231      * Emits an audio beep depending on native system settings and hardware
1232      * capabilities.
1233      * @since     1.1
1234      */
1235     public abstract void beep();
1236 
1237     /**
1238      * Gets the singleton instance of the system Clipboard which interfaces
1239      * with clipboard facilities provided by the native platform. This
1240      * clipboard enables data transfer between Java programs and native
1241      * applications which use native clipboard facilities.
1242      * <p>
1243      * In addition to any and all formats specified in the flavormap.properties
1244      * file, or other file specified by the <code>AWT.DnD.flavorMapFileURL
1245      * </code> Toolkit property, text returned by the system Clipboard's <code>
1246      * getTransferData()</code> method is available in the following flavors:
1247      * <ul>
1248      * <li>DataFlavor.stringFlavor</li>
1249      * <li>DataFlavor.plainTextFlavor (<b>deprecated</b>)</li>
1250      * </ul>
1251      * As with <code>java.awt.datatransfer.StringSelection</code>, if the
1252      * requested flavor is <code>DataFlavor.plainTextFlavor</code>, or an
1253      * equivalent flavor, a Reader is returned. <b>Note:</b> The behavior of
1254      * the system Clipboard's <code>getTransferData()</code> method for <code>
1255      * DataFlavor.plainTextFlavor</code>, and equivalent DataFlavors, is
1256      * inconsistent with the definition of <code>DataFlavor.plainTextFlavor
1257      * </code>. Because of this, support for <code>
1258      * DataFlavor.plainTextFlavor</code>, and equivalent flavors, is
1259      * <b>deprecated</b>.
1260      * <p>
1261      * Each actual implementation of this method should first check if there
1262      * is a security manager installed. If there is, the method should call
1263      * the security manager's {@link SecurityManager#checkPermission
1264      * checkPermission} method to check {@code AWTPermission("accessClipboard")}.
1265      *
1266      * @return    the system Clipboard




1223                                                            jobAttributes,
1224                                                            pageAttributes);
1225         } else {
1226             return getPrintJob(frame, jobtitle, null);
1227         }
1228     }
1229 
1230     /**
1231      * Emits an audio beep depending on native system settings and hardware
1232      * capabilities.
1233      * @since     1.1
1234      */
1235     public abstract void beep();
1236 
1237     /**
1238      * Gets the singleton instance of the system Clipboard which interfaces
1239      * with clipboard facilities provided by the native platform. This
1240      * clipboard enables data transfer between Java programs and native
1241      * applications which use native clipboard facilities.
1242      * <p>
1243      * In addition to any and all default formats text returned by the system
1244      * Clipboard's <code>getTransferData()</code> method is available in the
1245      * following flavors:

1246      * <ul>
1247      * <li>DataFlavor.stringFlavor</li>
1248      * <li>DataFlavor.plainTextFlavor (<b>deprecated</b>)</li>
1249      * </ul>
1250      * As with <code>java.awt.datatransfer.StringSelection</code>, if the
1251      * requested flavor is <code>DataFlavor.plainTextFlavor</code>, or an
1252      * equivalent flavor, a Reader is returned. <b>Note:</b> The behavior of
1253      * the system Clipboard's <code>getTransferData()</code> method for <code>
1254      * DataFlavor.plainTextFlavor</code>, and equivalent DataFlavors, is
1255      * inconsistent with the definition of <code>DataFlavor.plainTextFlavor
1256      * </code>. Because of this, support for <code>
1257      * DataFlavor.plainTextFlavor</code>, and equivalent flavors, is
1258      * <b>deprecated</b>.
1259      * <p>
1260      * Each actual implementation of this method should first check if there
1261      * is a security manager installed. If there is, the method should call
1262      * the security manager's {@link SecurityManager#checkPermission
1263      * checkPermission} method to check {@code AWTPermission("accessClipboard")}.
1264      *
1265      * @return    the system Clipboard