Legato.Control.ControlSwitcher

The ControlSwitcher control is able to manage a list of legato controls.  The ControlSwitcher always ensures that only one control of given list is active.  If a defaultControl has been configured this control will always be active if no other control of given list is active.

Summary
Legato.Control.ControlSwitcherThe ControlSwitcher control is able to manage a list of legato controls.
Functions
initializeBasic ctor
destroy<OpenLayer.Control>
setMap<OpenLayer.Control>
draw<OpenLayer.Control>
Properties
QNameThe qualified name for this control.

Functions

initialize

initialize : function(controls,
defaultControl,
options)

Basic ctor

Parameters

options{Object} A Hashmap containing option parameters for this control The following keys are supported
  • controls {Object} A hashmap containing all Legato.Control instance which will been controlled by this control
  • defaultControl {Object} If configured this control becomes automatically active if all other ones are deactivated.

destroy

destroy : function()

See Also

<OpenLayer.Control>

setMap

setMap : function(map)

See Also

<OpenLayer.Control>

draw

draw : function()

See Also

<OpenLayer.Control>

Properties

QName

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

initialize : function(controls,
defaultControl,
options)
Basic ctor
destroy : function()
OpenLayer.Control
setMap : function(map)
OpenLayer.Control
draw : function()
OpenLayer.Control