TaskbarPeer interface provides methods for interacting with
system task area.
| Modifier and Type | Method and Description |
|---|---|
| public default Image | Returns: an image of this application's iconObtains an image of this application's icon. |
| public default PopupMenu | Returns: the PopupMenuGets PopupMenu used to add items to this application's icon in system task area. |
| public default boolean | Returns: true if feature supported supportedfeature to test fTests support of |
| public default void | requestUserAttention(boolean
disables this request if false enabled, final boolean if this is an important request critical)Requests user attention to this application. |
| public default void | |
| public default void | setIconBadge(final String
label to affix to the icon badge)Affixes a small system-provided badge to this application's icon. |
| public default void | |
| public default void | |
| public default void | setProgressValue(int
from 0 to 100, other to disable progress indication value)Affixes a small system-provided progress bar to this application's icon. |
| public default void | setWindowIconBadge(Window
window to update w, final Image image to affix to the icon badge)Affixes a small badge to this application's icon in task area for the specified window. |
| public default void | setWindowProgressState(Window
window w, Taskbar.to change to stateSets a progress state for a specified window. |
| public default void | setWindowProgressValue(Window
window to update w, int from 0 to 100, other to disable progress indication value)Displays progress for specified window. |
| getIconImage | back to summary |
|---|---|
| public default Image getIconImage() Obtains an image of this application's icon.
| |
| getMenu | back to summary |
|---|---|
| public default PopupMenu getMenu() Gets PopupMenu used to add items to this application's icon in system task area.
| |
| isSupported | back to summary |
|---|---|
| public default boolean isSupported(Taskbar. Tests support of | |
| requestUserAttention | back to summary |
|---|---|
| public default void requestUserAttention(boolean enabled, final boolean critical) Requests user attention to this application.
| |
| requestWindowUserAttention | back to summary |
|---|---|
| public default void requestWindowUserAttention(Window w) Requests user attention to the specified window.
| |
| setIconBadge | back to summary |
|---|---|
| public default void setIconBadge(final String badge) Affixes a small system-provided badge to this application's icon. Usually a number.
| |
| setIconImage | back to summary |
|---|---|
| public default void setIconImage(final Image image) Changes this application's icon to the provided image.
| |
| setMenu | back to summary |
|---|---|
| public default void setMenu(final PopupMenu menu) Attaches the contents of the provided PopupMenu to the application icon in system task area.
| |
| setProgressValue | back to summary |
|---|---|
| public default void setProgressValue(int value) Affixes a small system-provided progress bar to this application's icon.
| |
| setWindowIconBadge | back to summary |
|---|---|
| public default void setWindowIconBadge(Window w, final Image badge) Affixes a small badge to this application's icon in task area for the specified window. | |
| setWindowProgressState | back to summary |
|---|---|
| public default void setWindowProgressState(Window w, Taskbar. Sets a progress state for a specified window.
| |
| setWindowProgressValue | back to summary |
|---|---|
| public default void setWindowProgressValue(Window w, int value) Displays progress for specified window.
| |