Class Menu
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMenu.ChildIFstatic classMenu.Headingstatic classMenu.Itemstatic interfaceMenu.MenuObjectIFstatic interfaceMenu.ParentIF
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Menu.HeadingcreateHeading(String title)Create new heading as child of this menuMenu.ItemcreateItem(String title)Create new item as child of this menuvoiddelete()Delete this menu with all headings and itemsListgetChildren()Get the children of this Menu.booleangetHasChildren()Check if this Menu has children.TopicIFgetOwner()Get the owner of this Menu.StringgetTitle()The title of this Menu as a String.TopicIFgetTopic()Get the topic of this Menu.voidsetOwner(TopicIF owner)Set related owner topic.voidsetTitle(String title)Sets the title of this Menu.
-
-
-
Constructor Detail
-
Menu
public Menu(TopicIF topic)
-
-
Method Detail
-
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
-
-