src/share/classes/sun/swing/SwingAccessor.java

Print this page

        

@@ -70,13 +70,28 @@
         Object setDropLocation(JTextComponent textComp, TransferHandler.DropLocation location,
                                Object state, boolean forDrop);
     }
 
     /**
+     * An accessor for the sun.swing.JLightweightFrame class
+     */
+    public interface JLightweightFrameAccessor {
+
+        /*
+         * Returns the content LightweightContent for the frame
+         */
+        LightweightContent getLightweightContent(JLightweightFrame frame);
+    }
+
+    /**
      * The javax.swing.text.JTextComponent class accessor object.
      */
     private static JTextComponentAccessor jtextComponentAccessor;
+    /**
+     * The sun.swing.JLightweightFrame class accessor object
+     */
+    private static JLightweightFrameAccessor jLightweightFrameAccessor;
 
     /**
      * Set an accessor object for the javax.swing.text.JTextComponent class.
      */
     public static void setJTextComponentAccessor(JTextComponentAccessor jtca) {

@@ -91,6 +106,20 @@
             unsafe.ensureClassInitialized(JTextComponent.class);
         }
 
         return jtextComponentAccessor;
     }
+
+    /**
+     * Set an accessor object for sun.swing.JLightweightFrame class
+     */
+    public static void setJLightweightFrameAccessor(JLightweightFrameAccessor accessor) {
+        jLightweightFrameAccessor = accessor;
+    }
+
+    /**
+     * Retrieve an accessor object for sun.swing.JLightweightFrame class
+     */
+    public static JLightweightFrameAccessor getJLightweightFrameAccessor() {
+        return jLightweightFrameAccessor;
+    }
 }