1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class NoFrames extends MultiPartElement implements Printable, MouseEvents, KeyEvents 70 { 71 74 { 75 setElementType("noframes"); 76 } 77 80 public NoFrames() 81 { 82 } 83 84 88 public NoFrames(Element element) 89 { 90 addElement(element); 91 } 92 93 97 public NoFrames(String element) 98 { 99 addElement(element); 100 } 101 102 107 public NoFrames addElement(String hashcode,Element element) 108 { 109 addElementToRegistry(hashcode,element); 110 return(this); 111 } 112 113 118 public NoFrames addElement(String hashcode,String element) 119 { 120 addElementToRegistry(hashcode,element); 121 return(this); 122 } 123 124 128 public NoFrames addElement(Element element) 129 { 130 addElementToRegistry(element); 131 return(this); 132 } 133 134 138 public NoFrames addElement(String element) 139 { 140 addElementToRegistry(element); 141 return(this); 142 } 143 147 public NoFrames removeElement(String hashcode) 148 { 149 removeElementFromRegistry(hashcode); 150 return(this); 151 } 152 153 159 public void setOnClick(String script) 160 { 161 addAttribute ( "onClick", script ); 162 } 163 169 public void setOnDblClick(String script) 170 { 171 addAttribute ( "onDblClick", script ); 172 } 173 179 public void setOnMouseDown(String script) 180 { 181 addAttribute ( "onMouseDown", script ); 182 } 183 189 public void setOnMouseUp(String script) 190 { 191 addAttribute ( "onMouseUp", script ); 192 } 193 199 public void setOnMouseOver(String script) 200 { 201 addAttribute ( "onMouseOver", script ); 202 } 203 209 public void setOnMouseMove(String script) 210 { 211 addAttribute ( "onMouseMove", script ); 212 } 213 219 public void setOnMouseOut(String script) 220 { 221 addAttribute ( "onMouseOut", script ); 222 } 223 224 230 public void setOnKeyPress(String script) 231 { 232 addAttribute ( "onKeyPress", script ); 233 } 234 235 241 public void setOnKeyDown(String script) 242 { 243 addAttribute ( "onKeyDown", script ); 244 } 245 246 252 public void setOnKeyUp(String script) 253 { 254 addAttribute ( "onKeyUp", script ); 255 } 256 } 257 | Popular Tags |