|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jeans.trayicon.TrayIconPopup
| Constructor Summary | |
TrayIconPopup()
Create main popup menu (use for WindowsTrayIcon.setPopup()) |
|
TrayIconPopup(java.lang.String item)
Create sub menu (use for TrayIconPopup.addMenuItem()) Param item = the name of the new submenu |
|
| Method Summary | |
void |
addMenuItem(com.jeans.trayicon.TrayIconPopupItem item)
Add menu item to popup (sub)menu Param item = the item to add (instance of TrayIconPopup/TrayIconPopupSimpleItem/TrayIconPopupCh..) |
int |
getNbLevels()
Return submenu depth - used by WindowsTrayIcon.setPopup()/initPopup() |
boolean |
onSelected(int menuId)
Callback when user selects menu item (find it by comparing menu id's) Param menuId = the id of the selected item |
void |
setTrayIcon(WindowsTrayIcon trayicon,
int id,
int level)
Create menu in native library - used by WindowsTrayIcon.setPopup() Param trayicon = the owner of this menu Param id = the icon's id Param level = the level (submenu depth) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TrayIconPopup()
public TrayIconPopup(java.lang.String item)
| Method Detail |
public void addMenuItem(com.jeans.trayicon.TrayIconPopupItem item)
public int getNbLevels()
getNbLevels in interface com.jeans.trayicon.TrayIconPopupItempublic boolean onSelected(int menuId)
onSelected in interface com.jeans.trayicon.TrayIconPopupItem
public void setTrayIcon(WindowsTrayIcon trayicon,
int id,
int level)
setTrayIcon in interface com.jeans.trayicon.TrayIconPopupItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||