WFSFilterBuilderButton.js

Summary
WFSFilterBuilderButton.js
Constants
window_title_text {String} Title of the default window
close_button_text {String} Text in the close button of the defaultwindow
csv_export_text {String}
clear_filter_text {String}
csv_confirm_export_prefix_text {String}
csv_confirm_suffix_prefix_text {String}
loading_please_wait_text {String}
Properties
window {Ext.Window} The window that contains the Tabpanel
map (Object) The default map of the application
layer (Object) The default wfs layer of the application
comboBoxLayerType (Ext.form.ComboBox) The comboBox to selectthe active layer
resetFiltersButton (Ext.Button) The button to resetall filters
filterBuilderSelector (GeoExt.ux.FilterBuilderSelector) Thepanel that enable to choose some FilterBuilder
queryOnClick (OpenLayers.Control.QueryOnClick) ThequeryOnClick widget that communicates with the widget
wfsSearch (GeoExt.ux.WFSSearch) The plugin for quick querieson top of the FeatureGridResult panel
pagingToolbar (Ext.PagingToolbar) The toolbar for pagingmanagement
featureGridResult (GeoExt.ux.FeatureGridResult) The panel thatcontains the result of the research
tabPanel (Ext.TabPanel) The TabPanel that contains thefeatureGridResult and the filterBuilderSelector
featureConfigs (Array) An array of all the features added
currentIndex(Integer) The currently selected layer in the combobox.
Functions
GeoExt.ux.WFSFilterBuilderButton Create a newWFSFilterBuilderButton
initComponentThis method initialise every elements of the button
setLayerSet the layer
setMapSet the map
setQueryOnClickSet the queryOnClickWidget
onStoreLoadedThe method is called after the load of each store.
addActionAdd a new action to the bottom right of the FeatureGridResult
callActionMethod called on click on a added action
getActiveStore
addWFSCSVExportButton
currentWFSServiceAllowsCSVExportCheck if the current selected resource has a WFS service which supports CSV export.

Constants

window_title_text {String} Title of the default window

close_button_text {String} Text in the close button of the default

window

csv_export_text {String}

clear_filter_text {String}

csv_confirm_export_prefix_text {String}

csv_confirm_suffix_prefix_text {String}

loading_please_wait_text {String}

Properties

window {Ext.Window} The window that contains the Tabpanel

map (Object) The default map of the application

layer (Object) The default wfs layer of the application

comboBoxLayerType (Ext.form.ComboBox) The comboBox to select

the active layer

resetFiltersButton (Ext.Button) The button to reset

all filters

filterBuilderSelector (GeoExt.ux.FilterBuilderSelector) The

panel that enable to choose some FilterBuilder

queryOnClick (OpenLayers.Control.QueryOnClick) The

queryOnClick widget that communicates with the widget

wfsSearch (GeoExt.ux.WFSSearch) The plugin for quick queries

on top of the FeatureGridResult panel

pagingToolbar (Ext.PagingToolbar) The toolbar for paging

management

featureGridResult (GeoExt.ux.FeatureGridResult) The panel that

contains the result of the research

tabPanel (Ext.TabPanel) The TabPanel that contains the

featureGridResult and the filterBuilderSelector

featureConfigs (Array) An array of all the features added

currentIndex

(Integer) The currently selected layer in the combobox.  Used for validation purpose only.

Functions

GeoExt.ux.WFSFilterBuilderButton Create a new

WFSFilterBuilderButton

Parameters: config{Object} An optional object whose properties will be set on this instance.

initComponent

initComponent : function()

This method initialise every elements of the button

setLayer

setLayer : function(layer)

Set the layer

Parameters

layer{OpenLayers.Layer.Vector} The layer

setMap

setMap : function(map)

Set the map

Parameters

map{OpenLayers.Map} The map

setQueryOnClick

setQueryOnClick : function(queryOnClick)

Set the queryOnClickWidget

Parameters

queryOnClick{OpenLayers.Control.QueryOnClick} The queryOnClick widget

onStoreLoaded

onStoreLoaded : function(store)

The method is called after the load of each store.

Parameters

store{gxp.data.WFSFeatureStore} The store to loaded

addAction

addAction : function(title,
url)

Add a new action to the bottom right of the FeatureGridResult

Parameters

title{string} Texte showed on the button
url(string) Url called on click

callAction

callAction : function (url)

Method called on click on a added action

Parameters

url(string) Url called on click

getActiveStore

getActiveStore: function()

addWFSCSVExportButton

addWFSCSVExportButton: function()

currentWFSServiceAllowsCSVExport

currentWFSServiceAllowsCSVExport: function()

Check if the current selected resource has a WFS service which supports CSV export.

initComponent : function()
This method initialise every elements of the button
setLayer : function(layer)
Set the layer
setMap : function(map)
Set the map
setQueryOnClick : function(queryOnClick)
Set the queryOnClickWidget
onStoreLoaded : function(store)
The method is called after the load of each store.
addAction : function(title,
url)
Add a new action to the bottom right of the FeatureGridResult
callAction : function (url)
Method called on click on a added action
getActiveStore: function()
addWFSCSVExportButton: function()
currentWFSServiceAllowsCSVExport: function()
Check if the current selected resource has a WFS service which supports CSV export.
Close