Class Menu
java.lang.Object
org.apache.maven.doxia.site.decoration.Menu
- All Implemented Interfaces:
Serializable,Cloneable
A menu in the navigation.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe alt description for the image.private StringThe border to use for the menu image.private StringThe height to use for the menu image.private StringThe source location of an menu image.private StringThe way in which the menu is inherited.private booleanIf 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.Field items.private StringThe name to display for the menu.private StringWhere to place the image regarding the displayed name (left or right).private StringMark this menu as reference to a pre-defined menu:reports,modulesorparent.private StringThe title for the image.private StringThe width to use for the menu image. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod addItem.clone()Method clone.booleanMethod equals.getAlt()Get the alt description for the image.Get the border to use for the menu image.Get the height to use for the menu image.getImg()Get the source location of an menu image.Get the way in which the menu is inherited.getItems()Method getItems.getName()Get the name to display for the menu.Get where to place the image regarding the displayed name (left or right).getRef()Get mark this menu as reference to a pre-defined menu:reports,modulesorparent.getTitle()Get the title for the image.getWidth()Get the width to use for the menu image.inthashCode()Method hashCode.booleanGet 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.voidremoveItem(MenuItem menuItem) Method removeItem.voidSet the alt description for the image.voidSet the border to use for the menu image.voidSet the height to use for the menu image.voidSet the source location of an menu image.voidsetInherit(String inherit) Set the way in which the menu is inherited.voidsetInheritAsRef(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.voidSet a list of menu item.voidSet the name to display for the menu.voidsetPosition(String position) Set where to place the image regarding the displayed name (left or right).voidSet mark this menu as reference to a pre-defined menu:reports,modulesorparent.voidSet the title for the image.voidSet the width to use for the menu image.toString()Method toString.
-
Field Details
-
name
The name to display for the menu. -
inherit
The way in which the menu is inherited. Can be one of :top,bottom. -
inheritAsRef
private boolean inheritAsRefIf 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. -
ref
Mark this menu as reference to a pre-defined menu:reports,modulesorparent. It will be populated at runtime with corresponding pre-defined content. -
img
The source location of an menu image. -
alt
The alt description for the image. -
position
Where to place the image regarding the displayed name (left or right). -
border
The border to use for the menu image. -
width
The width to use for the menu image. -
height
The height to use for the menu image. -
title
The title for the image. -
items
Field items.
-
-
Constructor Details
-
Menu
public Menu()
-
-
Method Details
-
addItem
Method addItem.- Parameters:
menuItem- a menuItem object.
-
clone
Method clone. -
equals
Method equals. -
getAlt
Get the alt description for the image.- Returns:
- String
-
getBorder
Get the border to use for the menu image.- Returns:
- String
-
getHeight
Get the height to use for the menu image.- Returns:
- String
-
getImg
Get the source location of an menu image.- Returns:
- String
-
getInherit
Get the way in which the menu is inherited. Can be one of :top,bottom.- Returns:
- String
-
getItems
Method getItems.- Returns:
- List
-
getName
Get the name to display for the menu.- Returns:
- String
-
getPosition
Get where to place the image regarding the displayed name (left or right).- Returns:
- String
-
getRef
Get mark this menu as reference to a pre-defined menu:reports,modulesorparent. It will be populated at runtime with corresponding pre-defined content.- Returns:
- String
-
getTitle
Get the title for the image.- Returns:
- String
-
getWidth
Get the width to use for the menu image.- Returns:
- String
-
hashCode
public int hashCode()Method hashCode. -
isInheritAsRef
public 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.- Returns:
- boolean
-
removeItem
Method removeItem.- Parameters:
menuItem- a menuItem object.
-
setAlt
Set the alt description for the image.- Parameters:
alt- a alt object.
-
setBorder
Set the border to use for the menu image.- Parameters:
border- a border object.
-
setHeight
Set the height to use for the menu image.- Parameters:
height- a height object.
-
setImg
Set the source location of an menu image.- Parameters:
img- a img object.
-
setInherit
Set the way in which the menu is inherited. Can be one of :top,bottom.- Parameters:
inherit- a inherit object.
-
setInheritAsRef
public 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.- Parameters:
inheritAsRef- a inheritAsRef object.
-
setItems
Set a list of menu item.- Parameters:
items- a items object.
-
setName
Set the name to display for the menu.- Parameters:
name- a name object.
-
setPosition
Set where to place the image regarding the displayed name (left or right).- Parameters:
position- a position object.
-
setRef
Set mark this menu as reference to a pre-defined menu:reports,modulesorparent. It will be populated at runtime with corresponding pre-defined content.- Parameters:
ref- a ref object.
-
setTitle
Set the title for the image.- Parameters:
title- a title object.
-
setWidth
Set the width to use for the menu image.- Parameters:
width- a width object.
-
toString
Method toString.
-