|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.sourceforge.tapestry_jsmenu.api.BasicJSCookMenuItem
public class BasicJSCookMenuItem
Convenience implementation of IJSCookMenuItem
This class introduces a value field filled in the constructors and
retrieved in the getValue() method that might be called in ognl bindings to retrieve
some value to be rendered in some component that renders the menu content.
IJSCookMenuItem| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.tapestry_jsmenu.api.IJSCookMenuItem |
|---|
MENU_SEPARATOR |
| Constructor Summary | |
|---|---|
BasicJSCookMenuItem(java.lang.Object value)
Constructs an item with no icons |
|
BasicJSCookMenuItem(java.lang.Object value,
IAsset asset)
Constructs an item with an icon that is shown both in normal mode and mouse over mode. |
|
BasicJSCookMenuItem(java.lang.Object value,
IAsset asset,
IAsset hoverAsset)
Constructs an item with normal mode and mouse over icons. |
|
| Method Summary | |
|---|---|
void |
addItem(IJSCookMenuItem item)
Adds a menu item to the sub menu of this item |
java.lang.Iterable<IJSCookMenuItem> |
getChildren()
Retrieves the items of the submenu belonging to this item. |
IAsset |
getIconAsset()
retrieves the normal icon |
IAsset |
getIconHoverAsset()
retrieves the mouse over icon |
java.lang.Object |
getValue()
Retrieves the value that characterizes this item. |
boolean |
isSeparator()
When the item is a menu separator, all other methods of this interface are ignored and a separator is displayed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicJSCookMenuItem(java.lang.Object value)
value - some arbitrary object characterizing this item. Might be just a literal.
public BasicJSCookMenuItem(java.lang.Object value,
IAsset asset)
value - some arbitrary object characterizing this item. Might be just a literalasset - the icon
public BasicJSCookMenuItem(java.lang.Object value,
IAsset asset,
IAsset hoverAsset)
value - some arbitrary object characterizing this item. Might be just a literalasset - the icon for the normal mode. Use null if no icon shall be shown in normal modehoverAsset - the icon that is displayed on mouse over. Use null, if you want the icon to disappear
in mouse over mode.| Method Detail |
|---|
public void addItem(IJSCookMenuItem item)
item - the item to be added to the submenupublic java.lang.Iterable<IJSCookMenuItem> getChildren()
getChildren in interface IJSCookMenuItempublic boolean isSeparator()
IJSCookMenuItem
isSeparator in interface IJSCookMenuItempublic java.lang.Object getValue()
public IAsset getIconAsset()
getIconAsset in interface IJSCookMenuItempublic IAsset getIconHoverAsset()
getIconHoverAsset in interface IJSCookMenuItem
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||