net.sourceforge.tapestry_jsmenu.api
Interface IMenuItemRenderer

All Superinterfaces:
java.io.Serializable

public interface IMenuItemRenderer
extends java.io.Serializable

This interface dynamically provides a component for a given item to render it with. Instances of this interface can be bound to the parameters iconRenderer or contentRenderer of the JSCookMenu component.

Author:
Burkhard Eggers

Method Summary
 IComponent render(IJSCookMenuItem item)
          returning null means For the main field : The item is hidden For icon field : Default icon rendering is applied for this item.
 

Method Detail

render

IComponent render(IJSCookMenuItem item)
returning null means

For the main field : The item is hidden

For icon field : Default icon rendering is applied for this item.

Parameters:
item - the current menu item
Returns:
the component that renders the item or null.