mapfish.widgets.data.GridRowFeatureMediator

A mediator for selecting feature on grid row selection and vice-vera.

Usage example

var mediator = new mapfish.widgets.data.GridRowFeatureMediator({
    grid: grid,
    selectControl: selectFeatureControl
});
Summary
mapfish.widgets.data.GridRowFeatureMediatorA mediator for selecting feature on grid row selection and vice-vera.
Constructor
mapfish.widgets.data.GridRowFeatureMediatorCreate an instance of mapfish.widgets.data.GridRowFeatureMediator.
Properties
autoActivate{Boolean} The instance is activated at creation time, defaults to true.
selectControl{OpenLayers.Control.SelectFeature} The select feature control.
grid{Ext.grid.GridPanel} The grid panel.
Functions
activateActivate the mediator.
deactivateDeactivate the mediator.

Constructor

mapfish.widgets.data.GridRowFeatureMediator

Create an instance of mapfish.widgets.data.GridRowFeatureMediator.

Parameters

config{Object}

Returns

{mapfish.widgets.data.GridRowFeatureMediator}

Properties

autoActivate

{Boolean} The instance is activated at creation time, defaults to true.

selectControl

{OpenLayers.Control.SelectFeature} The select feature control.

grid

{Ext.grid.GridPanel} The grid panel.

Functions

activate

activate: function()

Activate the mediator.

Returns

{Boolean}False if the mediator was already active, true otherwise.

deactivate

deactivate: function()

Deactivate the mediator.

Returns

{Boolean}False if the mediator was already deactive, true otherwise.
The SelectFeature control selects vector features from a given layer on click or hover.
activate: function()
Activate the mediator.
deactivate: function()
Deactivate the mediator.
Create an instance of mapfish.widgets.data.GridRowFeatureMediator.
Close