public class SimpleMenuItem extends Object implements MenuItem, Serializable
Constructor and Description |
---|
SimpleMenuItem()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getIcon()
Returns the (optional) icon image URL.
|
String |
getLink()
Returns the link where the menu item points to.
|
String |
getTooltip()
Returns the (optional) tooltip text.
|
String |
getValue()
Returns the value of the item, i.e.
|
void |
setIcon(String icon)
Sets the (optional) icon image URL.
|
void |
setLink(String link)
Sets the link where the menu item points to.
|
void |
setTooltip(String tooltip)
Sets the (optional) tooltip text.
|
void |
setValue(String value)
Sets the value of the item, i.e.
|
String |
toString() |
public void setValue(String value)
public String getValue()
public void setLink(String link)
public String getLink()
public void setIcon(String icon)
public String getIcon()
public void setTooltip(String tooltip)
setTooltip
in interface MenuItem
tooltip
- The tooltip text.public String getTooltip()
getTooltip
in interface MenuItem
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.