java.lang.Object
net.ontopia.topicmaps.nav2.portlets.pojos.Menu

public class Menu extends Object
INTERNAL: This component can produce a model representing a menu structure.
  • Constructor Details

    • Menu

      public Menu(TopicIF topic)
  • Method Details

    • getTitle

      public String getTitle()
      The title of this Menu as a String.
    • getTopic

      public TopicIF getTopic()
      Get the topic of this Menu.
    • getOwner

      public TopicIF getOwner()
      Get the owner of this Menu.
    • getChildren

      public List getChildren()
      Get the children of this Menu.
    • getHasChildren

      public boolean getHasChildren()
      Check if this Menu has children.
    • setTitle

      public void setTitle(String title)
      Sets the title of this Menu.
    • setOwner

      public void setOwner(TopicIF owner)
      Set related owner topic.
    • createHeading

      public Menu.Heading createHeading(String title)
      Create new heading as child of this menu
      Returns:
      The heading that was created.
    • createItem

      public Menu.Item createItem(String title)
      Create new item as child of this menu
      Returns:
      The item that was created.
    • delete

      public void delete()
      Delete this menu with all headings and items