Fusion.Widget.SelectionPanel

A widget to display information about the currently selected set of features.

Inherits from

Summary
Fusion.Widget.SelectionPanelA widget to display information about the currently selected set of features.
Properties
previousIcon{String} The default image for Previous page button.
nextIcon{String} The default image for Previous page button.
Fusion.Widget.SelectionPanel.SelectionRendererThis is a class designed to help users to create their own renderer for customize display results.
Properties
oSelectionPanel{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.
aiCurrentIndex{Array(int)} The index of the current position for pagination.
iResultsPerPage{int} The number of results per page for pagination.
Functions
Fusion.Widget.SelectionPanel.SelectionRendererConstructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
updateSelectionObjectHelper method to update the aiCurrentIndex array for pagination.
getNextPageGet the next batches of features.
getPreviousPageGet the previous batches of features.
getMapHelper method to obtains the map.
getPageGet a batches of features in a selection.
updateSelectionAbstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
clearSelectionAbstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.
Fusion.Widget.SelectionPanel.SelectionRendererDefaultThis class provide a default behavior for the selection panel.
Fusion.Widget.SelectionPanel.SelectionRendererHorizontalThis class provide a alternate behavior for the selection panel.

Properties

previousIcon

{String} The default image for Previous page button.

nextIcon

{String} The default image for Previous page button.

Fusion.Widget.SelectionPanel.SelectionRenderer

This is a class designed to help users to create their own renderer for customize display results.

Summary
Properties
oSelectionPanel{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.
aiCurrentIndex{Array(int)} The index of the current position for pagination.
iResultsPerPage{int} The number of results per page for pagination.
Functions
Fusion.Widget.SelectionPanel.SelectionRendererConstructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
updateSelectionObjectHelper method to update the aiCurrentIndex array for pagination.
getNextPageGet the next batches of features.
getPreviousPageGet the previous batches of features.
getMapHelper method to obtains the map.
getPageGet a batches of features in a selection.
updateSelectionAbstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
clearSelectionAbstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.

Properties

oSelectionPanel

{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.

aiCurrentIndex

{Array(int)} The index of the current position for pagination.

iResultsPerPage

{int} The number of results per page for pagination.

Functions

Fusion.Widget.SelectionPanel.SelectionRenderer

Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.

Parameters

selectionPanel{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.

updateSelectionObject

Helper method to update the aiCurrentIndex array for pagination.

getNextPage

getNextPage: function(selectionLayer)

Get the next batches of features.  Wrapper of the getPage() method.  This method calcul the startIndex/endIndex of the next batch.

Parameters

selectionLayer{Fusion.SelectionObject.Layer} The layer that contains the set of features.

Returns

{Array(Array)} An array of all features with their properties.

getPreviousPage

getPreviousPage: function(selectionLayer)

Get the previous batches of features.  Wrapper of the getPage() method.  This method calcul the startIndex/endIndex of the previous batch.

Parameters

selectionLayer{Fusion.SelectionObject.Layer} The layer that contains the set of features.

Returns

{Array(Array)} An array of all features with their properties.

getMap

getMap: function()

Helper method to obtains the map.

Returns

{<Fusion.Maps>} The map that uses the SelectionPanel Widget.

getPage

getPage: function(selectionLayer,
startIndex,
endIndex)

Get a batches of features in a selection.

Parameters

selectionLayer{Fusion.SelectionObject.Layer} The layer that contains the set of features.
startIndex{int} The index of the first element.
endIndex{int} The index of the last element.

Returns

{Array(Array)} An array of all features with their properties.

updateSelection

updateSelection: function()

Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.  This method should be implemented by all concrete class.

clearSelection

clearSelection: function()

Abstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.  This method should be implemented by all concrete class.

Fusion.Widget.SelectionPanel.SelectionRendererDefault

This class provide a default behavior for the selection panel.

Fusion.Widget.SelectionPanel.SelectionRendererHorizontal

This class provide a alternate behavior for the selection panel.  Generate a table which have one feature per row.

A widget to display information about the currently selected set of features.
Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
getNextPage: function(selectionLayer)
Get the next batches of features.
getPreviousPage: function(selectionLayer)
Get the previous batches of features.
getMap: function()
Helper method to obtains the map.
getPage: function(selectionLayer,
startIndex,
endIndex)
Get a batches of features in a selection.
updateSelection: function()
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
clearSelection: function()
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.
This is the base class for all widgets.
Defines a map layer in a {Fusion.SelectionObject}
Close