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 interface
Menu.ChildIF
static class
Menu.Heading
static class
Menu.Item
static interface
Menu.MenuObjectIF
static interface
Menu.ParentIF
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Menu.Heading
createHeading(String title)
Create new heading as child of this menuMenu.Item
createItem(String title)
Create new item as child of this menuvoid
delete()
Delete this menu with all headings and itemsList
getChildren()
Get the children of this Menu.boolean
getHasChildren()
Check if this Menu has children.TopicIF
getOwner()
Get the owner of this Menu.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(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
-
-