Class Menu.Item
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.portlets.pojos.Menu.Item
-
- All Implemented Interfaces:
Menu.ChildIF,Menu.MenuObjectIF
- Enclosing class:
- Menu
public static class Menu.Item extends Object implements Menu.ChildIF
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicIFassociatedTopicprotected booleanconditionprotected StringconditionStringprotected Stringimageprotected Stringlink
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Delete this Item.TopicIFgetAssociatedTopic()Get the associated topic of this Item.StringgetCondition()Get the condition occurrence value as a String.booleangetConditionTrue()Check the condition of this Item.booleangetHasChildren()Check if this Item has children.StringgetImage()Get the image occurrence as a String.booleangetIsHeading()Check whether this Item is a Heading.booleangetIsItem()Check whether this is an Item.StringgetLink()The link occurrence as a String.StringgetTitle()Get the title of this Item as a String.TopicIFgetTopic()Get the topic of this Item.voidmoveOneDown()Moves this item one step further down the list of children on its parent.voidmoveOneUp()Moves this item one step higher up the list of children on its parent.voidsetAssociatedTopic(TopicIF topic)Set the associated topic.voidsetCondition(String condition)Set the condition occurrence value.voidsetImage(String image)Set the image occurrence value.voidsetLink(String link)Set the link occurrence value.voidsetTitle(String title)Sets the title of the Item topic.
-
-
-
Constructor Detail
-
Item
public Item(TopicIF topic)
Create a new Item, represented by the given topic.
-
-
Method Detail
-
getIsHeading
public boolean getIsHeading()
Check whether this Item is a Heading.- Specified by:
getIsHeadingin interfaceMenu.ChildIF- Returns:
- false, since it is not a Heading.
-
getIsItem
public boolean getIsItem()
Check whether this is an Item.- Specified by:
getIsItemin interfaceMenu.ChildIF- Returns:
- true, since it is an Item.
-
getTitle
public String getTitle()
Get the title of this Item as a String.- Specified by:
getTitlein interfaceMenu.MenuObjectIF
-
getAssociatedTopic
public TopicIF getAssociatedTopic()
Get the associated topic of this Item.
-
getTopic
public TopicIF getTopic()
Get the topic of this Item.- Specified by:
getTopicin interfaceMenu.MenuObjectIF
-
getLink
public String getLink()
The link occurrence as a String.
-
getImage
public String getImage()
Get the image occurrence as a String.
-
getHasChildren
public boolean getHasChildren()
Check if this Item has children. $return false, since an Item cannot have any children.- Specified by:
getHasChildrenin interfaceMenu.MenuObjectIF
-
getConditionTrue
public boolean getConditionTrue()
Check the condition of this Item.
-
setTitle
public void setTitle(String title)
Sets the title of the Item topic.- Specified by:
setTitlein interfaceMenu.MenuObjectIF
-
setAssociatedTopic
public void setAssociatedTopic(TopicIF topic)
Set the associated topic.
-
setLink
public void setLink(String link)
Set the link occurrence value.
-
setImage
public void setImage(String image)
Set the image occurrence value.
-
getCondition
public String getCondition()
Get the condition occurrence value as a String.
-
setCondition
public void setCondition(String condition)
Set the condition occurrence value.
-
moveOneUp
public void moveOneUp()
Moves this item one step higher 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 item one step further down the list of children on its parent. Has no effect if it is already last.- Specified by:
moveOneDownin interfaceMenu.ChildIF
-
delete
public void delete()
Delete this Item.- Specified by:
deletein interfaceMenu.MenuObjectIF
-
-