|
SysTray for Java v2.4.1 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnoozesoft.systray4j.SysTrayMenuItem
This class represents a labeled menu item. Interested listeners are called whenever this item is clicked.
Constructor Summary | |
SysTrayMenuItem(java.lang.String label)
Creates a new SysTrayMenuItem object. |
|
SysTrayMenuItem(java.lang.String label,
java.lang.String actionCommand)
Creates a new SysTrayMenuItem object. |
Method Summary | |
void |
addSysTrayMenuListener(SysTrayMenuListener listener)
Adds the specified listener to receive events from this menu item. |
java.lang.String |
getActionCommand()
Getter for the emitted action command. |
java.lang.String |
getLabel()
Getter for the item label. |
boolean |
isEnabled()
Method to check whether this item is enabled. |
void |
removeSysTrayMenuListener(SysTrayMenuListener listener)
Removes the specified listener so that it no longer receives events from this menu item. |
void |
setActionCommand(java.lang.String actionCommand)
Setter for the emitted action command. |
void |
setEnabled(boolean enabled)
Enables/disables this item. |
void |
setLabel(java.lang.String label)
Setter for the item label. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SysTrayMenuItem(java.lang.String label)
SysTrayMenuItem
object.
label
- The label of the item.public SysTrayMenuItem(java.lang.String label, java.lang.String actionCommand)
SysTrayMenuItem
object.
label
- The label of the item.actionCommand
- The action command emitted when this item is clicked.Method Detail |
public void addSysTrayMenuListener(SysTrayMenuListener listener)
listener
- The systray menu listener.public java.lang.String getActionCommand()
public java.lang.String getLabel()
public boolean isEnabled()
public void removeSysTrayMenuListener(SysTrayMenuListener listener)
listener
- The systray menu listener.public void setActionCommand(java.lang.String actionCommand)
actionCommand
- The action command emitted when this item is clicked.public void setEnabled(boolean enabled)
enabled
- Value to enable/disable this item.public void setLabel(java.lang.String label)
label
- The label of this item.
|
SysTray for Java v2.4.1 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |