|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.navigator.menu.MenuBase net.sf.navigator.menu.MenuComponent
public class MenuComponent
This class extends MenuBase
and basically contains helper methods
for adding and fetching children and parents.
Field Summary | |
---|---|
protected static MenuComponent[] |
_menuComponent
|
protected List |
menuComponents
|
protected MenuComponent |
parentMenu
|
Fields inherited from class net.sf.navigator.menu.MenuBase |
---|
action, align, altImage, description, forward, height, image, location, module, name, onclick, onContextMenu, ondblclick, onmouseout, onmouseover, page, roles, target, title, toolTip, width |
Constructor Summary | |
---|---|
MenuComponent()
|
Method Summary | |
---|---|
void |
addMenuComponent(MenuComponent menuComponent)
|
boolean |
equals(Object o)
This method compares all attributes, except for parent and children |
String |
getBreadCrumb()
|
List |
getComponents()
Convenience method for Velocity templates |
MenuComponent[] |
getMenuComponents()
|
int |
getMenuDepth()
Get the depth of the menu |
MenuComponent |
getParent()
|
boolean |
isLast()
Returns the last. |
void |
removeChildren()
Remove all children from a parent menu item |
protected void |
setBreadCrumb(String delimiter)
Build the breadcrumb trail leading to this menuComponent |
void |
setLast(boolean last)
Sets the last. |
void |
setMenuComponents(MenuComponent[] menuComponents)
|
void |
setParent(MenuComponent parentMenu)
|
String |
toString()
|
Methods inherited from class net.sf.navigator.menu.MenuBase |
---|
getAction, getAlign, getAltImage, getDescription, getForward, getHeight, getImage, getLocation, getModule, getName, getOnclick, getOnContextMenu, getOndblclick, getOnmouseout, getOnmouseover, getPage, getRoles, getTarget, getTitle, getToolTip, getUrl, getWidth, setAction, setAlign, setAltImage, setDescription, setForward, setHeight, setImage, setLocation, setModule, setName, setOnclick, setOnContextMenu, setOndblclick, setOnmouseout, setOnmouseover, setPage, setRoles, setTarget, setTitle, setToolTip, setUrl, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.navigator.menu.Component |
---|
getName, setName |
Field Detail |
---|
protected static MenuComponent[] _menuComponent
protected List menuComponents
protected MenuComponent parentMenu
Constructor Detail |
---|
public MenuComponent()
Method Detail |
---|
public void addMenuComponent(MenuComponent menuComponent)
public MenuComponent[] getMenuComponents()
public void setMenuComponents(MenuComponent[] menuComponents)
public void setParent(MenuComponent parentMenu)
public MenuComponent getParent()
public List getComponents()
public boolean equals(Object o)
equals
in class Object
o
- the object to compare topublic int getMenuDepth()
public boolean isLast()
public void setLast(boolean last)
last
- The last to setpublic void removeChildren()
public String getBreadCrumb()
protected void setBreadCrumb(String delimiter)
delimiter
- type of separatorpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |