Class 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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleMenuItem

        public SimpleMenuItem()
        Constructor.
    • 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.
        Specified by:
        setValue in interface MenuItem
        Parameters:
        value - The value of the item.
      • getValue

        public java.lang.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​(java.lang.String link)
        Sets the link where the menu item points to.
        Specified by:
        setLink in interface MenuItem
        Parameters:
        link - The link.
      • getLink

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

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

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object