public static class Menu.Heading extends Object implements Menu.ChildIF, Menu.ParentIF
Modifier and Type | Method and Description |
---|---|
Menu.Heading |
createHeading(String title)
Create new Heading as child of this Heading
|
Menu.Item |
createItem(String title)
Create new Item as child of this Heading.
|
void |
delete()
Delete this Heading with all its descendants.
|
List |
getChildren()
Get the children of this Heading.
|
boolean |
getHasChildren()
Check if this Heading has children.
|
boolean |
getIsHeading()
Check whether this is a Heading.
|
boolean |
getIsItem()
Check whether this is an Item.
|
String |
getTitle()
The title of this Heading as a String.
|
TopicIF |
getTopic()
Get the topic of this Heading.
|
void |
moveOneDown()
Moves this Heading one step down the list of children on its parent.
|
void |
moveOneUp()
Moves this Heading one step up the list of children on its parent.
|
void |
setTitle(String title)
Sets the title of this Heading.
|
protected List children
public Heading(TopicIF topic)
public boolean getIsHeading()
getIsHeading
in interface Menu.ChildIF
public boolean getIsItem()
getIsItem
in interface Menu.ChildIF
public String getTitle()
getTitle
in interface Menu.MenuObjectIF
public TopicIF getTopic()
getTopic
in interface Menu.MenuObjectIF
public List getChildren()
getChildren
in interface Menu.ParentIF
public boolean getHasChildren()
getHasChildren
in interface Menu.MenuObjectIF
public void setTitle(String title)
setTitle
in interface Menu.MenuObjectIF
public void moveOneUp()
moveOneUp
in interface Menu.ChildIF
public void moveOneDown()
moveOneDown
in interface Menu.ChildIF
public Menu.Heading createHeading(String title)
createHeading
in interface Menu.ParentIF
public Menu.Item createItem(String title)
createItem
in interface Menu.ParentIF
public void delete()
delete
in interface Menu.MenuObjectIF