| Package | com.afcomponents.umap.display.infowindow |
| Class | public class TextPanel |
| Inheritance | TextPanel Panel flash.display.Sprite |
| Implements | IPanel |
import com.afcomponents.umap.core.UMap;
// create UMap object
var map:UMap = new UMap();
map.setSize(550, 400);
addChild(map);
// init info window param object
var param:Object = {
content: "Visit <a href=\"http://afcomponents.com\">afcomponents.com</a>!"
}
// define custom style
var style:Object = {
contentStyle: {
html: true
},
close: false
}
// open info window with a specified content & style
map.openInfoWindow(param, style);
ContentType constants instead of direct class importing.
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | _autoSize : String
Auto size type.
| Panel | |
![]() | _data : *
Panel data.
| Panel | |
![]() | _maxSize : Size
Maximum possible size.
| Panel | |
| _realSize : Size
Size that will be returned by getSize() method
| TextPanel | ||
| _scroll : *
Reference to the scroll bar created in the panel.
| TextPanel | ||
![]() | _size : Size
Desired size.
| Panel | |
| _style : TextStyle
Text style.
| TextPanel | ||
| _txt : TextField
Text field.
| TextPanel | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
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 | |
|
enableScrollBar(scrollBarClass:Class):void
Enables scroll bar for this text panel.
| TextPanel | ||
![]() |
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 | |
| _realSize | property |
protected var _realSize:SizeSize that will be returned by getSize() method
| _scroll | property |
protected var _scroll:*Reference to the scroll bar created in the panel.
| _style | property |
protected var _style:TextStyleText style.
| _txt | property |
protected var _txt:TextFieldText field.
| enableScrollBar | () | method |
public function enableScrollBar(scrollBarClass:Class):void
Enables scroll bar for this text panel.
Specify UIScrollBar class that should be used.
If you want to disable scroll, pass null value.
scrollBarClass:Class — UIScrollBar class or
|