NextApp Echo2 Extras
v2.1.0

nextapp.echo2.extras.app.menu
Interface MenuModel

All Superinterfaces:
ItemModel, java.io.Serializable
All Known Implementing Classes:
DefaultMenuModel

public interface MenuModel
extends ItemModel

Representation of a single-level menu that may contain menu options, separators and sub-menus.


Method Summary
 nextapp.echo2.app.ImageReference getIcon()
          Returns the icon of the menu.
 ItemModel getItem(int itemIndex)
          Retrieves the ItemModel contained in this menu at the specified index.
 int getItemCount()
          Returns the number of items in the menu.
 java.lang.String getText()
          Returns the text of the menu.
 
Methods inherited from interface nextapp.echo2.extras.app.menu.ItemModel
getId
 

Method Detail

getText

java.lang.String getText()
Returns the text of the menu. This text is displayed in the parent menu if this menu is used as a sub-menu.

Returns:
the text

getItemCount

int getItemCount()
Returns the number of items in the menu.

Returns:
the number of items

getItem

ItemModel getItem(int itemIndex)
Retrieves the ItemModel contained in this menu at the specified index.

Parameters:
itemIndex - the index of the item to retrieve
Returns:
the item

getIcon

nextapp.echo2.app.ImageReference getIcon()
Returns the icon of the menu. This icon is displayed in the parent menu if this menu is used as a sub-menu.

Returns:
the icon

NextApp Echo2 Extras
v2.1.0