Class SimpleMenuItem

java.lang.Object
org.apache.tiles.beans.SimpleMenuItem
All Implemented Interfaces:
Serializable, MenuItem

public class SimpleMenuItem extends Object implements MenuItem, 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:
  • Constructor Details

    • SimpleMenuItem

      public SimpleMenuItem()
      Constructor.
  • Method Details

    • setValue

      public void setValue(String value)
      Sets the value of the item, i.e. what is really visible to the user.
      Specified by:
      setValue in interface MenuItem
      Parameters:
      value - The value of the item.
    • getValue

      public String getValue()
      Returns the value of the item, i.e. what is really visible to the user.
      Specified by:
      getValue in interface MenuItem
      Returns:
      The value of the item.
    • setLink

      public void setLink(String link)
      Sets the link where the menu item points to.
      Specified by:
      setLink in interface MenuItem
      Parameters:
      link - The link.
    • getLink

      public String getLink()
      Returns the link where the menu item points to.
      Specified by:
      getLink in interface MenuItem
      Returns:
      The link.
    • setIcon

      public void setIcon(String icon)
      Sets the (optional) icon image URL.
      Specified by:
      setIcon in interface MenuItem
      Parameters:
      icon - The icon URL.
    • getIcon

      public String getIcon()
      Returns the (optional) icon image URL.
      Specified by:
      getIcon in interface MenuItem
      Returns:
      The icon URL.
    • setTooltip

      public void setTooltip(String tooltip)
      Sets the (optional) tooltip text.
      Specified by:
      setTooltip in interface MenuItem
      Parameters:
      tooltip - The tooltip text.
    • getTooltip

      public String getTooltip()
      Returns the (optional) tooltip text.
      Specified by:
      getTooltip in interface MenuItem
      Returns:
      The tooltip text.
    • toString

      public String toString()
      Overrides:
      toString in class Object