Class Menu.Item
java.lang.Object
net.ontopia.topicmaps.nav2.portlets.pojos.Menu.Item
- All Implemented Interfaces:
Menu.ChildIF,Menu.MenuObjectIF
- Enclosing class:
- Menu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete this Item.Get the associated topic of this Item.Get the condition occurrence value as a String.booleanCheck the condition of this Item.booleanCheck if this Item has children.getImage()Get the image occurrence as a String.booleanCheck whether this Item is a Heading.booleanCheck whether this is an Item.getLink()The link occurrence as a String.getTitle()Get the title of this Item as a String.getTopic()Get the topic of this Item.voidMoves this item one step further down the list of children on its parent.voidMoves 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.voidSet the image occurrence value.voidSet the link occurrence value.voidSets the title of the Item topic.
-
Field Details
-
associatedTopic
-
link
-
image
-
conditionString
-
condition
protected boolean condition
-
-
Constructor Details
-
Item
Create a new Item, represented by the given topic.
-
-
Method Details
-
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
Get the title of this Item as a String.- Specified by:
getTitlein interfaceMenu.MenuObjectIF
-
getAssociatedTopic
Get the associated topic of this Item. -
getTopic
Get the topic of this Item.- Specified by:
getTopicin interfaceMenu.MenuObjectIF
-
getLink
The link occurrence as a 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
Sets the title of the Item topic.- Specified by:
setTitlein interfaceMenu.MenuObjectIF
-
setAssociatedTopic
Set the associated topic. -
setLink
Set the link occurrence value. -
setImage
Set the image occurrence value. -
getCondition
Get the condition occurrence value as a String. -
setCondition
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
-