public abstract class AbstractMenuItem extends Object implements MenuItem
MenuItem
-methods.Modifier | Constructor and Description |
---|---|
protected |
AbstractMenuItem() |
|
AbstractMenuItem(Content content)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(MenuItem child)
adds a child to the menuitem
|
protected void |
addChildAt(MenuItem child,
int index) |
boolean |
equals(Object o) |
List |
getChildren()
returns a collection with all the menuitems children
|
protected Content |
getContent() |
String |
getImageURL()
returns the image associated with this menuitem
|
int |
getLevel()
returns the level of the menuitem
|
MenuItem |
getParent()
returns the parent of the menuitem
|
int |
getPosition() |
String |
getText()
returns the text of the menuitem
|
String |
getText(String lang)
returns the language specific text of the menuitem
|
int |
getType()
returns the type of menuitem
|
String |
getURL()
returns the url of the menuitem
|
protected int |
indexOfChild(MenuItem child) |
protected abstract boolean |
isEquals(AbstractMenuItem item) |
protected boolean |
removeChild(MenuItem child) |
void |
setChildren(Collection children)
sets children
|
protected void |
setContent(Content c) |
void |
setImageURL(String imageUrl)
sets the imageurl
|
void |
setLevel(int newLevel) |
void |
setParent(MenuItem _parent) |
void |
setText(String s)
sets the defaulttext
|
void |
setText(String lang,
String text)
sets language specific text
|
void |
setURL(String newURL)
sets url
|
String |
toString() |
public AbstractMenuItem(Content content)
protected AbstractMenuItem()
public int getPosition()
public void setURL(String newURL)
public String getURL()
MenuItem
public List getChildren()
MenuItem
getChildren
in interface MenuItem
public void setChildren(Collection children)
public void addChild(MenuItem child)
public void setImageURL(String imageUrl)
public String getImageURL()
MenuItem
getImageURL
in interface MenuItem
public int getType()
MenuItem
public void setText(String s)
public String getText()
MenuItem
public String getText(String lang)
MenuItem
protected Content getContent()
protected void setContent(Content c)
public MenuItem getParent()
MenuItem
public void setParent(MenuItem _parent)
public void setLevel(int newLevel)
public int getLevel()
MenuItem
protected int indexOfChild(MenuItem child)
protected boolean removeChild(MenuItem child)
protected void addChildAt(MenuItem child, int index)
protected abstract boolean isEquals(AbstractMenuItem item)
© 1998- 2017 Escenic AS