|
SysTray for Java v2.4.1   |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectsnoozesoft.systray4j.SysTrayMenuItem
snoozesoft.systray4j.SubMenu
This class represents a submenu. It consists of a special labeled (parent) item, and the actual submenu appearing whenever the cursor enters the client area of the parent item.
| Constructor Summary | |
SubMenu(java.lang.String label)
Constructs an empty submenu with label as the label of
its parent item. |
|
SubMenu(java.lang.String label,
java.util.Vector items)
Constructs a new submenu with label as the label of its
parent item, and the passed items as content. |
|
| Method Summary | |
void |
addItem(SysTrayMenuItem item)
Inserts an item at the top of this menu. |
void |
addItem(SysTrayMenuItem item,
int index)
Inserts an item to this menu. |
void |
addSeparator()
Inserts a separator at the top of this menu. |
void |
addSeparator(int index)
Inserts a separator to this menu. |
SysTrayMenuItem |
getItem(java.lang.String label)
Returns the first item labeled as label or null if
no such item could be found. |
SysTrayMenuItem |
getItemAt(int index)
Returns the item at position index. |
int |
getItemCount()
Getter for the size of this menu. |
void |
removeAll()
Removes all menu items. |
void |
removeItem(java.lang.Object item)
Removes the passed item from this menu. |
void |
removeItemAt(int index)
Removes the item at position index from this menu. |
void |
setItems(java.util.Vector items)
Rebuilds this menu according to the passed vector. |
| Methods inherited from class snoozesoft.systray4j.SysTrayMenuItem |
addSysTrayMenuListener, getActionCommand, getLabel, isEnabled, removeSysTrayMenuListener, setActionCommand, setEnabled, setLabel |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SubMenu(java.lang.String label)
label as the label of
its parent item.
label - The label of the new submenu.
public SubMenu(java.lang.String label,
java.util.Vector items)
label as the label of its
parent item, and the passed items as content.
label - The label of the new submenu.items - The menu items.| Method Detail |
public void addItem(SysTrayMenuItem item)
item - The new menu item.
public void addItem(SysTrayMenuItem item,
int index)
item - The new menu item.index - The position of the new menu item.public void addSeparator()
public void addSeparator(int index)
index - The position of the new separator item.public SysTrayMenuItem getItem(java.lang.String label)
label or null if
no such item could be found.
label - The label of the menu item to look for.
null.public SysTrayMenuItem getItemAt(int index)
index.
index - The position of the menu item to look for.
null if the item at the given position is
a separator.public int getItemCount()
public void removeAll()
public void removeItem(java.lang.Object item)
item - The menu item to remove.public void removeItemAt(int index)
index from this menu.
index - The position of the menu item to remove.public void setItems(java.util.Vector items)
items - The new menu items.
|
SysTray for Java v2.4.1   |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||