ResultExtGrid.js

Summary
ResultExtGrid.js
Constants
i18n_default_panel_html{String} Html contain of the default panel
i18n_default_panel_title{String} Title of the default panel
i18n_no_result_panel_html{String} Html contain of the no result panel
i18n_no_result_panel_title{String} Title of the no result panel
i18n_query_result{String} ??
i18n_message_select_row{String} Alert message to select row in grid
i18n_message_select_row{String} Alert message to select row in grid
i18n_window_title{String} Title for window when inwindow is true
Properties
APIProperty: drawMode{string}
panel{Ext.TabPanel} The panel that contains the GridPanel created for each query result type
oldWindow{Ext.Window} When in inWindow:true mode, the window that opens is not destroyed on closing.
defaultPanel{Object} The object used to create the panel displayed by default in this.panel.
defaultPanel{Object} The object used to create the panel displayed when the retuned query had no results to display.
htmlInfoFormatRequests{Array} An array of request urls that containt ‘info_format’ equal to ‘text/html’.
Functions
OpenLayers.ResultExtGridCreate a new ResultExtGrid renderer
resetPanelCalled by the query as soon as the user clicks the map.
showResultCalled by the query as soon as all responses were parses to features.
showPanelCalled by this.showResult when the panel received all its new results or when an error occurs, like “there’s no result to display”.
getResourceReturns the resource object of this widget having a given name.

Constants

i18n_default_panel_html

{String} Html contain of the default panel

i18n_default_panel_title

{String} Title of the default panel

i18n_no_result_panel_html

{String} Html contain of the no result panel

i18n_no_result_panel_title

{String} Title of the no result panel

i18n_query_result

{String} ??

i18n_message_select_row

{String} Alert message to select row in grid

i18n_message_select_row

{String} Alert message to select row in grid

i18n_window_title

{String} Title for window when inwindow is true

Properties

APIProperty: drawMode

{string}

panel

{Ext.TabPanel} The panel that contains the GridPanel created for each query result type

oldWindow

{Ext.Window} When in inWindow:true mode, the window that opens is not destroyed on closing.  It is assigned to this property.  This is a fix because of a bug in IE.  See below.

defaultPanel

{Object} The object used to create the panel displayed by default in this.panel.  As soon as a result is returned, it is removed.

defaultPanel

{Object} The object used to create the panel displayed when the retuned query had no results to display.

htmlInfoFormatRequests

{Array} An array of request urls that containt ‘info_format’ equal to ‘text/html’.  These kind of requests are simply directly inside automatically created panels.

Functions

OpenLayers.ResultExtGrid

Create a new ResultExtGrid renderer

Parameters

options{Object} An optional object whose properties will be set on this instance.

resetPanel

resetPanel: function(options)

Called by the query as soon as the user clicks the map.  It adds the defaultPanel and removes all other components from this.panel.

options{<Object>} Hash of options.  Possible keys are :
  • modifiers : the query modifiers

showResult

showResult: function(features,
htmlResults)

Called by the query as soon as all responses were parses to features.  First clean this.panel to reset the default values, then prepare the data to be displayed in Ext.GridPanels, one per server-side layer.

Parameters

features{Array of <OpenLayers.Feature.Vector>}
htmlResults{Array of <Object>} Objects returned by queries using ‘info_format’ equal to ‘text/html’.

showPanel

showPanel: function()

Called by this.showResult when the panel received all its new results or when an error occurs, like “there’s no result to display”.

The results are displayed in a window if inWindow:true else in this.panel.ownerCt

Parameters

this.panel{Ext.TabPanel}

getResource

getResource: function(resourceName)

Returns the resource object of this widget having a given name.  If not found, returns false.

Parameters

resourceName{String} The name of the resource to find

Returns

{Object} The resource

resetPanel: function(options)
Called by the query as soon as the user clicks the map.
showResult: function(features,
htmlResults)
Called by the query as soon as all responses were parses to features.
showPanel: function()
Called by this.showResult when the panel received all its new results or when an error occurs, like “there’s no result to display”.
getResource: function(resourceName)
Returns the resource object of this widget having a given name.
Close