| Package | com.afcomponents.umap.display.infowindow |
| Class | public class Panel |
| Inheritance | Panel flash.display.Sprite |
| Implements | IPanel |
| Subclasses | AssetPanel, ImagePanel, TextPanel |
See also
| Property | Defined by | ||
|---|---|---|---|
| asDisplayObject : DisplayObject [read-only]
Returns a reference to the Panel as a DisplayObject.
| Panel | ||
| Property | Defined by | ||
|---|---|---|---|
| _autoSize : String
Auto size type.
| Panel | ||
| _data : *
Panel data.
| Panel | ||
| _maxSize : Size
Maximum possible size.
| Panel | ||
| _size : Size
Desired size.
| Panel | ||
| Method | Defined by | ||
|---|---|---|---|
|
Panel(name:String = null)
Panel's constructor.
| Panel | ||
|
close():void
Invoked by info window when it has been closed.
| Panel | ||
|
dispose():void
Invoked by Info Window to tell the panel auto size type and maximum size.
| Panel | ||
|
getData():*
Returns panel data.
| Panel | ||
|
Returns actual size of the Panel.
| Panel | ||
|
Returns the style object associated with the panel.
| Panel | ||
|
Initalizes the panel options.
| Panel | ||
|
move(x:Number, y:Number):void
Moves panel to the specified point.
| Panel | ||
|
reset():void
Refreshes the panel.
| Panel | ||
|
resize():void
Invoked when the size of the panel should be updated.
| Panel | ||
|
setData(value:*):void
Sets new panel data.
| Panel | ||
|
setFinalSize(size:Size):void
Invoked by InfoWindow to inform the Panel about the final available size for the panel.
| Panel | ||
|
Invoked by InfoWindow to inform the Panel about the desired size.
| Panel | ||
|
setStyle(style:Object):void
Sets the style of the panel.
| Panel | ||
| asDisplayObject | property |
asDisplayObject:DisplayObject [read-only]Returns a reference to the Panel as a DisplayObject.
Implementation public function get asDisplayObject():DisplayObject
| _autoSize | property |
| _data | property |
protected var _data:*Panel data.
| _maxSize | property |
protected var _maxSize:SizeMaximum possible size.
| _size | property |
protected var _size:SizeDesired size.
| Panel | () | constructor |
public function Panel(name:String = null)Panel's constructor.
Parametersname:String (default = null) |
| close | () | method |
public function close():voidInvoked by info window when it has been closed.
| dispose | () | method |
public function dispose():voidInvoked by Info Window to tell the panel auto size type and maximum size.
| getData | () | method |
public function getData():*Returns panel data.
Returns* |
| getSize | () | method |
| getStyle | () | method |
| init | () | method |
public function init(data:*, maxSize:Size, autoSizeType:String, style:Object = null):voidInitalizes the panel options.
Parametersdata:* — Panel data.
|
|
maxSize:Size — Maximum panel size.
|
|
autoSizeType:String — Automatic size type.
|
|
style:Object (default = null) — Additional style object.
|
| move | () | method |
public function move(x:Number, y:Number):voidMoves panel to the specified point.
Parametersx:Number — Target x coordinate.
|
|
y:Number — Target y coordinate.
|
| reset | () | method |
public function reset():voidRefreshes the panel.
| resize | () | method |
public function resize():voidInvoked when the size of the panel should be updated.
| setData | () | method |
public function setData(value:*):voidSets new panel data.
Parametersvalue:* |
| setFinalSize | () | method |
public function setFinalSize(size:Size):voidInvoked by InfoWindow to inform the Panel about the final available size for the panel. You can align the content of your panel if it is smaller than this final size.
Parameterssize:Size — Final available dimensions of the panel.
|
| setSize | () | method |
public function setSize(size:Size, maxSize:Size = null):voidInvoked by InfoWindow to inform the Panel about the desired size. Optionally you can redefine max size in the same call.
Parameterssize:Size — Desired dimensions of the panel.
|
|
maxSize:Size (default = null) — Maximum dimensions of the panel.
|
| setStyle | () | method |
public function setStyle(style:Object):voidSets the style of the panel. It can be a Style type, or an object.
Parametersstyle:Object — Object that contains some or all of the style properties.
|