|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IJSCookMenuItem
IJSCookMenuItem is the base unit for the menu item model being used by the JSCookMenu component to render the menu.
Note that there is no method in this interface giving some value to
be displayed in the content field of the menu item since
that information and its corresponding binding to HTML-rendering components
is application specific.
The BasicJSCookMenuItem implementation of this interface adds some convenience
constructors and a getValue() method that might be used in ognl bindings
BasicJSCookMenuItem| Field Summary | |
|---|---|
static IJSCookMenuItem |
MENU_SEPARATOR
static instance, representing a separator. |
| Method Summary | |
|---|---|
java.lang.Iterable<IJSCookMenuItem> |
getChildren()
If this item has a submenu, this method retrieves the child items. |
IAsset |
getIconAsset()
The default behaviour of icon displaying calls this method to retrieve the items icon. |
IAsset |
getIconHoverAsset()
The default behaviour of icon displaying calls this method to retrieve the items mouse-over icon. |
boolean |
isSeparator()
When the item is a menu separator, all other methods of this interface are ignored and a separator is displayed. |
| Field Detail |
|---|
static final IJSCookMenuItem MENU_SEPARATOR
| Method Detail |
|---|
java.lang.Iterable<IJSCookMenuItem> getChildren()
boolean isSeparator()
IAsset getIconAsset()
IAsset getIconHoverAsset()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||