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.
|
String |
getAlt()
Get the alt description for the image.
|
String |
getBorder()
Get the border to use for the menu image.
|
String |
getHeight()
Get the height to use for the menu image.
|
String |
getImg()
Get the source location of an menu image.
|
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 |
getPosition()
Get where to place the image regarding the displayed name
(left or right).
|
String |
getRef()
Get mark this menu as reference to a pre-defined menu:
reports, modules
or parent. |
String |
getTitle()
Get the title for the image.
|
String |
getWidth()
Get the width to use for the menu image.
|
int |
hashCode()
Method hashCode.
|
boolean |
isInheritAsRef()
Get if this is a reference, setting <inheritAsRef>true</inheritAsRef> means that it will be
populated
in the project, whereas if it is false, it is
populated in the parent and then inherited.
|
void |
removeItem(MenuItem menuItem)
Method removeItem.
|
void |
setAlt(String alt)
Set the alt description for the image.
|
void |
setBorder(String border)
Set the border to use for the menu image.
|
void |
setHeight(String height)
Set the height to use for the menu image.
|
void |
setImg(String img)
Set the source location of an menu image.
|
void |
setInherit(String inherit)
Set the way in which the menu is inherited.
|
void |
setInheritAsRef(boolean inheritAsRef)
Set if this is a reference, setting <inheritAsRef>true</inheritAsRef> means that it will be
populated
in the project, 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 |
setPosition(String position)
Set where to place the image regarding the displayed name
(left or right).
|
void |
setRef(String ref)
Set mark this menu as reference to a pre-defined menu:
reports, modules
or parent. |
void |
setTitle(String title)
Set the title for the image.
|
void |
setWidth(String width)
Set the width to use for the menu image.
|
String |
toString()
Method toString.
|
public void addItem(MenuItem menuItem)
menuItem - public boolean equals(Object other)
public String getAlt()
public String getBorder()
public String getHeight()
public String getImg()
public String getInherit()
top, bottom.public String getName()
public String getPosition()
public String getRef()
reports, modules
or parent. It will be populated at
runtime with corresponding pre-defined content.public String getTitle()
public String getWidth()
public boolean isInheritAsRef()
public void removeItem(MenuItem menuItem)
menuItem - public void setAlt(String alt)
alt - public void setBorder(String border)
border - public void setHeight(String height)
height - public void setImg(String img)
img - public void setInherit(String inherit)
top, bottom.inherit - public void setInheritAsRef(boolean inheritAsRef)
inheritAsRef - public void setName(String name)
name - public void setPosition(String position)
position - public void setRef(String ref)
reports, modules
or parent. It will be populated at
runtime with corresponding pre-defined content.ref - public void setTitle(String title)
title - public void setWidth(String width)
width - Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.