8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.awt; 27 28 import java.awt.*; 29 import java.awt.dnd.*; 30 import java.awt.dnd.peer.DragSourceContextPeer; 31 import java.awt.peer.*; 32 33 /** 34 * Interface for component creation support in toolkits 35 */ 36 public interface ComponentFactory { 37 38 CanvasPeer createCanvas(Canvas target) throws HeadlessException; 39 40 PanelPeer createPanel(Panel target) throws HeadlessException; 41 42 WindowPeer createWindow(Window target) throws HeadlessException; 43 44 FramePeer createFrame(Frame target) throws HeadlessException; 45 46 DialogPeer createDialog(Dialog target) throws HeadlessException; 47 76 MenuPeer createMenu(Menu target) throws HeadlessException; 77 78 PopupMenuPeer createPopupMenu(PopupMenu target) 79 throws HeadlessException; 80 81 MenuItemPeer createMenuItem(MenuItem target) 82 throws HeadlessException; 83 84 CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target) 85 throws HeadlessException; 86 87 DragSourceContextPeer createDragSourceContextPeer( 88 DragGestureEvent dge) 89 throws InvalidDnDOperationException, HeadlessException; 90 91 FontPeer getFontPeer(String name, int style); 92 93 RobotPeer createRobot(Robot target, GraphicsDevice screen) 94 throws AWTException, HeadlessException; 95 96 } | 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.awt; 27 28 import sun.awt.datatransfer.DataTransferer; 29 30 import java.awt.*; 31 import java.awt.dnd.*; 32 import java.awt.dnd.peer.DragSourceContextPeer; 33 import java.awt.peer.*; 34 35 /** 36 * Interface for component creation support in toolkits 37 */ 38 public interface ComponentFactory { 39 40 CanvasPeer createCanvas(Canvas target) throws HeadlessException; 41 42 PanelPeer createPanel(Panel target) throws HeadlessException; 43 44 WindowPeer createWindow(Window target) throws HeadlessException; 45 46 FramePeer createFrame(Frame target) throws HeadlessException; 47 48 DialogPeer createDialog(Dialog target) throws HeadlessException; 49 78 MenuPeer createMenu(Menu target) throws HeadlessException; 79 80 PopupMenuPeer createPopupMenu(PopupMenu target) 81 throws HeadlessException; 82 83 MenuItemPeer createMenuItem(MenuItem target) 84 throws HeadlessException; 85 86 CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target) 87 throws HeadlessException; 88 89 DragSourceContextPeer createDragSourceContextPeer( 90 DragGestureEvent dge) 91 throws InvalidDnDOperationException, HeadlessException; 92 93 FontPeer getFontPeer(String name, int style); 94 95 RobotPeer createRobot(Robot target, GraphicsDevice screen) 96 throws AWTException, HeadlessException; 97 98 DataTransferer getDataTransferer(); 99 100 } |