Namespace GSContextMenuManager
A static class facilitating access to application context menus.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
GSContextMenuManager.addContextMenu(name, cxtMenu)
Adds a named context menu
|
| <static> |
GSContextMenuManager.contextMenuHidden(cxtMenu)
Called by a context menu enabled object when it hides its context menu
|
| <static> |
GSContextMenuManager.contextMenuOpened(cxtMenu)
Called by a context menu enabled object when it opens its context menu
|
| <static> |
GSContextMenuManager.getContextMenu(options)
Returns the map's context menu if it exists, otherwise creates a new context menu using
options if provided |
| <static> |
GSContextMenuManager.getContextMenuByName(name)
Returns the named context menu
|
Method Detail
<static>
GSContextMenuManager.addContextMenu(name, cxtMenu)
Adds a named context menu
- Parameters:
- {String} name
- the context menu name
- {GSContextMenu} cxtMenu
- the context menu to set
<static>
GSContextMenuManager.contextMenuHidden(cxtMenu)
Called by a context menu enabled object when it hides its context menu
- Parameters:
- {GSContextMenu} cxtMenu
- the context menu that was opened
<static>
GSContextMenuManager.contextMenuOpened(cxtMenu)
Called by a context menu enabled object when it opens its context menu
- Parameters:
- {GSContextMenu} cxtMenu
- the context menu that was opened
<static>
{GSContextMenu}
GSContextMenuManager.getContextMenu(options)
Returns the map's context menu if it exists, otherwise creates a new context menu using
options if provided
- Parameters:
- {Object} options Optional
- options for the context menu
- Returns:
- {GSContextMenu} a context menu instance
<static>
{GSContextMenu}
GSContextMenuManager.getContextMenuByName(name)
Returns the named context menu
- Parameters:
- {String} name
- the name of the context menu to return
- Returns:
- {GSContextMenu} a context menu instance