1 package com.lamatek.tags.google; 2 3 import javax.servlet.jsp.tagext.Tag ; 4 import javax.servlet.jsp.tagext.TagSupport ; 5 6 7 public class GoogleMapBlowupTag extends TagSupport { 8 9 boolean display = false; 10 String maptype = "map"; 11 int zoom = 1; 12 15 public int doStartTag() { 16 return SKIP_BODY; 17 } 18 21 public int doEndTag() { 22 Tag tag = this; 23 while (tag.getParent() != null) { 24 if (tag.getParent() instanceof GoogleMapMarkerTag) { 25 ((GoogleMapMarkerTag) tag.getParent()).setBlowup(this); 26 return EVAL_PAGE; 27 } 28 tag = tag.getParent(); 29 } 30 return EVAL_PAGE; 31 } 32 38 public String getMaptype() { 39 return maptype; 40 } 41 47 public void setMaptype(String maptype) { 48 this.maptype = maptype; 49 } 50 55 public int getZoom() { 56 return zoom; 57 } 58 63 public void setZoom(int zoom) { 64 this.zoom = zoom; 65 } 66 73 public void setDisplay(boolean display) { 74 this.display = display; 75 } 76 81 public boolean isDisplay() { 82 return display; 83 } 84 } 85 | Popular Tags |