Initializes a new instance of the MenuRegistry class.
The {@link geocortex.essentialsHtmlViewer.ViewerApplication} that this menu registry belongs to.
Array of configurations for each Menu.
Array of viewId's mapped to their contained menu widget parameters.
The ViewerApplication that this menu registry belongs to.
An array containing references to all the menus registered in the system.
Checks if a given menu id is valid or not. For a menu id to be valid, it should be unique i.e. there should be no exisiting menu's registered with the same name.
The menu ID to check for validity.
A boolean which returns true if the given menu ID is valid; false otherwise.
Validates a given menu model to ensure that it meets the minimum requirements for a valid menu.
The {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuModel} object to validate.
A boolean that returns true if the given MenuModel is valid; false otherwise.
Clears all menus of a given type from the given view. Used to clear feature menus from the featureset results view, as there are too many of these to leave around in case they are needed again.
Generates a menu view based on dom attributes. The attributes that should be present on the DOM element being passed in are:
The view that is requesting the menu widget.
The current context of the widget, if available.
The binding expression passed in to the 'resolveWidget' method from which this method will typically be called.
The library ID for the created menu widget.
An optional id for the menu to be passed at runtime
Use a specific id for the menu view rather than an auto-generated one.
Delay the attach operation until the menu is activated.
A {@link geocortex.framework.ui.ViewBase}, bound, view widget object.
Destroys the menu widget and all it's associated view model bindings and subscriptions. Automatically called when the widget view is destroyed. Note that destroy should already have been called on the menuWidgetView
The menu widget view to destroy.
Fetches the default icon URI for a given menu.
the URI of default icon for given menu.
Fetches a menu by id.
The requested {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuModel} object or null if not found.
Given a view, returns descriptors of any menu widgets created by that view.
The {@link framework.ui.ViewBase} object whose associated menu widget(s) we want to retrieve.
An array of {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuWidgetParameters} objects containing the requested widget(s).
Creates and registers menu's based on the passed in configuration.
A {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuConfig} configuration object.
Registers a menu, given from either a MenuEntryConfig or MenuModel object.
The instance of {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuModel} or {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.menus.MenuEntryConfig} to be registered.
Unregisters a menu.
The ID of the menu to be unregistered.
MenuRegistry is a central management component for creating and accessing menu's from any module across the viewer.