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 Details

    • associatedTopic

      protected TopicIF associatedTopic
    • image

      protected String image
    • conditionString

      protected String conditionString
    • condition

      protected boolean condition
  • Constructor Details

    • Item

      public Item(TopicIF topic)
      Create a new Item, represented by the given topic.
  • Method Details

    • 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 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 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 interface Menu.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 interface Menu.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 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