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 TopicIF
associatedTopic
protected boolean
condition
protected String
conditionString
protected String
image
protected String
link
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
Delete this Item.TopicIF
getAssociatedTopic()
Get the associated topic of this Item.String
getCondition()
Get the condition occurrence value as a String.boolean
getConditionTrue()
Check the condition of this Item.boolean
getHasChildren()
Check if this Item has children.String
getImage()
Get the image occurrence as a String.boolean
getIsHeading()
Check whether this Item is a Heading.boolean
getIsItem()
Check whether this is an Item.String
getLink()
The link occurrence as a String.String
getTitle()
Get the title of this Item as a String.TopicIF
getTopic()
Get the topic of this Item.void
moveOneDown()
Moves this item one step further down the list of children on its parent.void
moveOneUp()
Moves this item one step higher up the list of children on its parent.void
setAssociatedTopic(TopicIF topic)
Set the associated topic.void
setCondition(String condition)
Set the condition occurrence value.void
setImage(String image)
Set the image occurrence value.void
setLink(String link)
Set the link occurrence value.void
setTitle(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:
getIsHeading
in interfaceMenu.ChildIF
- Returns:
- false, since it is not a Heading.
-
getIsItem
public boolean getIsItem()
Check whether this is an Item.- Specified by:
getIsItem
in interfaceMenu.ChildIF
- Returns:
- true, since it is an Item.
-
getTitle
public String getTitle()
Get the title of this Item as a String.- Specified by:
getTitle
in 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:
getTopic
in 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:
getHasChildren
in 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:
setTitle
in 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:
moveOneUp
in 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:
moveOneDown
in interfaceMenu.ChildIF
-
delete
public void delete()
Delete this Item.- Specified by:
delete
in interfaceMenu.MenuObjectIF
-
-