|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectswingwt.awt.Component
swingwt.awt.Container
swingwtx.swing.JComponent
swingwtx.custom.JTaskTrayItem
Wraps up an item on the system task tray. For Win32 - the task tray, for GTK2/XFCE4 the GNOME notification area. Additionally, allows a JPopupMenu to be assigned to popup when the user right clicks on the item. An ActionEvent is fired for a left click on the tray item.
| Nested Class Summary |
| Nested classes inherited from class swingwtx.swing.JComponent |
JComponent.InternalFrameSelectionListener |
| Field Summary | |
protected Icon |
pIcon
|
protected JPopupMenu |
popup
|
protected org.eclipse.swt.widgets.TrayItem |
ppeer
|
| Fields inherited from class swingwtx.swing.JComponent |
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, opaque, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap |
| Fields inherited from class swingwt.awt.Container |
composite, comps, containerListeners, layout, queuedValidateRequest |
| Fields inherited from interface swingwt.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JTaskTrayItem()
|
|
JTaskTrayItem(Icon icon)
|
|
JTaskTrayItem(Icon icon,
java.lang.String tooltiptext)
|
|
JTaskTrayItem(Icon icon,
java.lang.String tooltiptext,
JPopupMenu menu)
|
|
| Method Summary | |
JPopupMenu |
getPopupMenu()
Returns the popup menu |
java.lang.String |
getToolTipText()
Returns the text used by the tray icon |
void |
hide()
Hide the tray item |
void |
registerEvents()
When the component has been added to a container, this routine gets called to tell it to set up SWT listeners for all its events. |
void |
setIcon(Icon icon)
Sets the image used for the tray item |
void |
setPopupMenu(JPopupMenu menu)
Sets the popup menu used by the tray icon. |
void |
setToolTipText(java.lang.String text)
Sets the tooltip used on the tray icon |
void |
setVisible(boolean b)
Determines whether the tray item is visible. |
void |
show()
Display the tray item |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.eclipse.swt.widgets.TrayItem ppeer
protected Icon pIcon
protected JPopupMenu popup
| Constructor Detail |
public JTaskTrayItem()
public JTaskTrayItem(Icon icon)
public JTaskTrayItem(Icon icon,
java.lang.String tooltiptext)
public JTaskTrayItem(Icon icon,
java.lang.String tooltiptext,
JPopupMenu menu)
| Method Detail |
public void setIcon(Icon icon)
icon - The icon to display in the traypublic void setToolTipText(java.lang.String text)
setToolTipText in class Componenttext - The tooltip textpublic java.lang.String getToolTipText()
getToolTipText in class Componentpublic void setPopupMenu(JPopupMenu menu)
menu - The popuppublic JPopupMenu getPopupMenu()
public void setVisible(boolean b)
setVisible in class Componentb - Whether to show the tray item or notpublic void registerEvents()
Component
registerEvents in class Componentpublic void show()
show in class Componentpublic void hide()
hide in class Component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||