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.ChildIFpublic boolean getIsItem()
getIsItem in interface Menu.ChildIFpublic String getTitle()
getTitle in interface Menu.MenuObjectIFpublic TopicIF getTopic()
getTopic in interface Menu.MenuObjectIFpublic List getChildren()
getChildren in interface Menu.ParentIFpublic boolean getHasChildren()
getHasChildren in interface Menu.MenuObjectIFpublic void setTitle(String title)
setTitle in interface Menu.MenuObjectIFpublic void moveOneUp()
moveOneUp in interface Menu.ChildIFpublic void moveOneDown()
moveOneDown in interface Menu.ChildIFpublic Menu.Heading createHeading(String title)
createHeading in interface Menu.ParentIFpublic Menu.Item createItem(String title)
createItem in interface Menu.ParentIFpublic void delete()
delete in interface Menu.MenuObjectIF