public static class Menu.Item extends Object implements Menu.ChildIF
| Modifier and Type | Field and Description |
|---|---|
protected TopicIF |
associatedTopic |
protected boolean |
condition |
protected String |
conditionString |
protected String |
image |
protected String |
link |
| Constructor and Description |
|---|
Item(TopicIF topic)
Create a new Item, represented by the given topic.
|
| Modifier and Type | Method and 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.
|
protected TopicIF associatedTopic
protected String link
protected String image
protected String conditionString
protected boolean condition
public Item(TopicIF topic)
public boolean getIsHeading()
getIsHeading in interface Menu.ChildIFpublic boolean getIsItem()
getIsItem in interface Menu.ChildIFpublic String getTitle()
getTitle in interface Menu.MenuObjectIFpublic TopicIF getAssociatedTopic()
public TopicIF getTopic()
getTopic in interface Menu.MenuObjectIFpublic String getLink()
public String getImage()
public boolean getHasChildren()
getHasChildren in interface Menu.MenuObjectIFpublic boolean getConditionTrue()
public void setTitle(String title)
setTitle in interface Menu.MenuObjectIFpublic void setAssociatedTopic(TopicIF topic)
public void setLink(String link)
public void setImage(String image)
public String getCondition()
public void setCondition(String condition)
public void moveOneUp()
moveOneUp in interface Menu.ChildIFpublic void moveOneDown()
moveOneDown in interface Menu.ChildIFpublic void delete()
delete in interface Menu.MenuObjectIF