src/share/classes/sun/awt/AWTAccessor.java

Print this page

        

*** 25,35 **** package sun.awt; import java.awt.*; import java.awt.KeyboardFocusManager; ! import java.awt.event.*; import java.awt.geom.Point2D; import java.awt.image.BufferedImage; import sun.misc.Unsafe; import java.awt.peer.ComponentPeer; --- 25,35 ---- package sun.awt; import java.awt.*; import java.awt.KeyboardFocusManager; ! import java.awt.event.InputEvent; import java.awt.geom.Point2D; import java.awt.image.BufferedImage; import sun.misc.Unsafe; import java.awt.peer.ComponentPeer;
*** 476,495 **** * Returns whether the file dialog allows the multiple file selection. */ boolean isMultipleMode(FileDialog fileDialog); } - /** - * An accessor for the InvocationEvent class - */ - public interface InvocationEventAccessor { - /** - * Dispose an InvocationEvent (cancel it). - */ - void dispose(InvocationEvent ie); - } - /* * Accessor instances are initialized in the static initializers of * corresponding AWT classes by using setters defined below. */ private static ComponentAccessor componentAccessor; --- 476,485 ----
*** 501,511 **** private static KeyboardFocusManagerAccessor kfmAccessor; private static MenuComponentAccessor menuComponentAccessor; private static EventQueueAccessor eventQueueAccessor; private static PopupMenuAccessor popupMenuAccessor; private static FileDialogAccessor fileDialogAccessor; - private static InvocationEventAccessor invocationEventAccessor; /* * Set an accessor object for the java.awt.Component class. */ public static void setComponentAccessor(ComponentAccessor ca) { --- 491,500 ----
*** 692,714 **** unsafe.ensureClassInitialized(FileDialog.class); } return fileDialogAccessor; } - /** - * Set an accessor object for the java.awt.event.InvocationEvent class. - */ - public static void setInvocationEventAccessor(InvocationEventAccessor iea) { - invocationEventAccessor = iea; - } - - /** - * Retrieve the accessor object for the java.awt.event.InvocationEvent class. - */ - public static InvocationEventAccessor getInvocationEventAccessor() { - if (invocationEventAccessor == null) { - unsafe.ensureClassInitialized(InvocationEvent.class); - } - return invocationEventAccessor; - } - } --- 681,686 ----