Legato.Control.BBoxValueProvider

ValueProvider which gives you the possibility to be notified about every change of the current BBox Selection.  The notification could be a JS Callback or a Object where its property will be overwritten each time the watched value changes.

Inherits from:Legato.Control
Summary
Legato.Control.BBoxValueProviderValueProvider which gives you the possibility to be notified about every change of the current BBox Selection.
Functions
initializeBasic ctor
destroy<OpenLayer.Control>
setMap<OpenLayer.Control>
draw<OpenLayer.Control>
lc:BBoxValueProviderXML based config for a Legato.Control.BBoxValueProvider.
Properties
QNameThe qualified name for this control.
leftDefines the {DOMElement} id where the left <OpenLayers.Bounds> value should be written into.
rightDefines the {DOMElement} id where the right <OpenLayers.Bounds> value should be written into.
topDefines the {DOMElement} id where the top <OpenLayers.Bounds> value should be written into.
bottomDefines the {DOMElement} id where the bottom <OpenLayers.Bounds> value should be written into.

Functions

initialize

initialize : function(options)

Basic ctor

Parameters

options{Object} A Hashmap containing option parameters for this control The following keys are supported
  • observer {Object} A hashmap containing an observer

The following keys are supported for an observer element

  • target {object} an object which wants to observe,
  • property{function|String} the propety or function which should be used for providing the observed value
  • bBoxProperty {String} any Property name of an <OpenLayers.Bounds> instance
  • write {Boolean} true = value changes of observer will be given back to current map, false otherwise

destroy

destroy : function()

See Also

<OpenLayer.Control>

setMap

setMap : function(map)

See Also

<OpenLayer.Control>

draw

draw : function()

See Also

<OpenLayer.Control>

lc:BBoxValueProvider

XML based config for a Legato.Control.BBoxValueProvider.

See Also

A valid config example for a BBoxValueProvider would be

<lc:BBoxValueProvider left="bboxLeft" right="bboxRight" top="bboxTop" bottom="bboxBottom"/>
Summary
Properties
QNameThe qualified name for this control.
leftDefines the {DOMElement} id where the left <OpenLayers.Bounds> value should be written into.
rightDefines the {DOMElement} id where the right <OpenLayers.Bounds> value should be written into.
topDefines the {DOMElement} id where the top <OpenLayers.Bounds> value should be written into.
bottomDefines the {DOMElement} id where the bottom <OpenLayers.Bounds> value should be written into.

Properties

QName

The qualified name for this control.  Needed by XML config to instantiate it.

left

Defines the {DOMElement} id where the left <OpenLayers.Bounds> value should be written into.  The DOMElement must exists in current DOM.  Otherwise an Exception is thrown.

right

Defines the {DOMElement} id where the right <OpenLayers.Bounds> value should be written into.  The DOMElement must exists in current DOM.  Otherwise an Exception is thrown.

top

Defines the {DOMElement} id where the top <OpenLayers.Bounds> value should be written into.  The DOMElement must exists in current DOM.  Otherwise an Exception is thrown.

bottom

Defines the {DOMElement} id where the bottom <OpenLayers.Bounds> value should be written into.  The DOMElement must exists in current DOM.  Otherwise an Exception is thrown.

initialize : function(options)
Basic ctor
destroy : function()
OpenLayer.Control
setMap : function(map)
OpenLayer.Control
draw : function()
OpenLayer.Control
ValueProvider which gives you the possibility to be notified about every change of the current BBox Selection.
Abstract base class for all Legato control classes
The qualified name for this control.