1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Ins extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("ins"); 76 } 77 78 81 public Ins() 82 { 83 } 84 85 89 public Ins setCite(String url) 90 { 91 addAttribute("Cite",url); 92 return(this); 93 } 94 95 99 public Ins setDateTime(String datetime) 100 { 101 addAttribute("datetime",datetime); 102 return(this); 103 } 104 105 110 public Ins addElement(String hashcode,Element element) 111 { 112 addElementToRegistry(hashcode,element); 113 return(this); 114 } 115 116 121 public Ins addElement(String hashcode,String element) 122 { 123 addElementToRegistry(hashcode,element); 124 return(this); 125 } 126 127 131 public Ins addElement(Element element) 132 { 133 addElementToRegistry(element); 134 return(this); 135 } 136 137 141 public Ins addElement(String element) 142 { 143 addElementToRegistry(element); 144 return(this); 145 } 146 150 public Ins removeElement(String hashcode) 151 { 152 removeElementFromRegistry(hashcode); 153 return(this); 154 } 155 156 162 public void setOnClick(String script) 163 { 164 addAttribute ( "onClick", script ); 165 } 166 172 public void setOnDblClick(String script) 173 { 174 addAttribute ( "onDblClick", script ); 175 } 176 182 public void setOnMouseDown(String script) 183 { 184 addAttribute ( "onMouseDown", script ); 185 } 186 192 public void setOnMouseUp(String script) 193 { 194 addAttribute ( "onMouseUp", script ); 195 } 196 202 public void setOnMouseOver(String script) 203 { 204 addAttribute ( "onMouseOver", script ); 205 } 206 212 public void setOnMouseMove(String script) 213 { 214 addAttribute ( "onMouseMove", script ); 215 } 216 222 public void setOnMouseOut(String script) 223 { 224 addAttribute ( "onMouseOut", script ); 225 } 226 227 233 public void setOnKeyPress(String script) 234 { 235 addAttribute ( "onKeyPress", script ); 236 } 237 238 244 public void setOnKeyDown(String script) 245 { 246 addAttribute ( "onKeyDown", script ); 247 } 248 249 255 public void setOnKeyUp(String script) 256 { 257 addAttribute ( "onKeyUp", script ); 258 } 259 } 260 | Popular Tags |