|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jeans.trayicon.TrayIconPopupSimpleItem
| Constructor Summary | |
TrayIconPopupSimpleItem(java.lang.String item)
Create a new menu item Param item = name of new item |
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener listener)
Add an ActionLister to this menu item Just like with java.awt.Button or javax.swing.JButton Param listener = your listener |
java.lang.String |
getName()
Return the name of this item |
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 |
setDefault(boolean def)
Set item as default Param def = set item as default? |
void |
setEnabled(boolean enable)
Enable/Disable item Param enable = enable/disable 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 TrayIconPopupSimpleItem(java.lang.String item)
| Method Detail |
public java.lang.String getName()
public void addActionListener(java.awt.event.ActionListener listener)
public int getNbLevels()
getNbLevels in interface com.jeans.trayicon.TrayIconPopupItempublic void setEnabled(boolean enable)
public void setDefault(boolean def)
public 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 | ||||||||||