java.lang.Object
java.awt.TrayIcon
com.amirali.fxdialogs.FXTrayIcon
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.TrayIcon
TrayIcon.MessageType
-
Constructor Summary
ConstructorDescriptionFXTrayIcon
(@NotNull Image image) initial FXTrayIconFXTrayIcon
(@NotNull Image image, @NotNull String tooltip) initial FXTrayIconFXTrayIcon
(@NotNull Image image, @NotNull String tooltip, @NotNull javafx.scene.control.ContextMenu menu) initial FXTrayIconFXTrayIcon
(@NotNull Image image, @NotNull javafx.scene.control.ContextMenu menu) initial FXTrayIcon -
Method Summary
Modifier and TypeMethodDescriptionjavafx.collections.ObservableList<String>
stylesheets of the context menu owner windowMethods inherited from class java.awt.TrayIcon
addActionListener, addMouseListener, addMouseMotionListener, displayMessage, getActionCommand, getActionListeners, getImage, getMouseListeners, getMouseMotionListeners, getPopupMenu, getSize, getToolTip, isImageAutoSize, removeActionListener, removeMouseListener, removeMouseMotionListener, setActionCommand, setImage, setImageAutoSize, setPopupMenu, setToolTip
-
Constructor Details
-
FXTrayIcon
public FXTrayIcon(@NotNull @NotNull Image image, @NotNull @NotNull javafx.scene.control.ContextMenu menu) initial FXTrayIcon- Parameters:
image
- tray icon imagemenu
- tray icon menu
-
FXTrayIcon
public FXTrayIcon(@NotNull @NotNull Image image, @NotNull @NotNull String tooltip, @NotNull @NotNull javafx.scene.control.ContextMenu menu) initial FXTrayIcon- Parameters:
image
- tray icon imagetooltip
- tray icon tooltip textmenu
- tray icon menu
-
FXTrayIcon
initial FXTrayIcon- Parameters:
image
- tray icon image
-
FXTrayIcon
initial FXTrayIcon- Parameters:
image
- tray icon imagetooltip
- tray icon tooltip text
-
-
Method Details
-
getStylesheets
stylesheets of the context menu owner window- Returns:
- ObservableList
- Throws:
NullPointerException
- context menu is null or empty
-