< prev index next >

src/java.desktop/share/classes/java/awt/peer/TaskbarPeer.java

Print this page

        

@@ -23,16 +23,16 @@
  * questions.
  */
 
 package java.awt.peer;
 
+import java.awt.Frame;
 import java.awt.Image;
 import java.awt.PopupMenu;
 import java.awt.Taskbar;
 import java.awt.Taskbar.Feature;
 import java.awt.Taskbar.State;
-import java.awt.Window;
 
 
 /**
  * The {@code TaskbarPeer} interface provides methods for interacting with
  * system task area.

@@ -49,13 +49,13 @@
     default void requestUserAttention(boolean enabled, final boolean critical) {}
 
     /**
      * Requests user attention to the specified window.
      *
-     * @param w window
+     * @param f frame
      */
-    default void requestWindowUserAttention(Window w) {}
+    default void requestWindowUserAttention(Frame w) {}
 
     /**
      * Attaches the contents of the provided PopupMenu to the application icon
      * in system task area.
      *

@@ -94,31 +94,31 @@
 
     /**
      * Affixes a small badge to this application's icon in task area
      * for the specified window.
      *
-     * @param w window to update
+     * @param f frame to update
      * @param badge image to affix to the icon
      */
-    default void setWindowIconBadge(Window w, final Image badge) {}
+    default void setWindowIconBadge(Frame f, final Image badge) {}
 
     /**
      * Displays progress for specified window.
      *
-     * @param w window to update
+     * @param f frame to update
      * @param value from 0 to 100, other to disable progress indication
      */
-    default void setWindowProgressValue(Window w, int value) {}
+    default void setWindowProgressValue(Frame f, int value) {}
 
     /**
      * Sets a progress state for a specified window.
      *
-     * @param w window
+     * @param f frame
      * @param state to change to
      * @see Taskbar#setWindowProgressState
      */
-    default void setWindowProgressState(Window w, State state) {}
+    default void setWindowProgressState(Frame f, State state) {}
 
     /**
      * Affixes a small system-provided progress bar to this application's icon.
      *
      * @param value from 0 to 100, other to disable progress indication
< prev index next >