|
Knopflerfish OSGi 1.3.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Service interface that should be registered into framework by bundles publishing "Tray Icons".
As soon as a TrayIcon service is registered, the Tray Icon Manager will pick up the service, read the name, icon, menu and start message, and will try to publish the icon in a system dependent manner.
This interface extends MouseListener and ActionListener. The methods in thise interfaces will be called appropiately at mouse or action events on the actual tray icon.
Field Summary | |
static java.lang.String |
PROP_NAME
|
Method Summary | |
java.lang.String |
getId()
Unique id of this tray item. |
java.net.URL |
getImageURL()
URL pointing to image icon for the tray item. |
java.lang.String |
getName()
Human-readable name of this tray item, displayed as tooltip. |
java.lang.String |
getStartupMessage()
Initial start up message, displayed in a tray balloon, if possible. |
javax.swing.JPopupMenu |
getTrayJPopupMenu()
Get menu for this item. |
void |
trayEvent(TrayEvent ev)
Called at clicks etc on the tray item. |
Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
Methods inherited from interface java.awt.event.MouseListener |
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
Field Detail |
public static final java.lang.String PROP_NAME
Method Detail |
public java.lang.String getId()
public java.lang.String getName()
public java.net.URL getImageURL()
public java.lang.String getStartupMessage()
public javax.swing.JPopupMenu getTrayJPopupMenu()
Note: The menu instance returned by this method may, or may not be used directly for display. Depending on the implementation of tray icons, the returned menu may be wrapped or copied into another structure. The returned swing menu should in this case be viewed as menu data model, rather than a menu view.
ActionListeners and getText/setText/getState/setState on the original, returned instance are however guaranteed to work.
public void trayEvent(TrayEvent ev)
|
Knopflerfish OSGi 1.3.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |