This oscar.Gui.Grid widget is designed to hold a tabView display which has the information of selected features as its content.
@deprecated
| oscar. | This oscar.Gui.Grid widget is designed to hold a tabView display which has the information of selected features as its content. |
| Properties | |
| processor {<oscar. | executes the action and returns the requested information. |
| doDialog | {Boolean} Indicates whether or not to display the grid in a dialog. |
| div | {String} The id of the div tag to display the grid in. |
| features | {Array(Array(<OpenLayers.Feature>))} The two dimensional array of feature objects passed in either by the processor or user manually. |
| tabView | {YAHOO.widget.TabView} The YUI TabView control element. |
| map | {oscar.Map} The reference to the map object. |
| tables | {Object} An object referencing the tables for features |
| featureCtrl {<OpenLayers. | to an OpenLayers.Control.SelectFeature control. |
| featureLayer {<OpenLayers. | OpenLayers.Layer.Vector layer for displaying features. |
| Constructor | |
| oscar. | |
| Functions | |
| processResults | This method is used to process the results returned by the processor object. |
| showGrid | Displays the features in a TabView grid. |
| buildTabLayout | Creates the elements to contain the tabs and places them in the DOM. |
| buildTable Builds the tables to show the feature information. | |
| clean | Clears the selection result features on the map and the grid. |
| selectFeature | Called when a feature is selected. |
| unSelectFeature | Called when a feature is unselected. |
| _selectRow | Called when a row in a table is selected. |
| _getListByName | Retrieves the array of features contained in the features array by name |
| _findTab | Retrieves the currently activated tab. |
| _addTab | Creates a tab in the TabView. |
| _buildTable | Calls the buildTable method with the correct parameters. |
| Constants | |
| CLASS_NAME - oscar. |
processResults : function( layer )
This method is used to process the results returned by the processor object.
| Parameters: results | {Object} An object that contains the information to be processed. It may have the following format: (start code) results = { map : oscar.Map, // A reference to an oscar.Map object; features : this.features, // A reference to an {Array(Array(<OpenLayers.Feature>))} object; object : this.processor // A reference to handler object; } (end code) This results parameter can be passed in by user or returned by the processor object. |
_buildTable : function( tab, key, features )
Calls the buildTable method with the correct parameters.
| Parameters: tab | {<YAHOO.widget.Tab>} a reference to a tab object. key - |
| {String} The *key* String of a feature object. features | {<OpenLayers.Feature.Vector>} an Array of OpenLayers.Feature.Vector objects. |
This method is used to process the results returned by the processor object.
processResults : function( layer )
Displays the features in a TabView grid.
showGrid : function()
Creates the elements to contain the tabs and places them in the DOM.
buildTabLayout : function()
Clears the selection result features on the map and the grid.
clean : function()
Called when a feature is selected.
selectFeature : function( feature )
Called when a feature is unselected.
unSelectFeature : function( feature )
Called when a row in a table is selected.
_selectRow : function( feature )
Retrieves the array of features contained in the features array by name
_getListByName : function( name )
Retrieves the currently activated tab.
_findTab : function( name )
Creates a tab in the TabView.
_addTab : function( lbl )
Calls the buildTable method with the correct parameters.
_buildTable : function( tab, key, features )