Class Menu

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

public class Menu extends Object implements Serializable, Cloneable
A menu in the navigation.
Version:
$Revision$ $Date$
See Also:
  • 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 image for the menu.
    Get the way in which the menu is inherited.
    Method getItems.
    Get the name to display for the menu.
    Get mark this menu as reference to a pre-defined menu: reports, modules or parent.
    int
    Method hashCode.
    boolean
    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
    Set a list of menu item.
    void
    Set the name to display for the menu.
    void
    Set mark this menu as reference to a pre-defined menu: reports, modules or parent.
    Method toString.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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
    • getImage

      public Image getImage()
      Get the image for the menu.
      Returns:
      Image
    • 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
    • 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
    • hashCode

      public int hashCode()
      Method hashCode.
      Overrides:
      hashCode in class Object
      Returns:
      int
    • isInheritAsRef

      public 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.
      Returns:
      boolean
    • removeItem

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

      public void setImage(Image image)
      Set the image for the menu.
      Parameters:
      image - a image 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 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.
      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.
    • 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.
    • toString

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