Class MenuItem
java.lang.Object
org.apache.maven.doxia.site.LinkItem
org.apache.maven.doxia.site.MenuItem
- All Implemented Interfaces:
Serializable, Cloneable
A menu item.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod addItem.clone()Method clone.booleanMethod equals.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).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.
-
Field Details
-
collapse
private boolean collapseWhether to collapse children elements of an item menu (by default). -
ref
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. -
items
-
-
Constructor Details
-
MenuItem
public MenuItem()
-
-
Method Details
-
addItem
-
clone
-
equals
-
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.
-
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
-