Fusion. Widget. SelectionPanel

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

Summary
A widget to display information about the currently selected set of features.
{String} The default image for Previous page button.
{String} The default image for Previous page button.
This is a class designed to help users to create their own renderer for customize display results.
{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.
{Array(int)} The index of the current position for pagination.
{int} The number of results per page for pagination.
Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
Helper method to update the aiCurrentIndex array for pagination.
Get the next batches of features.
Get the previous batches of features.
Helper method to obtains the map.
Get a batches of features in a selection.
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.
This class provide a default behavior for the selection panel.
This 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
{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.
{Array(int)} The index of the current position for pagination.
{int} The number of results per page for pagination.
Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
Helper method to update the aiCurrentIndex array for pagination.
Get the next batches of features.
Get the previous batches of features.
Helper method to obtains the map.
Get a batches of features in a selection.
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
Abstract 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.
A set of classes that implement layer functionality for various server technologies.