< prev index next >

src/java.desktop/macosx/classes/com/apple/eawt/_AppDockIconHandler.java

Print this page

        

@@ -33,10 +33,11 @@
 import sun.lwawt.macosx.CImage.Creator;
 
 class _AppDockIconHandler {
     private static native void nativeSetDockMenu(final long cmenu);
     private static native void nativeSetDockIconImage(final long image);
+    private static native void nativeSetDockIconProgress(final int value);
     private static native long nativeGetDockIconImage();
     private static native void nativeSetDockIconBadge(final String badge);
 
     PopupMenu fDockMenu = null;
 

@@ -91,10 +92,14 @@
 
     void setDockIconBadge(final String badge) {
         nativeSetDockIconBadge(badge);
     }
 
+    void setDockIconProgress(int value) {
+        nativeSetDockIconProgress(value);
+    }
+
     static Creator getCImageCreator() {
         try {
             final Method getCreatorMethod = CImage.class.getDeclaredMethod("getCreator", new Class<?>[] {});
             getCreatorMethod.setAccessible(true);
             return (Creator)getCreatorMethod.invoke(null, new Object[] {});
< prev index next >