Class MenuItem
- java.lang.Object
-
- org.apache.maven.doxia.site.decoration.LinkItem
-
- org.apache.maven.doxia.site.decoration.MenuItem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class MenuItem extends LinkItem implements java.io.Serializable, java.lang.Cloneable
A menu item.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleancollapseWhether to collapse children elements of an item menu (by default).private java.lang.StringdescriptionA description of the menu item.private java.util.List<MenuItem>itemsField items.private java.lang.StringrefA reference to a pre-defined menu item, such as a report (specified by the report goal name).
-
Constructor Summary
Constructors Constructor Description MenuItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(MenuItem menuItem)Method addItem.MenuItemclone()Method clone.booleanequals(java.lang.Object other)Method equals.java.lang.StringgetDescription()Get a description of the menu item.java.util.List<MenuItem>getItems()Method getItems.java.lang.StringgetRef()Get a reference to a pre-defined menu item, such as a report (specified by the report goal name).inthashCode()Method hashCode.booleanisCollapse()Get 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(java.lang.String description)Set a description of the menu item.voidsetItems(java.util.List<MenuItem> items)Set a list of menu item.voidsetRef(java.lang.String ref)Set a reference to a pre-defined menu item, such as a report (specified by the report goal name).java.lang.StringtoString()Method toString.
-
-
-
Field Detail
-
description
private java.lang.String description
A description of the menu item. This is used on any summary pages for a menu.
-
collapse
private boolean collapse
Whether to collapse children elements of an item menu (by default).
-
ref
private java.lang.String 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
private java.util.List<MenuItem> items
Field items.
-
-
Method Detail
-
addItem
public void addItem(MenuItem menuItem)
Method addItem.- Parameters:
menuItem-
-
equals
public boolean equals(java.lang.Object other)
Method equals.
-
getDescription
public java.lang.String getDescription()
Get a description of the menu item. This is used on any summary pages for a menu.- Returns:
- String
-
getItems
public java.util.List<MenuItem> getItems()
Method getItems.- Returns:
- List
-
getRef
public java.lang.String 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
-
isCollapse
public boolean isCollapse()
Get whether to collapse children elements of an item menu (by default).- Returns:
- boolean
-
removeItem
public void removeItem(MenuItem menuItem)
Method removeItem.- Parameters:
menuItem-
-
setCollapse
public void setCollapse(boolean collapse)
Set whether to collapse children elements of an item menu (by default).- Parameters:
collapse-
-
setDescription
public void setDescription(java.lang.String description)
Set a description of the menu item. This is used on any summary pages for a menu.- Parameters:
description-
-
setItems
public void setItems(java.util.List<MenuItem> items)
Set a list of menu item.- Parameters:
items-
-
setRef
public void setRef(java.lang.String ref)
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-
-
-