net.ontopia.topicmaps.nav2.portlets.pojos
Class Menu

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

public class Menu
extends java.lang.Object

INTERNAL: This component can produce a model representing a menu structure.


Nested Class Summary
static interface Menu.ChildIF
           
static class Menu.Heading
           
static class Menu.Item
           
static interface Menu.MenuObjectIF
           
static interface Menu.ParentIF
           
 
Constructor Summary
Menu(TopicIF topic)
           
 
Method Summary
 Menu.Heading createHeading(java.lang.String title)
          Create new heading as child of this menu
 Menu.Item createItem(java.lang.String title)
          Create new item as child of this menu
 void delete()
          Delete this menu with all headings and items
 java.util.List getChildren()
          Get the children of this Menu.
 boolean getHasChildren()
          Check if this Menu has children.
 TopicIF getOwner()
          Get the owner of this Menu.
 java.lang.String getTitle()
          The title of this Menu as a String.
 TopicIF getTopic()
          Get the topic of this Menu.
 void setOwner(TopicIF owner)
          Set related owner topic.
 void setTitle(java.lang.String title)
          Sets the title of this Menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Menu

public Menu(TopicIF topic)
Method Detail

getTitle

public java.lang.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 java.util.List getChildren()
Get the children of this Menu.


getHasChildren

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


setTitle

public void setTitle(java.lang.String title)
Sets the title of this Menu.


setOwner

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


createHeading

public Menu.Heading createHeading(java.lang.String title)
Create new heading as child of this menu

Returns:
The heading that was created.

createItem

public Menu.Item createItem(java.lang.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



Copyright © 2000-2012 Ontopia.