API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class Capabilities

Package | org.openscales.component.control
Class | public class Capabilities
Inheritance | Capabilities Control mx.containers.Canvas

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean | Control
|  | fxmap : FxMap | Control
|  | map : Map [write-only] | Capabilities
|  | position : Pixel | Control

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _active : Boolean = false | Control
|  | _fxmap : FxMap = null | Control
|  | _isInitialized : Boolean = false Store if this control have been initialized (Event.COMPLETE has been thrown) | Control
|  | _map : Map = null | Control

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | capabilitiesGetter(getCap:GetCapabilities):void TODO: Refactor this to use events Callback method to retrieve the capabilities from the GetCapabilities instance. | Capabilities
|  | deleteLayer(event:LayerEvent):void Called when a LAYER_REMOVED event is dispatched. | Capabilities
|  | draw():void | Control
|  | onButtonClick(event:MouseEvent):void | Capabilities
|  | onChangeListElement(event:Event):void Method called when the user select an other list element (which is an available layer on server). | Capabilities
|  | onDblClickListElement(event:MouseEvent):void Double click handler on a list element. It will add the layer at the map (and so in the layer switcher). | Capabilities

Protected Methods
Hide Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined by
--- | --- | ---
|  | onCreationComplete(event:Event):void The Flex side of the control has been created, so activate the control if needed and if the map has been set | Control
|  | onFxMapCreationComplete(event:Event):void Flex Map wrapper initialization | Control

Property detail

map | property

`map:Map` [write-only]Implementation
`public function set map(value:Map):void`
Method detail

capabilitiesGetter | () | method

`public function capabilitiesGetter(getCap:GetCapabilities):void`

TODO: Refactor this to use events Callback method to retrieve the capabilities from the GetCapabilities instance.

Parameters

| `getCap:GetCapabilities` — The GetCapabilities instance that received the capabilities.

deleteLayer | () | method |

`public function deleteLayer(event:LayerEvent):void`

Called when a LAYER_REMOVED event is dispatched. It will remove the layer from the added layers.

Parameters

| `event:LayerEvent`

onButtonClick | () | method |

`public function onButtonClick(event:MouseEvent):void` Parameters

| `event:MouseEvent`

onChangeListElement | () | method |

`public function onChangeListElement(event:Event):void`

Method called when the user select an other list element (which is an available layer on server). It will display the informations about the layer.

Parameters

| `event:Event`

onDblClickListElement | () | method |

`public function onDblClickListElement(event:MouseEvent):void`

Double click handler on a list element.

It will add the layer at the map (and so in the layer switcher).

Parameters

| `event:MouseEvent`