jdk/src/java.desktop/share/classes/sun/awt/HeadlessToolkit.java
author ddehaven
Tue, 19 Aug 2014 10:32:16 -0700
changeset 26037 508779ce6619
parent 26011 jdk/src/share/classes/sun/awt/HeadlessToolkit.java@0fa4f1bd2843
parent 25859 jdk/src/share/classes/sun/awt/HeadlessToolkit.java@3317bb8137f4
child 30471 c1568a2416a8
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 13648
diff changeset
     2
 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2809
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2809
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2809
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2809
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2809
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.awt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
26011
0fa4f1bd2843 8051588: DataTransferer.getInstance throws ClassCastException in headless mode
pchelko
parents: 24538
diff changeset
    28
import sun.awt.datatransfer.DataTransferer;
0fa4f1bd2843 8051588: DataTransferer.getInstance throws ClassCastException in headless mode
pchelko
parents: 24538
diff changeset
    29
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.awt.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.awt.dnd.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.awt.dnd.peer.DragSourceContextPeer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.awt.event.*;
24538
25bf8153fbfe 8039642: Fix raw and unchecked warnings in sun.awt.*
henryjen
parents: 23010
diff changeset
    34
import java.awt.font.TextAttribute;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import java.awt.im.InputMethodHighlight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import java.awt.image.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import java.awt.datatransfer.Clipboard;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import java.awt.peer.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
import java.beans.PropertyChangeListener;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
import java.net.URL;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
import java.util.Map;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
import java.util.Properties;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
public class HeadlessToolkit extends Toolkit
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    implements ComponentFactory, KeyboardFocusManagerPeerProvider {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
13648
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    47
    private static final KeyboardFocusManagerPeer kfmPeer = new KeyboardFocusManagerPeer() {
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    48
        public void setCurrentFocusedWindow(Window win) {}
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    49
        public Window getCurrentFocusedWindow() { return null; }
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    50
        public void setCurrentFocusOwner(Component comp) {}
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    51
        public Component getCurrentFocusOwner() { return null; }
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    52
        public void clearGlobalFocusOwner(Window activeWindow) {}
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    53
    };
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
    54
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    private Toolkit tk;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    private ComponentFactory componentFactory;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    public HeadlessToolkit(Toolkit tk) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        this.tk = tk;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
        if (tk instanceof ComponentFactory) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
            componentFactory = (ComponentFactory)tk;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    public Toolkit getUnderlyingToolkit() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        return tk;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * Component peer objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    /* Lightweight implementation of Canvas and Panel */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    public CanvasPeer createCanvas(Canvas target) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        return (CanvasPeer)createComponent(target);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public PanelPeer createPanel(Panel target) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        return (PanelPeer)createComponent(target);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * Component peer objects - unsupported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    public WindowPeer createWindow(Window target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    public FramePeer createFrame(Frame target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    public DialogPeer createDialog(Dialog target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    public ButtonPeer createButton(Button target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    public TextFieldPeer createTextField(TextField target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    public ChoicePeer createChoice(Choice target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    public LabelPeer createLabel(Label target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    public ListPeer createList(List target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    public CheckboxPeer createCheckbox(Checkbox target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    public ScrollbarPeer createScrollbar(Scrollbar target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    public ScrollPanePeer createScrollPane(ScrollPane target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    public TextAreaPeer createTextArea(TextArea target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    public FileDialogPeer createFileDialog(FileDialog target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    public MenuBarPeer createMenuBar(MenuBar target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    public MenuPeer createMenu(Menu target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    public PopupMenuPeer createPopupMenu(PopupMenu target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    public MenuItemPeer createMenuItem(MenuItem target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    public CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    public DragSourceContextPeer createDragSourceContextPeer(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
        DragGestureEvent dge)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        throws InvalidDnDOperationException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        throw new InvalidDnDOperationException("Headless environment");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    public RobotPeer createRobot(Robot target, GraphicsDevice screen)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        throws AWTException, HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
13648
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
   188
    public KeyboardFocusManagerPeer getKeyboardFocusManagerPeer() {
2809
b373581f6507 6833019: KeyboardFocusManager.getCurrentKeyboardFocusManager() throws unspecified HeadlessException
ant
parents: 2464
diff changeset
   189
        // See 6833019.
13648
90effcfc064f 7124375: [macosx] Focus isn't transfered as expected between components
leonidr
parents: 11264
diff changeset
   190
        return kfmPeer;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    public TrayIconPeer createTrayIcon(TrayIcon target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
      throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    public SystemTrayPeer createSystemTray(SystemTray target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
      throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    public boolean isTraySupported() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    public GlobalCursorManager getGlobalCursorManager()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * Headless toolkit - unsupported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    protected void loadSystemColors(int[] systemColors)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    public ColorModel getColorModel()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    public int getScreenResolution()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
24538
25bf8153fbfe 8039642: Fix raw and unchecked warnings in sun.awt.*
henryjen
parents: 23010
diff changeset
   230
    public Map<TextAttribute, ?> mapInputMethodHighlight(InputMethodHighlight highlight)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    public int getMenuShortcutKeyMask()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    public boolean getLockingKeyState(int keyCode)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
        throws UnsupportedOperationException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    public void setLockingKeyState(int keyCode, boolean on)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
        throws UnsupportedOperationException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    public Cursor createCustomCursor(Image cursor, Point hotSpot, String name)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
        throws IndexOutOfBoundsException, HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    public Dimension getBestCursorSize(int preferredWidth, int preferredHeight)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
    public int getMaximumCursorColors()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    public <T extends DragGestureRecognizer> T
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
        createDragGestureRecognizer(Class<T> abstractRecognizerClass,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
                                    DragSource ds, Component c,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
                                    int srcActions, DragGestureListener dgl)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
        return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
    public int getScreenHeight()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
    public int getScreenWidth()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
    public Dimension getScreenSize()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
    public Insets getScreenInsets(GraphicsConfiguration gc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
    public void setDynamicLayout(boolean dynamic)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    protected boolean isDynamicLayoutSet()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
    public boolean isDynamicLayoutActive()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
    public Clipboard getSystemClipboard()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
        throws HeadlessException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * Printing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
    public PrintJob getPrintJob(Frame frame, String jobtitle,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
        JobAttributes jobAttributes,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
        PageAttributes pageAttributes) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
        if (frame != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
            // Should never happen
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
            throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
        }
8947
35ff89272f4f 7023011: Toolkit.getPrintJob(Frame,String,Properties) throws HE instead of specified NPE
dav
parents: 5506
diff changeset
   323
        throw new NullPointerException("frame must not be null");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
    public PrintJob getPrintJob(Frame frame, String doctitle, Properties props)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
        if (frame != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
            // Should never happen
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
            throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
        }
8947
35ff89272f4f 7023011: Toolkit.getPrintJob(Frame,String,Properties) throws HE instead of specified NPE
dav
parents: 5506
diff changeset
   332
        throw new NullPointerException("frame must not be null");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * Headless toolkit - supported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
    public void sync() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
        // Do nothing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
    public void beep() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
        // Send alert character
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
        System.out.write(0x07);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     * Event Queue
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
    public EventQueue getSystemEventQueueImpl() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
        return SunToolkit.getSystemEventQueueImplPP();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
     * Images.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
    public int checkImage(Image img, int w, int h, ImageObserver o) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
        return tk.checkImage(img, w, h, o);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
    public boolean prepareImage(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
        Image img, int w, int h, ImageObserver o) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
        return tk.prepareImage(img, w, h, o);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
    public Image getImage(String filename) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
        return tk.getImage(filename);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
    public Image getImage(URL url) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
        return tk.getImage(url);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
    public Image createImage(String filename) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
        return tk.createImage(filename);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
    public Image createImage(URL url) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
        return tk.createImage(url);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
    public Image createImage(byte[] data, int offset, int length) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
        return tk.createImage(data, offset, length);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
    public Image createImage(ImageProducer producer) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
        return tk.createImage(producer);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
    public Image createImage(byte[] imagedata) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
        return tk.createImage(imagedata);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
     * Fonts
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     */
11264
54f2f4c6bd30 7117008: Warnings cleanup day: reduce number of javac warnings in the sun.awt package
art
parents: 8947
diff changeset
   399
    @SuppressWarnings("deprecation")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
    public FontPeer getFontPeer(String name, int style) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
        if (componentFactory != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
            return componentFactory.getFontPeer(name, style);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
        return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
26011
0fa4f1bd2843 8051588: DataTransferer.getInstance throws ClassCastException in headless mode
pchelko
parents: 24538
diff changeset
   407
    @Override
0fa4f1bd2843 8051588: DataTransferer.getInstance throws ClassCastException in headless mode
pchelko
parents: 24538
diff changeset
   408
    public DataTransferer getDataTransferer() {
0fa4f1bd2843 8051588: DataTransferer.getInstance throws ClassCastException in headless mode
pchelko
parents: 24538
diff changeset
   409
        return null;
0fa4f1bd2843 8051588: DataTransferer.getInstance throws ClassCastException in headless mode
pchelko
parents: 24538
diff changeset
   410
    }
0fa4f1bd2843 8051588: DataTransferer.getInstance throws ClassCastException in headless mode
pchelko
parents: 24538
diff changeset
   411
11264
54f2f4c6bd30 7117008: Warnings cleanup day: reduce number of javac warnings in the sun.awt package
art
parents: 8947
diff changeset
   412
    @SuppressWarnings("deprecation")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
    public FontMetrics getFontMetrics(Font font) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
        return tk.getFontMetrics(font);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
11264
54f2f4c6bd30 7117008: Warnings cleanup day: reduce number of javac warnings in the sun.awt package
art
parents: 8947
diff changeset
   417
    @SuppressWarnings("deprecation")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    public String[] getFontList() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
        return tk.getFontList();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * Desktop properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    public void addPropertyChangeListener(String name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
        PropertyChangeListener pcl) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
        tk.addPropertyChangeListener(name, pcl);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
    public void removePropertyChangeListener(String name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
        PropertyChangeListener pcl) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
        tk.removePropertyChangeListener(name, pcl);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     * Modality
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
    public boolean isModalityTypeSupported(Dialog.ModalityType modalityType) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
        return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
    public boolean isModalExclusionTypeSupported(Dialog.ModalExclusionType exclusionType) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
        return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * Always on top
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
    public boolean isAlwaysOnTopSupported() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
        return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * AWT Event listeners
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
    public void addAWTEventListener(AWTEventListener listener,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
        long eventMask) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
        tk.addAWTEventListener(listener, eventMask);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
    public void removeAWTEventListener(AWTEventListener listener) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
        tk.removeAWTEventListener(listener);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
    public AWTEventListener[] getAWTEventListeners() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
        return tk.getAWTEventListeners();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
1957
1da46e48ada5 6738181: api/java_awt/Toolkit/index.html#GetAWTEventListeners Fails with:empty array returned unexpectedly
dav
parents: 2
diff changeset
   471
    public AWTEventListener[] getAWTEventListeners(long eventMask) {
1da46e48ada5 6738181: api/java_awt/Toolkit/index.html#GetAWTEventListeners Fails with:empty array returned unexpectedly
dav
parents: 2
diff changeset
   472
        return tk.getAWTEventListeners(eventMask);
1da46e48ada5 6738181: api/java_awt/Toolkit/index.html#GetAWTEventListeners Fails with:empty array returned unexpectedly
dav
parents: 2
diff changeset
   473
    }
1da46e48ada5 6738181: api/java_awt/Toolkit/index.html#GetAWTEventListeners Fails with:empty array returned unexpectedly
dav
parents: 2
diff changeset
   474
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
    public boolean isDesktopSupported() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
        return false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
    public DesktopPeer createDesktopPeer(Desktop target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    throws HeadlessException{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
        throw new HeadlessException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    }
1962
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 1957
diff changeset
   483
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 1957
diff changeset
   484
    public boolean areExtraMouseButtonsEnabled() throws HeadlessException{
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 1957
diff changeset
   485
        throw new HeadlessException();
6c293d33645b 6315717: Support for mouse with multiple scroll wheels and 4 or more buttons
dav
parents: 1957
diff changeset
   486
    }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
}