Packagecom.afcomponents.umap.interfaces
Interfacepublic interface IPanel extends flash.events.IEventDispatcher
ImplementorsAssetPanel, ImagePanel, Panel, TextPanel

IPanel defines a special object which is used for displayng the InfoWindow's content. If you want to create a custom IPanel implementor consider extending the Panel abstract class.

See also

com.afcomponents.umap.display.infowindow.Panel
com.afcomponents.umap.display.InfoWindow
com.afcomponents.umap.styles.InfoWindowStyle


Public Properties
 PropertyDefined by
  asDisplayObject : DisplayObject
[read-only] Returns a reference to the Panel as a DisplayObject.
IPanel
Public Methods
 MethodDefined by
  
close():void
Invoked by info window when it has been closed.
IPanel
  
dispose():void
Invoked by Info Window to tell the panel auto size type and maximum size.
IPanel
  
getData():*
Returns panel data.
IPanel
  
Returns actual size of the Panel.
IPanel
  
Returns the style object associated with the panel.
IPanel
  
init(data:*, maxSize:Size, autoSizeType:String, style:Object = null):void
Initalizes the panel options.
IPanel
  
move(x:Number, y:Number):void
Moves panel to the specified point.
IPanel
  
reset():void
Refreshes the panel.
IPanel
  
resize():void
Invoked when the size of the panel should be updated.
IPanel
  
setData(value:*):void
Sets new panel data.
IPanel
  
setFinalSize(size:Size):void
Invoked by InfoWindow to inform the Panel about the final available size for the panel.
IPanel
  
setSize(size:Size, maxSize:Size = null):void
Invoked by InfoWindow to inform the Panel about the desired size.
IPanel
  
setStyle(style:Object):void
Sets the style of the panel.
IPanel
Property detail
asDisplayObjectproperty
asDisplayObject:DisplayObject  [read-only]

Returns a reference to the Panel as a DisplayObject.

Implementation
    public function get asDisplayObject():DisplayObject
Method detail
close()method
public function close():void

Invoked by info window when it has been closed.

dispose()method 
public function dispose():void

Invoked by Info Window to tell the panel auto size type and maximum size.

getData()method 
public function getData():*

Returns panel data.

Returns
*
getSize()method 
public function getSize():Size

Returns actual size of the Panel.

Returns
Size
getStyle()method 
public function getStyle():Style

Returns the style object associated with the panel.

Returns
Style
init()method 
public function init(data:*, maxSize:Size, autoSizeType:String, style:Object = null):void

Initalizes the panel options.

Parameters
data:* — 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):void

Moves panel to the specified point.

Parameters
x:Number — Target x coordinate.
 
y:Number — Target y coordinate.
reset()method 
public function reset():void

Refreshes the panel.

resize()method 
public function resize():void

Invoked when the size of the panel should be updated.

setData()method 
public function setData(value:*):void

Sets new panel data.

Parameters
value:*
setFinalSize()method 
public function setFinalSize(size:Size):void

Invoked 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.

Parameters
size:Size — Final available dimensions of the panel.
setSize()method 
public function setSize(size:Size, maxSize:Size = null):void

Invoked by InfoWindow to inform the Panel about the desired size. Optionally you can redefine max size in the same call.

Parameters
size:Size — Desired dimensions of the panel.
 
maxSize:Size (default = null) — Maximum dimensions of the panel.
setStyle()method 
public function setStyle(style:Object):void

Sets the style of the panel. It can be a Style type, or an object.

Parameters
style:Object — Object that contains some or all of the style properties.