1 package com.lamatek.tags.google; 2 3 import java.io.Serializable ; 4 5 import javax.servlet.jsp.tagext.Tag ; 6 import javax.servlet.jsp.tagext.TagSupport ; 7 8 17 public class GoogleMapEventTag extends TagSupport implements Serializable { 18 19 String url = null; 20 String action = null; 21 boolean asynchronous = false; 22 26 public int doStartTag() { 27 Tag tag = this; 28 while (tag.getParent() != null) { 29 if (tag.getParent() instanceof GoogleMapEventListener) { 30 ((GoogleMapEventListener) tag.getParent()).addEvent(this); 31 return SKIP_BODY; 32 } 33 tag = tag.getParent(); 34 } 35 return SKIP_BODY; 36 } 37 42 public String getUrl() { 43 return url; 44 } 45 51 public void setUrl(String url) { 52 this.url = url; 53 } 54 67 public String getAction() { 68 return action; 69 } 70 85 public void setAction(String action) { 86 this.action = action; 87 } 88 103 public boolean isAsynchronous() { 104 return asynchronous; 105 } 106 121 public void setAsynchronous(boolean asynchronous) { 122 this.asynchronous = asynchronous; 123 } 124 } 125 | Popular Tags |