Class Menu
java.lang.Object
org.apache.maven.doxia.site.Menu
- All Implemented Interfaces:
Serializable, Cloneable
A menu in the navigation.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod addItem.clone()Method clone.booleanMethod equals.getImage()Get the image for the menu.Get the way in which the menu is inherited.getItems()Method getItems.getName()Get the name to display for the menu.getRef()Get mark this menu as reference to a pre-defined menu:reports,modulesorparent.inthashCode()Method hashCode.booleanGet if this is a reference, setting totruemeans that it will be populated in the site, whereas if it isfalse, it is populated in the parent and then inherited.voidremoveItem(MenuItem menuItem) Method removeItem.voidSet the image for the menu.voidsetInherit(String inherit) Set the way in which the menu is inherited.voidsetInheritAsRef(boolean inheritAsRef) Set if this is a reference, setting totruemeans that it will be populated in the site, whereas if it isfalse, it is populated in the parent and then inherited.voidSet a list of menu item.voidSet the name to display for the menu.voidSet mark this menu as reference to a pre-defined menu:reports,modulesorparent.toString()Method toString.
-
Constructor Details
-
Menu
public Menu()
-
-
Method Details
-
addItem
-
clone
-
equals
-
getImage
-
getInherit
Get the way in which the menu is inherited. Can be one of :top,bottomor empty. If empty the menu is not inherited (i.e. won't be exposed in sub projects) which is the default behavior. Valuebottommeans it appears below sub project's defined menus,topmeans it appears above sub project's defined menus.- Returns:
- String
-
getItems
-
getName
-
getRef
Get mark this menu as reference to a pre-defined menu:reports,modulesorparent. It will be populated at runtime with corresponding pre-defined content.- Returns:
- String
-
hashCode
-
isInheritAsRef
public boolean isInheritAsRef()Get if this is a reference, setting totruemeans that it will be populated in the site, whereas if it isfalse, it is populated in the parent and then inherited.- Returns:
- boolean
-
removeItem
Method removeItem.- Parameters:
menuItem- a menuItem object.
-
setImage
-
setInherit
Set the way in which the menu is inherited. Can be one of :top,bottomor empty. If empty the menu is not inherited (i.e. won't be exposed in sub projects) which is the default behavior. Valuebottommeans it appears below sub project's defined menus,topmeans it appears above sub project's defined menus.- Parameters:
inherit- a inherit object.
-
setInheritAsRef
public void setInheritAsRef(boolean inheritAsRef) Set if this is a reference, setting totruemeans that it will be populated in the site, whereas if it isfalse, it is populated in the parent and then inherited.- Parameters:
inheritAsRef- a inheritAsRef object.
-
setItems
-
setName
Set the name to display for the menu.- Parameters:
name- a name object.
-
setRef
Set mark this menu as reference to a pre-defined menu:reports,modulesorparent. It will be populated at runtime with corresponding pre-defined content.- Parameters:
ref- a ref object.
-
toString
-