J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2000 Sun Microsystems, Inc. All Rights Reserved. |
| 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License version 2 only, as |
| 7 | * published by the Free Software Foundation. Sun designates this |
| 8 | * particular file as subject to the "Classpath" exception as provided |
| 9 | * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 22 | * CA 95054 USA or visit www.sun.com if you need additional information or |
| 23 | * have any 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 | |
| 48 | ButtonPeer createButton(Button target) throws HeadlessException; |
| 49 | |
| 50 | TextFieldPeer createTextField(TextField target) |
| 51 | throws HeadlessException; |
| 52 | |
| 53 | ChoicePeer createChoice(Choice target) throws HeadlessException; |
| 54 | |
| 55 | LabelPeer createLabel(Label target) throws HeadlessException; |
| 56 | |
| 57 | ListPeer createList(List target) throws HeadlessException; |
| 58 | |
| 59 | CheckboxPeer createCheckbox(Checkbox target) |
| 60 | throws HeadlessException; |
| 61 | |
| 62 | ScrollbarPeer createScrollbar(Scrollbar target) |
| 63 | throws HeadlessException; |
| 64 | |
| 65 | ScrollPanePeer createScrollPane(ScrollPane target) |
| 66 | throws HeadlessException; |
| 67 | |
| 68 | TextAreaPeer createTextArea(TextArea target) |
| 69 | throws HeadlessException; |
| 70 | |
| 71 | FileDialogPeer createFileDialog(FileDialog target) |
| 72 | throws HeadlessException; |
| 73 | |
| 74 | MenuBarPeer createMenuBar(MenuBar target) throws HeadlessException; |
| 75 | |
| 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 | } |