public class MenuItem extends LinkItem implements Serializable, Cloneable
Constructor and Description |
---|
MenuItem() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(MenuItem menuItem)
Method addItem.
|
MenuItem |
clone()
Method clone.
|
boolean |
equals(Object other)
Method equals.
|
String |
getDescription()
Get a description of the menu item.
|
List<MenuItem> |
getItems()
Method getItems.
|
String |
getRef()
Get a reference to a pre-defined menu item, such as a report
(specified by the report goal
name).
|
int |
hashCode()
Method hashCode.
|
boolean |
isCollapse()
Get whether to collapse children elements of an item menu
(by default).
|
void |
removeItem(MenuItem menuItem)
Method removeItem.
|
void |
setCollapse(boolean collapse)
Set whether to collapse children elements of an item menu
(by default).
|
void |
setDescription(String description)
Set a description of the menu item.
|
void |
setItems(List<MenuItem> items)
Set a list of menu item.
|
void |
setRef(String ref)
Set a reference to a pre-defined menu item, such as a report
(specified by the report goal
name).
|
String |
toString()
Method toString.
|
public void addItem(MenuItem menuItem)
menuItem
- a menuItem object.public boolean equals(Object other)
public String getDescription()
public String getRef()
public boolean isCollapse()
public void removeItem(MenuItem menuItem)
menuItem
- a menuItem object.public void setCollapse(boolean collapse)
collapse
- a collapse object.public void setDescription(String description)
description
- a description object.public void setItems(List<MenuItem> items)
items
- a items object.public void setRef(String ref)
ref
- a ref object.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.