Class Menu
java.lang.Object
org.apache.maven.doxia.site.decoration.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.getAlt()Get the alt description for the image.Get the border to use for the menu image.Get the height to use for the menu image.getImg()Get the source location of an menu image.Get the way in which the menu is inherited.getItems()Method getItems.getName()Get the name to display for the menu.Get where to place the image regarding the displayed name (left or right).getRef()Get mark this menu as reference to a pre-defined menu:reports,modulesorparent.getTitle()Get the title for the image.getWidth()Get the width to use for the menu image.inthashCode()Method hashCode.booleanGet if this is a reference, setting totruemeans that it will be populated in the project, whereas if it isfalse, it is populated in the parent and then inherited.voidremoveItem(MenuItem menuItem) Method removeItem.voidSet the alt description for the image.voidSet the border to use for the menu image.voidSet the height to use for the menu image.voidSet the source location of an menu image.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 project, 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.voidsetPosition(String position) Set where to place the image regarding the displayed name (left or right).voidSet mark this menu as reference to a pre-defined menu:reports,modulesorparent.voidSet the title for the image.voidSet the width to use for the menu image.toString()Method toString.
-
Constructor Details
-
Menu
public Menu()
-
-
Method Details
-
addItem
-
clone
-
equals
-
getAlt
-
getBorder
-
getHeight
-
getImg
-
getInherit
Get the way in which the menu is inherited. Can be one of :top,bottom.- Returns:
- String
-
getItems
-
getName
-
getPosition
Get where to place the image regarding the displayed name (left or right).- Returns:
- String
-
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
-
getTitle
-
getWidth
-
hashCode
-
isInheritAsRef
public boolean isInheritAsRef()Get if this is a reference, setting totruemeans that it will be populated in the project, whereas if it isfalse, it is populated in the parent and then inherited.- Returns:
- boolean
-
removeItem
Method removeItem.- Parameters:
menuItem- a menuItem object.
-
setAlt
Set the alt description for the image.- Parameters:
alt- a alt object.
-
setBorder
Set the border to use for the menu image.- Parameters:
border- a border object.
-
setHeight
Set the height to use for the menu image.- Parameters:
height- a height object.
-
setImg
Set the source location of an menu image.- Parameters:
img- a img object.
-
setInherit
Set the way in which the menu is inherited. Can be one of :top,bottom.- 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 project, 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.
-
setPosition
Set where to place the image regarding the displayed name (left or right).- Parameters:
position- a position 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.
-
setTitle
-
setWidth
Set the width to use for the menu image.- Parameters:
width- a width object.
-
toString
-