Class MenuItem
java.lang.Object
org.apache.maven.doxia.site.decoration.LinkItem
org.apache.maven.doxia.site.decoration.MenuItem
- All Implemented Interfaces:
Serializable, Cloneable
A menu item.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod addItem.clone()Method clone.booleanMethod equals.Get a description of the menu item.getItems()Method getItems.getRef()Get a reference to a pre-defined menu item, such as a report (specified by the report goal name).inthashCode()Method hashCode.booleanGet whether to collapse children elements of an item menu (by default).voidremoveItem(MenuItem menuItem) Method removeItem.voidsetCollapse(boolean collapse) Set whether to collapse children elements of an item menu (by default).voidsetDescription(String description) Set a description of the menu item.voidSet a list of menu item.voidSet a reference to a pre-defined menu item, such as a report (specified by the report goal name).toString()Method toString.
-
Constructor Details
-
MenuItem
public MenuItem()
-
-
Method Details
-
addItem
-
clone
-
equals
-
getDescription
Get a description of the menu item. This is used on any summary pages for a menu.- Returns:
- String
-
getItems
-
getRef
Get a reference to a pre-defined menu item, such as a report (specified by the report goal name). Any elements explicitly given override those from the pre-defined reference.- Returns:
- String
-
hashCode
-
isCollapse
public boolean isCollapse()Get whether to collapse children elements of an item menu (by default).- Returns:
- boolean
-
removeItem
Method removeItem.- Parameters:
menuItem- a menuItem object.
-
setCollapse
public void setCollapse(boolean collapse) Set whether to collapse children elements of an item menu (by default).- Parameters:
collapse- a collapse object.
-
setDescription
Set a description of the menu item. This is used on any summary pages for a menu.- Parameters:
description- a description object.
-
setItems
-
setRef
Set a reference to a pre-defined menu item, such as a report (specified by the report goal name). Any elements explicitly given override those from the pre-defined reference.- Parameters:
ref- a ref object.
-
toString
-