org.GeoPrisma.GeoExtToolbar.js

Summary
org.GeoPrisma.GeoExtToolbar.js
Constants
i18n_zoomfull_tooltip{String} Tooltip of the zoomfull button
i18n_zoomin_tooltip{String} Tooltip of the zoomin button
i18n_zoomout_tooltip{String} Tooltip of the zoomout button
i18n_pan_tooltip{String} Tooltip of the pan button
i18n_back_tooltip{String} Tooltip of the back button
i18n_next_tooltip{String} Tooltip of the next button
Properties
DEFAULT_CONTROLS{Array(String)} List of default controls and separators to build the toolbar with if no controls were defined.
Functions
initComponentCall by Ext on initialize of the Component
initContentCreate default controls for the map and associate each one of them to a GeoExtAction.
onCheckItemClickedCalled when a checkItem item of a menu item in the toolbar has been clicked.
onActionClickedCalled when a Action (button) item in the toolbar has been clicked.
onAfterRenderCalled after the toolbar has been rendered.

Constants

i18n_zoomfull_tooltip

{String} Tooltip of the zoomfull button

i18n_zoomin_tooltip

{String} Tooltip of the zoomin button

i18n_zoomout_tooltip

{String} Tooltip of the zoomout button

i18n_pan_tooltip

{String} Tooltip of the pan button

i18n_back_tooltip

{String} Tooltip of the back button

i18n_next_tooltip

{String} Tooltip of the next button

Properties

DEFAULT_CONTROLS

{Array(String)} List of default controls and separators to build the toolbar with if no controls were defined.

Functions

initComponent

initComponent: function()

Call by Ext on initialize of the Component

Use to register function on event afterrender

initContent

initContent : function(map,
options)

Create default controls for the map and associate each one of them to a GeoExtAction.

The initialisation of QuickTips MUST be made in a Ext.onReady function in order to have tooltips working : Ext.QuickTips.init();

Parameters

map{OpenLayers.Map} The map object

onCheckItemClicked

onCheckItemClicked : function()

Called when a checkItem item of a menu item in the toolbar has been clicked.

Unpress all buttons from the toolbar if it has a group and disable its according OpenLayers control.

onActionClicked

onActionClicked : function()

Called when a Action (button) item in the toolbar has been clicked.

Uncheck all items from menu items in the toolbar and disable its according OpenLayers control.

onAfterRender

onAfterRender : function()

Called after the toolbar has been rendered.

Used register events on Buttons and Menu items that share the same group to fix the following bug :

on button clicked : uncheck all menu items and deactivate all according controls. on menu item cliked : unpress all buttons and deactivate all according controls.

N.B.  This function doesn’t check if the items actually share the same group, only if it has the property.

initComponent: function()
Call by Ext on initialize of the Component
initContent : function(map,
options)
Create default controls for the map and associate each one of them to a GeoExtAction.
onCheckItemClicked : function()
Called when a checkItem item of a menu item in the toolbar has been clicked.
onActionClicked : function()
Called when a Action (button) item in the toolbar has been clicked.
onAfterRender : function()
Called after the toolbar has been rendered.
Close