This project has retired. For details please refer to its Attic page.
SimpleMenuItem (Tiles 2 2.1.4 API)

org.apache.tiles.beans
Class SimpleMenuItem

Package class diagram package SimpleMenuItem
java.lang.Object
  extended by 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: 527536 $ $Date: 2007-04-11 17:44:51 +0200 (mer, 11 apr 2007) $
See Also:
Serialized Form

Constructor Summary
SimpleMenuItem()
          Constructor.
 
Method Summary
 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. what is really visible to the user.
 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. what is really visible to the user.
 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(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


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.