Class Menu.Heading
java.lang.Object
net.ontopia.topicmaps.nav2.portlets.pojos.Menu.Heading
- All Implemented Interfaces:
Menu.ChildIF,Menu.MenuObjectIF,Menu.ParentIF
- Enclosing class:
- Menu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHeading(String title) Create new Heading as child of this HeadingcreateItem(String title) Create new Item as child of this Heading.voiddelete()Delete this Heading with all its descendants.Get the children of this Heading.booleanCheck if this Heading has children.booleanCheck whether this is a Heading.booleanCheck whether this is an Item.getTitle()The title of this Heading as a String.getTopic()Get the topic of this Heading.voidMoves this Heading one step down the list of children on its parent.voidMoves this Heading one step up the list of children on its parent.voidSets the title of this Heading.
-
Field Details
-
children
-
-
Constructor Details
-
Heading
-
-
Method Details
-
getIsHeading
public boolean getIsHeading()Check whether this is a Heading.- Specified by:
getIsHeadingin interfaceMenu.ChildIF- Returns:
- true, since it is a Heading.
-
getIsItem
public boolean getIsItem()Check whether this is an Item.- Specified by:
getIsItemin interfaceMenu.ChildIF- Returns:
- false, since it is not an Item.
-
getTitle
The title of this Heading as a String.- Specified by:
getTitlein interfaceMenu.MenuObjectIF
-
getTopic
Get the topic of this Heading.- Specified by:
getTopicin interfaceMenu.MenuObjectIF
-
getChildren
Get the children of this Heading.- Specified by:
getChildrenin interfaceMenu.ParentIF
-
getHasChildren
public boolean getHasChildren()Check if this Heading has children.- Specified by:
getHasChildrenin interfaceMenu.MenuObjectIF
-
setTitle
Sets the title of this Heading.- Specified by:
setTitlein interfaceMenu.MenuObjectIF
-
moveOneUp
public void moveOneUp()Moves this Heading one step up the list of children on its parent. has no effect if it is already first- Specified by:
moveOneUpin interfaceMenu.ChildIF
-
moveOneDown
public void moveOneDown()Moves this Heading one step down the list of children on its parent. Has no effect if it is already last.- Specified by:
moveOneDownin interfaceMenu.ChildIF
-
createHeading
Create new Heading as child of this Heading- Specified by:
createHeadingin interfaceMenu.ParentIF- Returns:
- The heading that was created.
-
createItem
Create new Item as child of this Heading.- Specified by:
createItemin interfaceMenu.ParentIF- Returns:
- The item that was created.
-
delete
public void delete()Delete this Heading with all its descendants.- Specified by:
deletein interfaceMenu.MenuObjectIF
-