Package com.github.axet.desktop.os.linux
Class LinuxSysTrayGtk
- java.lang.Object
-
- com.github.axet.desktop.DesktopSysTray
-
- com.github.axet.desktop.os.linux.LinuxSysTrayGtk
-
- Direct Known Subclasses:
LinuxSysTrayAppIndicator
public class LinuxSysTrayGtk extends DesktopSysTray
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.axet.desktop.DesktopSysTray
DesktopSysTray.Listener
-
-
Field Summary
Fields Modifier and Type Field Description static IconSpaceIcon-
Fields inherited from class com.github.axet.desktop.DesktopSysTray
listeners
-
-
Constructor Summary
Constructors Constructor Description LinuxSysTrayGtk()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static GIconconvertMenuImage(Icon icon)protected voidfinalize()voidhide()voidsetIcon(Icon icon)voidsetMenu(JPopupMenu menu)voidsetTitle(String title)OSX does not show title on icons.voidshow()voidupdate()-
Methods inherited from class com.github.axet.desktop.DesktopSysTray
addListener, removeListener
-
-
-
-
Field Detail
-
SpaceIcon
public static final Icon SpaceIcon
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
setIcon
public void setIcon(Icon icon)
- Specified by:
setIconin classDesktopSysTray
-
setTitle
public void setTitle(String title)
Description copied from class:DesktopSysTrayOSX does not show title on icons.- Specified by:
setTitlein classDesktopSysTray- Parameters:
title- set main icon text
-
show
public void show()
- Specified by:
showin classDesktopSysTray
-
update
public void update()
- Specified by:
updatein classDesktopSysTray
-
hide
public void hide()
- Specified by:
hidein classDesktopSysTray
-
setMenu
public void setMenu(JPopupMenu menu)
- Specified by:
setMenuin classDesktopSysTray
-
close
public void close()
- Specified by:
closein classDesktopSysTray
-
-