Package org.apache.tiles.beans
Class SimpleMenuItem
- java.lang.Object
-
- org.apache.tiles.beans.SimpleMenuItem
-
- All Implemented Interfaces:
java.io.Serializable
,MenuItem
public class SimpleMenuItem extends java.lang.Object implements MenuItem, java.io.Serializable
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleMenuItem()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIcon()
Returns the (optional) icon image URL.java.lang.String
getLink()
Returns the link where the menu item points to.java.lang.String
getTooltip()
Returns the (optional) tooltip text.java.lang.String
getValue()
Returns the value of the item, i.e.void
setIcon(java.lang.String icon)
Sets the (optional) icon image URL.void
setLink(java.lang.String link)
Sets the link where the menu item points to.void
setTooltip(java.lang.String tooltip)
Sets the (optional) tooltip text.void
setValue(java.lang.String value)
Sets the value of the item, i.e.java.lang.String
toString()
-
-
-
Method Detail
-
setValue
public void setValue(java.lang.String value)
Sets the value of the item, i.e. what is really visible to the user.
-
getValue
public java.lang.String getValue()
Returns the value of the item, i.e. what is really visible to the user.
-
setLink
public void setLink(java.lang.String link)
Sets the link where the menu item points to.
-
getLink
public java.lang.String getLink()
Returns the link where the menu item points to.
-
setIcon
public void setIcon(java.lang.String icon)
Sets the (optional) icon image URL.
-
getIcon
public java.lang.String getIcon()
Returns the (optional) icon image URL.
-
setTooltip
public void setTooltip(java.lang.String tooltip)
Sets the (optional) tooltip text.- Specified by:
setTooltip
in interfaceMenuItem
- Parameters:
tooltip
- The tooltip text.
-
getTooltip
public java.lang.String getTooltip()
Returns the (optional) tooltip text.- Specified by:
getTooltip
in interfaceMenuItem
- Returns:
- The tooltip text.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-