Class MMMenuWidget

Object
   |
   +--MMWidget
         |
         +--MMMenuWidget
Direct Known Subclasses:
MMToolsWidget

class MMMenuWidget
extends MMWidget

Defined in MultimapOpenAPI


Constructor Summary
MMMenuWidget ( <String> label, <MMBox> position, <String> className )
            This class defines an object that can be added to the map to give a menu of options.
 
Method Summary
 void addItem( <MMMenuItem> item )
           Allows you to add content to the context menu.
 void addItemsJSON( items )
           Allows you to add multiple items to the menu using a single call, by passing in a javascript object literal containing the data.
 integer getItemsCount()
           Retrieves the number of items in the menu.
 void removeItem( <MMMenuItem> item )
           Removes an item from the menu, redraws the widget if it has been drawn already.
 void setClassName( className )
           Allows the class name for the widget to be reset; this is only valid before the context menu has been drawn.
 
Methods inherited from class MMWidget
processHTML, addEventHandlers, setContainer, getContainer, getCalculatedDrawContainer, setPosition, _hasCssClass, _getElementsByTagNameClass
 

Constructor Detail

MMMenuWidget

MMMenuWidget( <String> label, <MMBox> position, <String> className )

Method Detail

addItem

void addItem( <MMMenuItem> item )

addItemsJSON

void addItemsJSON( items )

getItemsCount

integer getItemsCount()

removeItem

void removeItem( <MMMenuItem> item )

setClassName

void setClassName( className )


Documentation generated by JSDoc on Tue Feb 26 16:25:19 2008