History

My first initial commit with all of mine experimental changes.

Dmitry Kabak (userdima committed 13 years ago

Commit d37b88d1 parent 3f5b46618352 files · +2598093 −-8690Browse files

Showing the changes to java/pkg/sun/awt/ComponentFactory.java (1 of 18352 files). Show all

Unified · Split

java/pkg/sun/awt/ComponentFactory.java+96−0
@@ -0,0 +1,96 @@
1+/*
2+ * Copyright (c) 2000, Oracle and/or its affiliates. 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. Oracle designates this
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+
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+}