|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.servlet.model.IlvMenuItem
ilog.views.util.servlet.model.IlvMenu
public class IlvMenu
An implementation of a menu that contains menu items. In addition to IlvMenuItems,
an IlvMenu can also contains IlvMenuSeparators.
IlvMenuItem,
IlvMenuSeparator,
Serialized Form| Constructor Summary | |
|---|---|
IlvMenu(String label)
Creates a menu. |
|
IlvMenu(String label,
String image)
Creates a menu. |
|
IlvMenu(String label,
String image,
boolean enabled)
Creates a menu. |
|
| Method Summary | |
|---|---|
void |
addChild(IlvMenuItem menuItem)
Adds a child menu item to this menu. |
IlvMenuItem |
getChild(int index)
Returns the child at the specific index, if possible. |
ArrayList |
getChildren()
Returns the menu items children list of this menu. |
boolean |
removeChild(IlvMenuItem menuItem)
Removes a child menu item. |
boolean |
removeChild(int index)
Removes a child menu item at the specified index if possible. |
| Methods inherited from class ilog.views.util.servlet.model.IlvMenuItem |
|---|
fireActionPerformed, getActionListener, getId, getImage, getLabel, getParent, isEnabled, setActionListener, setEnabled, setId, setImage, setLabel, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMenu(String label,
String image,
boolean enabled)
label - The menu label.image - The optional image.enabled - The
public IlvMenu(String label,
String image)
label - The menu label.image - The optional image.public IlvMenu(String label)
label - The menu label.| Method Detail |
|---|
public void addChild(IlvMenuItem menuItem)
menuItem - The menu item to add.public boolean removeChild(IlvMenuItem menuItem)
menuItem - The menu item to remove.
true if the menu item was successfully removed,
false otherwise.public boolean removeChild(int index)
index - The index of the menu item to remove
true if the menu item was successfully removed,
false otherwise.public ArrayList getChildren()
public IlvMenuItem getChild(int index)
index - The index or the menu item to remove.
null otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||