net.ontopia.topicmaps.nav2.portlets.pojos
Class Menu.Item

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.portlets.pojos.Menu.Item
All Implemented Interfaces:
Menu.ChildIF, Menu.MenuObjectIF
Enclosing class:
Menu

public static class Menu.Item
extends java.lang.Object
implements Menu.ChildIF


Field Summary
protected  TopicIF associatedTopic
           
protected  boolean condition
           
protected  java.lang.String conditionString
           
protected  java.lang.String image
           
protected  java.lang.String link
           
 
Constructor Summary
Menu.Item(TopicIF topic)
          Create a new Item, represented by the given topic.
 
Method Summary
 void delete()
          Delete this Item.
 TopicIF getAssociatedTopic()
          Get the associated topic of this Item.
 java.lang.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.
 java.lang.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.
 java.lang.String getLink()
          The link occurrence as a String.
 java.lang.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(java.lang.String condition)
          Set the condition occurrence value.
 void setImage(java.lang.String image)
          Set the image occurrence value.
 void setLink(java.lang.String link)
          Set the link occurrence value.
 void setTitle(java.lang.String title)
          Sets the title of the Item topic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

associatedTopic

protected TopicIF associatedTopic

link

protected java.lang.String link

image

protected java.lang.String image

conditionString

protected java.lang.String conditionString

condition

protected boolean condition
Constructor Detail

Menu.Item

public Menu.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 interface Menu.ChildIF
Returns:
false, since it is not a Heading.

getIsItem

public boolean getIsItem()
Check whether this is an Item.

Specified by:
getIsItem in interface Menu.ChildIF
Returns:
true, since it is an Item.

getTitle

public java.lang.String getTitle()
Get the title of this Item as a String.

Specified by:
getTitle in interface Menu.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 interface Menu.MenuObjectIF

getLink

public java.lang.String getLink()
The link occurrence as a String.


getImage

public java.lang.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 interface Menu.MenuObjectIF

getConditionTrue

public boolean getConditionTrue()
Check the condition of this Item.


setTitle

public void setTitle(java.lang.String title)
Sets the title of the Item topic.

Specified by:
setTitle in interface Menu.MenuObjectIF

setAssociatedTopic

public void setAssociatedTopic(TopicIF topic)
Set the associated topic.


setLink

public void setLink(java.lang.String link)
Set the link occurrence value.


setImage

public void setImage(java.lang.String image)
Set the image occurrence value.


getCondition

public java.lang.String getCondition()
Get the condition occurrence value as a String.


setCondition

public void setCondition(java.lang.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 interface Menu.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 interface Menu.ChildIF

delete

public void delete()
Delete this Item.

Specified by:
delete in interface Menu.MenuObjectIF


Copyright © 2000-2012 Ontopia.