1 package com.lamatek.tags.google; 2 3 import java.io.Serializable ; 4 5 import javax.servlet.jsp.tagext.TagSupport ; 6 7 16 public class GoogleMapDivTag extends TagSupport implements Serializable { 17 18 String id = null; 19 String style = null; 20 String css_class = null; 21 String scope = "page"; 22 23 26 public int doEndTag() { 27 if (id != null) { 28 Object o; 29 if (scope.equalsIgnoreCase("site")) { 30 o = pageContext.getSession().getAttribute(id); 31 } 32 else { 33 o = pageContext.getAttribute(id); 34 } 35 if (o != null) { 36 GoogleMapTag map = (GoogleMapTag) o; 37 map.generateDivTag(this); 38 } 39 } 40 return EVAL_PAGE; 41 } 42 47 public void setId(String id) { 48 this.id = id; 49 } 50 55 public String getCss_class() { 56 return css_class; 57 } 58 63 public void setCss_class(String css_class) { 64 this.css_class = css_class; 65 } 66 71 public String getStyle() { 72 return style; 73 } 74 79 public void setStyle(String style) { 80 this.style = style; 81 } 82 87 public String getId() { 88 return id; 89 } 90 96 public void setScope(String scope) { 97 this.scope = scope; 98 } 99 } 100 | Popular Tags |