public class Menu extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Menu() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(MenuItem menuItem)
Method addItem.
|
Menu |
clone()
Method clone.
|
boolean |
equals(Object other)
Method equals.
|
Image |
getImage()
Get the image for the menu.
|
String |
getInherit()
Get the way in which the menu is inherited.
|
List<MenuItem> |
getItems()
Method getItems.
|
String |
getName()
Get the name to display for the menu.
|
String |
getRef()
Get mark this menu as reference to a pre-defined menu:
reports , modules
or parent . |
int |
hashCode()
Method hashCode.
|
boolean |
isInheritAsRef()
Get if this is a reference, setting to
true
means that it will be populated
in the site, whereas if it is
false , it is populated in the parent and then
inherited. |
void |
removeItem(MenuItem menuItem)
Method removeItem.
|
void |
setImage(Image image)
Set the image for the menu.
|
void |
setInherit(String inherit)
Set the way in which the menu is inherited.
|
void |
setInheritAsRef(boolean inheritAsRef)
Set if this is a reference, setting to
true
means that it will be populated
in the site, whereas if it is
false , it is populated in the parent and then
inherited. |
void |
setItems(List<MenuItem> items)
Set a list of menu item.
|
void |
setName(String name)
Set the name to display for the menu.
|
void |
setRef(String ref)
Set mark this menu as reference to a pre-defined menu:
reports , modules
or parent . |
String |
toString()
Method toString.
|
public void addItem(MenuItem menuItem)
menuItem
- a menuItem object.public boolean equals(Object other)
public Image getImage()
public String getInherit()
top
, bottom
.public String getName()
public String getRef()
reports
, modules
or parent
. It will be populated at
runtime with corresponding pre-defined content.public boolean isInheritAsRef()
true
means that it will be populated
in the site, whereas if it is
false
, it is populated in the parent and then
inherited.public void removeItem(MenuItem menuItem)
menuItem
- a menuItem object.public void setImage(Image image)
image
- a image object.public void setInherit(String inherit)
top
, bottom
.inherit
- a inherit object.public void setInheritAsRef(boolean inheritAsRef)
true
means that it will be populated
in the site, whereas if it is
false
, it is populated in the parent and then
inherited.inheritAsRef
- a inheritAsRef object.public void setItems(List<MenuItem> items)
items
- a items object.public void setName(String name)
name
- a name object.public void setRef(String ref)
reports
, modules
or parent
. It will be populated at
runtime with corresponding pre-defined content.ref
- a ref object.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.