/src/com/google/maps/extras/xmlparsers/kml/ListStyle.as

http://gmaps-utility-library-flash.googlecode.com/ · 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. package com.google.maps.extras.xmlparsers.kml
  5. {
  6. import com.google.maps.extras.xmlparsers.ParsingTools;
  7. public class ListStyle extends KmlObject
  8. {
  9. private var _bgColor:int;
  10. private var _listItemType:String;
  11. private var _itemIcon:ItemIcon;
  12. public function ListStyle(x:XMLList)
  13. {
  14. super(x);
  15. var bgColor:String = ParsingTools.nullCheck(this.x.kml::bgColor);
  16. this._bgColor = parseInt("0x" + bgColor);
  17. this._listItemType = ParsingTools.nullCheck(this.x.kml::listItemType);
  18. if (ParsingTools.nullCheck(this.x.kml::ItemIcon) != null) {
  19. this._itemIcon = new ItemIcon(this.x.kml::ItemIcon);
  20. }
  21. }
  22. public function get bgColor():int
  23. {
  24. return this._bgColor;
  25. }
  26. public function get listItemType():String {
  27. return this._listItemType;
  28. }
  29. public function get itemIcon():ItemIcon {
  30. return this._itemIcon;
  31. }
  32. }
  33. }