public class Menu extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Menu.ChildIF |
static class |
Menu.Heading |
static class |
Menu.Item |
static interface |
Menu.MenuObjectIF |
static interface |
Menu.ParentIF |
Modifier and Type | Method and Description |
---|---|
Menu.Heading |
createHeading(String title)
Create new heading as child of this menu
|
Menu.Item |
createItem(String title)
Create new item as child of this menu
|
void |
delete()
Delete this menu with all headings and items
|
List |
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.
|
public Menu(TopicIF topic)
public String getTitle()
public TopicIF getTopic()
public TopicIF getOwner()
public List getChildren()
public boolean getHasChildren()
public void setTitle(String title)
public void setOwner(TopicIF owner)
public Menu.Heading createHeading(String title)
public Menu.Item createItem(String title)
public void delete()