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

Package | org.openscales.core.popup
Class | public class Popup
Inheritance | Popup flash.display.Sprite
Subclasses | Anchored

Class to create a Popup. Extends Sprite.

Public Properties

| Property | Defined by
--- | --- | ---
|  | background : uint | Popup
|  | BACKGROUND : uint = 0xFFFFFF [static] | Popup
|  | border : Number | Popup
|  | BORDER : Number = 2 [static] | Popup
|  | closeBox : Boolean | Popup
|  | feature : Feature | Popup
|  | HEIGHT : Number = 300 [static] | Popup
|  | htmlText : String | Popup
|  | lonlat : LonLat | Popup
|  | map : Map | Popup
|  | position : Pixel | Popup
|  | size : Size | Popup
|  | textfield : TextField | Popup
|  | WIDTH : Number = 300 [static] | Popup

Public Methods

| Method | Defined by
--- | --- | ---
|  | Popup(lonlat:LonLat = null, background:uint = 0, border:Number, size:Size = null, htmlText:String = "", closeBox:Boolean = true) | Popup
|  | closePopup(evt:MouseEvent):void | Popup
|  | destroy():void | Popup
|  | draw(px:Pixel = null):void | Popup
|  | onZoomEnd(e:MapEvent):void | Popup
|  | onZoomStart(e:MapEvent):void | Popup

Protected Methods

| Method | Defined by
--- | --- | ---
|  | createPopupContent():void | Popup

Property detail

background | property

`background:uint` [read-write]Implementation
`public function get background():uint`
`public function set background(value:uint):void`

BACKGROUND | property |

`public static var BACKGROUND:uint = 0xFFFFFF`

border | property |

`border:Number` [read-write]Implementation
`public function get border():Number`
`public function set border(value:Number):void`

BORDER | property |

`public static var BORDER:Number = 2`

closeBox | property |

`closeBox:Boolean` [read-write]Implementation
`public function get closeBox():Boolean`
`public function set closeBox(value:Boolean):void`

feature | property |

`feature:Feature` [read-write]Implementation
`public function get feature():Feature`
`public function set feature(value:Feature):void`

HEIGHT | property |

`public static var HEIGHT:Number = 300`

htmlText | property |

`htmlText:String` [read-write]Implementation
`public function get htmlText():String`
`public function set htmlText(value:String):void`

lonlat | property |

`lonlat:LonLat` [read-write]Implementation
`public function get lonlat():LonLat`
`public function set lonlat(value:LonLat):void`

map | property |

`map:Map` [read-write]Implementation
`public function get map():Map`
`public function set map(value:Map):void`

position | property |

`position:Pixel` [read-write]Implementation
`public function get position():Pixel`
`public function set position(value:Pixel):void`

size | property |

`size:Size` [read-write]Implementation
`public function get size():Size`
`public function set size(value:Size):void`

textfield | property |

`textfield:TextField` [read-write]Implementation
`public function get textfield():TextField`
`public function set textfield(value:TextField):void`

WIDTH | property |

`public static var WIDTH:Number = 300`
Constructor detail

Popup | () | constructor

`public function Popup(lonlat:LonLat = null, background:uint = 0, border:Number, size:Size = null, htmlText:String = "", closeBox:Boolean = true)`Parameters

| `lonlat:LonLat` (default = `null`)``
| `background:uint` (default = `0`)``
| `border:Number`
| `size:Size` (default = `null`)``
| `htmlText:String` (default = "``")``
| `closeBox:Boolean` (default = `true`)``

Method detail

closePopup | () | method

`public function closePopup(evt:MouseEvent):void` Parameters

| `evt:MouseEvent`

createPopupContent | () | method |

`protected function createPopupContent():void`

destroy | () | method |

`public function destroy():void`

draw | () | method |

`public function draw(px:Pixel = null):void` Parameters

| `px:Pixel` (default = `null`)``

onZoomEnd | () | method |

`public function onZoomEnd(e:MapEvent):void` Parameters

| `e:MapEvent`

onZoomStart | () | method |

`public function onZoomStart(e:MapEvent):void` Parameters

| `e:MapEvent`