/src/com/google/maps/extras/xmlparsers/kml/ListStyle.as
ActionScript | 42 lines | 30 code | 9 blank | 3 comment | 2 complexity | e42e33550f93c6ab7af9b4209a1dfd8d MD5 | raw file
1/* Added by Cecil M. Reid (cmR) 2 * cecilmreid@gmail.com 3*/ 4 5 6package com.google.maps.extras.xmlparsers.kml 7{ 8 import com.google.maps.extras.xmlparsers.ParsingTools; 9 10 public class ListStyle extends KmlObject 11 { 12 private var _bgColor:int; 13 private var _listItemType:String; 14 private var _itemIcon:ItemIcon; 15 16 public function ListStyle(x:XMLList) 17 { 18 super(x); 19 20 var bgColor:String = ParsingTools.nullCheck(this.x.kml::bgColor); 21 this._bgColor = parseInt("0x" + bgColor); 22 this._listItemType = ParsingTools.nullCheck(this.x.kml::listItemType); 23 if (ParsingTools.nullCheck(this.x.kml::ItemIcon) != null) { 24 this._itemIcon = new ItemIcon(this.x.kml::ItemIcon); 25 } 26 } 27 28 public function get bgColor():int 29 { 30 return this._bgColor; 31 } 32 33 public function get listItemType():String { 34 return this._listItemType; 35 } 36 37 public function get itemIcon():ItemIcon { 38 return this._itemIcon; 39 } 40 41 } 42}