org.apache.struts.tiles.beans

Class SimpleMenuItem

Implemented Interfaces:
MenuItem, Serializable

public class SimpleMenuItem
extends java.lang.Object
implements MenuItem, Serializable

A MenuItem implementation. Used to read menu items in definitions.

Field Summary

private String
icon
private String
link
private String
tooltip
private String
value

Constructor Summary

SimpleMenuItem()
Constructor.

Method Summary

String
getIcon()
Get icon property.
String
getLink()
Get link property.
String
getTooltip()
Get tooltip property.
String
getValue()
Get value property.
void
setIcon(String icon)
Set icon property.
void
setLink(String link)
Set link property.
void
setTooltip(String tooltip)
Set tooltip property.
void
setValue(String value)
Set value property.
String
toString()
Return String representation.

Field Details

icon

private String icon

link

private String link

tooltip

private String tooltip

value

private String value

Constructor Details

SimpleMenuItem

public SimpleMenuItem()
Constructor.

Method Details

getIcon

public String getIcon()
Get icon property.
Specified by:
getIcon in interface MenuItem

getLink

public String getLink()
Get link property.
Specified by:
getLink in interface MenuItem

getTooltip

public String getTooltip()
Get tooltip property.
Specified by:
getTooltip in interface MenuItem

getValue

public String getValue()
Get value property.
Specified by:
getValue in interface MenuItem

setIcon

public void setIcon(String icon)
Set icon property.
Specified by:
setIcon in interface MenuItem

setLink

public void setLink(String link)
Set link property.
Specified by:
setLink in interface MenuItem

setTooltip

public void setTooltip(String tooltip)
Set tooltip property.
Specified by:
setTooltip in interface MenuItem

setValue

public void setValue(String value)
Set value property.
Specified by:
setValue in interface MenuItem

toString

public String toString()
Return String representation.

Copyright B) 2000-2007 - The Apache Software Foundation