1 package com.lamatek.tags.google; 2 3 import javax.servlet.jsp.tagext.Tag ; 4 import javax.servlet.jsp.tagext.TagSupport ; 5 6 15 public class GoogleMapMapTypeTag extends TagSupport { 16 17 String baseType = "map"; 18 String url = null; 19 String lowResUrl = null; 20 String overlayUrl = null; 21 String name = null; 22 String id = null; 23 String copyright = null; 24 boolean showOnStartup = true; 25 int maxZoom = -1; 26 int minZoom = -1; 27 String upperLeftBound = null; 28 String lowerRightBound = null; 29 boolean png = false; 30 float opacity = 1.0f; 31 34 public int doStartTag() { 35 Tag tag = this; 36 while (tag.getParent() != null) { 37 if (tag.getParent() instanceof GoogleMapTag) { 38 ((GoogleMapTag) tag.getParent()).addMapType(this); 39 return SKIP_BODY; 40 } 41 tag = tag.getParent(); 42 } 43 return SKIP_BODY; 44 } 45 51 public String getLowerRightBound() { 52 return lowerRightBound; 53 } 54 60 public void setLowerRightBound(String point) { 61 this.lowerRightBound = point; 62 } 63 69 public String getUpperLeftBound() { 70 return upperLeftBound; 71 } 72 78 public void setUpperLeftBound(String upperLeftBound) { 79 this.upperLeftBound = upperLeftBound; 80 } 81 86 public String getBaseType() { 87 return baseType; 88 } 89 95 public void setBaseType(String baseType) { 96 this.baseType = baseType; 97 } 98 103 public String getId() { 104 return id; 105 } 106 111 public void setId(String id) { 112 this.id = id; 113 } 114 120 public String getName() { 121 return name; 122 } 123 128 public void setName(String name) { 129 this.name = name; 130 } 131 137 public String getUrl() { 138 return url; 139 } 140 146 public void setUrl(String url) { 147 this.url = url; 148 } 149 155 public boolean isShowOnStartup() { 156 return showOnStartup; 157 } 158 164 public void setShowOnStartup(boolean showOnStartup) { 165 this.showOnStartup = showOnStartup; 166 } 167 173 public String getOverlayUrl() { 174 return overlayUrl; 175 } 176 182 public void setOverlayUrl(String overlayUrl) { 183 this.overlayUrl = overlayUrl; 184 } 185 191 public String getLowResUrl() { 192 return lowResUrl; 193 } 194 200 public void setLowResUrl(String lowResUrl) { 201 this.lowResUrl = lowResUrl; 202 } 203 208 public String getCopyright() { 209 return copyright; 210 } 211 216 public void setCopyright(String copyright) { 217 this.copyright = copyright; 218 } 219 224 public int getMaxZoom() { 225 return maxZoom; 226 } 227 236 public void setMaxZoom(int maxZoom) { 237 this.maxZoom = maxZoom; 238 } 239 244 public int getMinZoom() { 245 return minZoom; 246 } 247 256 public void setMinZoom(int minZoom) { 257 this.minZoom = minZoom; 258 } 259 264 public boolean isPng() { 265 return png; 266 } 267 272 public void setPng(boolean png) { 273 this.png = png; 274 } 275 } 276 | Popular Tags |