java.lang.Object
org.apache.maven.doxia.site.decoration.Menu
All Implemented Interfaces:
Serializable, Cloneable

public class Menu extends Object implements Serializable, Cloneable
A menu in the navigation.
Version:
$Revision$ $Date$
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    The alt description for the image.
    private String
    The border to use for the menu image.
    private String
    The height to use for the menu image.
    private String
    The source location of an menu image.
    private String
    The way in which the menu is inherited.
    private boolean
    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.
    private List<MenuItem>
    Field items.
    private String
    The name to display for the menu.
    private String
    Where to place the image regarding the displayed name (left or right).
    private String
    Mark this menu as reference to a pre-defined menu: reports, modules or parent.
    private String
    The title for the image.
    private String
    The width to use for the menu image.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addItem(MenuItem menuItem)
    Method addItem.
    Method clone.
    boolean
    equals(Object other)
    Method equals.
    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.
    Get the source location of an menu image.
    Get the way in which the menu is inherited.
    Method getItems.
    Get the name to display for the menu.
    Get where to place the image regarding the displayed name (left or right).
    Get mark this menu as reference to a pre-defined menu: reports, modules or parent.
    Get the title for the image.
    Get the width to use for the menu image.
    int
    Method hashCode.
    boolean
    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
    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
    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
    Set a list of menu item.
    void
    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
    Set mark this menu as reference to a pre-defined menu: reports, modules or parent.
    void
    Set the title for the image.
    void
    Set the width to use for the menu image.
    Method toString.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • name

      private String name
      The name to display for the menu.
    • inherit

      private String inherit
      The way in which the menu is inherited. Can be one of : top, bottom.
    • inheritAsRef

      private boolean inheritAsRef
      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.
    • ref

      private String ref
      Mark this menu as reference to a pre-defined menu: reports, modules or parent. It will be populated at runtime with corresponding pre-defined content.
    • img

      private String img
      The source location of an menu image.
    • alt

      private String alt
      The alt description for the image.
    • position

      private String position
      Where to place the image regarding the displayed name (left or right).
    • border

      private String border
      The border to use for the menu image.
    • width

      private String width
      The width to use for the menu image.
    • height

      private String height
      The height to use for the menu image.
    • title

      private String title
      The title for the image.
    • items

      private List<MenuItem> items
      Field items.
  • Constructor Details

    • Menu

      public Menu()
  • Method Details

    • addItem

      public void addItem(MenuItem menuItem)
      Method addItem.
      Parameters:
      menuItem - a menuItem object.
    • clone

      public Menu clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      Menu
    • equals

      public boolean equals(Object other)
      Method equals.
      Overrides:
      equals in class Object
      Parameters:
      other - a other object.
      Returns:
      boolean
    • getAlt

      public String getAlt()
      Get the alt description for the image.
      Returns:
      String
    • getBorder

      public String getBorder()
      Get the border to use for the menu image.
      Returns:
      String
    • getHeight

      public String getHeight()
      Get the height to use for the menu image.
      Returns:
      String
    • getImg

      public String getImg()
      Get the source location of an menu image.
      Returns:
      String
    • getInherit

      public String getInherit()
      Get the way in which the menu is inherited. Can be one of : top, bottom.
      Returns:
      String
    • getItems

      public List<MenuItem> getItems()
      Method getItems.
      Returns:
      List
    • getName

      public String getName()
      Get the name to display for the menu.
      Returns:
      String
    • getPosition

      public String getPosition()
      Get where to place the image regarding the displayed name (left or right).
      Returns:
      String
    • getRef

      public String getRef()
      Get mark this menu as reference to a pre-defined menu: reports, modules or parent. It will be populated at runtime with corresponding pre-defined content.
      Returns:
      String
    • getTitle

      public String getTitle()
      Get the title for the image.
      Returns:
      String
    • getWidth

      public String getWidth()
      Get the width to use for the menu image.
      Returns:
      String
    • hashCode

      public int hashCode()
      Method hashCode.
      Overrides:
      hashCode in class Object
      Returns:
      int
    • 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

      public void removeItem(MenuItem menuItem)
      Method removeItem.
      Parameters:
      menuItem - a menuItem object.
    • setAlt

      public void setAlt(String alt)
      Set the alt description for the image.
      Parameters:
      alt - a alt object.
    • setBorder

      public void setBorder(String border)
      Set the border to use for the menu image.
      Parameters:
      border - a border object.
    • setHeight

      public void setHeight(String height)
      Set the height to use for the menu image.
      Parameters:
      height - a height object.
    • setImg

      public void setImg(String img)
      Set the source location of an menu image.
      Parameters:
      img - a img object.
    • setInherit

      public void setInherit(String inherit)
      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

      public void setItems(List<MenuItem> items)
      Set a list of menu item.
      Parameters:
      items - a items object.
    • setName

      public void setName(String name)
      Set the name to display for the menu.
      Parameters:
      name - a name object.
    • setPosition

      public void setPosition(String position)
      Set where to place the image regarding the displayed name (left or right).
      Parameters:
      position - a position object.
    • setRef

      public void setRef(String ref)
      Set mark this menu as reference to a pre-defined menu: reports, modules or parent. It will be populated at runtime with corresponding pre-defined content.
      Parameters:
      ref - a ref object.
    • setTitle

      public void setTitle(String title)
      Set the title for the image.
      Parameters:
      title - a title object.
    • setWidth

      public void setWidth(String width)
      Set the width to use for the menu image.
      Parameters:
      width - a width object.
    • toString

      public String toString()
      Method toString.
      Overrides:
      toString in class Object
      Returns:
      String