Package org.apache.tiles.beans
Class SimpleMenuItem
java.lang.Object
org.apache.tiles.beans.SimpleMenuItem
- All Implemented Interfaces:
Serializable
,MenuItem
A MenuItem implementation.
Used to read menu items in definitions.
- Version:
- $Rev: 836180 $ $Date: 2009-11-15 01:00:02 +1100 (Sun, 15 Nov 2009) $
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
Returns the (optional) icon image URL.getLink()
Returns the link where the menu item points to.Returns the (optional) tooltip text.getValue()
Returns the value of the item, i.e.void
Sets the (optional) icon image URL.void
Sets the link where the menu item points to.void
setTooltip
(String tooltip) Sets the (optional) tooltip text.void
Sets the value of the item, i.e.toString()
-
Constructor Details
-
SimpleMenuItem
public SimpleMenuItem()Constructor.
-
-
Method Details
-
setValue
Sets the value of the item, i.e. what is really visible to the user. -
getValue
Returns the value of the item, i.e. what is really visible to the user. -
setLink
Sets the link where the menu item points to. -
getLink
Returns the link where the menu item points to. -
setIcon
Sets the (optional) icon image URL. -
getIcon
Returns the (optional) icon image URL. -
setTooltip
Sets the (optional) tooltip text.- Specified by:
setTooltip
in interfaceMenuItem
- Parameters:
tooltip
- The tooltip text.
-
getTooltip
Returns the (optional) tooltip text.- Specified by:
getTooltip
in interfaceMenuItem
- Returns:
- The tooltip text.
-
toString
-