1 18 19 package org.apache.strutsel.taglib.html; 20 21 import org.apache.struts.taglib.html.ResetTag; 22 import javax.servlet.jsp.JspException ; 23 import org.apache.strutsel.taglib.utils.EvalHelper; 24 25 36 public class ELResetTag extends ResetTag { 37 38 42 private String accessKeyExpr; 43 47 private String altExpr; 48 52 private String altKeyExpr; 53 57 private String bundleExpr; 58 62 private String disabledExpr; 63 67 private String onblurExpr; 68 72 private String onchangeExpr; 73 77 private String onclickExpr; 78 82 private String ondblclickExpr; 83 87 private String onfocusExpr; 88 92 private String onkeydownExpr; 93 97 private String onkeypressExpr; 98 102 private String onkeyupExpr; 103 107 private String onmousedownExpr; 108 112 private String onmousemoveExpr; 113 117 private String onmouseoutExpr; 118 122 private String onmouseoverExpr; 123 127 private String onmouseupExpr; 128 132 private String propertyExpr; 133 137 private String styleExpr; 138 142 private String styleClassExpr; 143 147 private String styleIdExpr; 148 152 private String tabindexExpr; 153 157 private String titleExpr; 158 162 private String titleKeyExpr; 163 167 private String valueExpr; 168 169 173 public String getAccesskeyExpr() { return (accessKeyExpr); } 174 178 public String getAltExpr() { return (altExpr); } 179 183 public String getAltKeyExpr() { return (altKeyExpr); } 184 188 public String getBundleExpr() { return (bundleExpr); } 189 193 public String getDisabledExpr() { return (disabledExpr); } 194 198 public String getOnblurExpr() { return (onblurExpr); } 199 203 public String getOnchangeExpr() { return (onchangeExpr); } 204 208 public String getOnclickExpr() { return (onclickExpr); } 209 213 public String getOndblclickExpr() { return (ondblclickExpr); } 214 218 public String getOnfocusExpr() { return (onfocusExpr); } 219 223 public String getOnkeydownExpr() { return (onkeydownExpr); } 224 228 public String getOnkeypressExpr() { return (onkeypressExpr); } 229 233 public String getOnkeyupExpr() { return (onkeyupExpr); } 234 238 public String getOnmousedownExpr() { return (onmousedownExpr); } 239 243 public String getOnmousemoveExpr() { return (onmousemoveExpr); } 244 248 public String getOnmouseoutExpr() { return (onmouseoutExpr); } 249 253 public String getOnmouseoverExpr() { return (onmouseoverExpr); } 254 258 public String getOnmouseupExpr() { return (onmouseupExpr); } 259 263 public String getPropertyExpr() { return (propertyExpr); } 264 268 public String getStyleExpr() { return (styleExpr); } 269 273 public String getStyleClassExpr() { return (styleClassExpr); } 274 278 public String getStyleIdExpr() { return (styleIdExpr); } 279 283 public String getTabindexExpr() { return (tabindexExpr); } 284 288 public String getTitleExpr() { return (titleExpr); } 289 293 public String getTitleKeyExpr() { return (titleKeyExpr); } 294 298 public String getValueExpr() { return (valueExpr); } 299 300 304 public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } 305 309 public void setAltExpr(String altExpr) { this.altExpr = altExpr; } 310 314 public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } 315 319 public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } 320 324 public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } 325 329 public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } 330 334 public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } 335 339 public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } 340 344 public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } 345 349 public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } 350 354 public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } 355 359 public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } 360 364 public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } 365 369 public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } 370 374 public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } 375 379 public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } 380 384 public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } 385 389 public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } 390 394 public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } 395 399 public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } 400 404 public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } 405 409 public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } 410 414 public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } 415 419 public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } 420 424 public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } 425 429 public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } 430 431 434 public void release() 435 { 436 super.release(); 437 setAccesskeyExpr(null); 438 setAltExpr(null); 439 setAltKeyExpr(null); 440 setBundleExpr(null); 441 setDisabledExpr(null); 442 setOnblurExpr(null); 443 setOnchangeExpr(null); 444 setOnclickExpr(null); 445 setOndblclickExpr(null); 446 setOnfocusExpr(null); 447 setOnkeydownExpr(null); 448 setOnkeypressExpr(null); 449 setOnkeyupExpr(null); 450 setOnmousedownExpr(null); 451 setOnmousemoveExpr(null); 452 setOnmouseoutExpr(null); 453 setOnmouseoverExpr(null); 454 setOnmouseupExpr(null); 455 setPropertyExpr(null); 456 setStyleExpr(null); 457 setStyleClassExpr(null); 458 setStyleIdExpr(null); 459 setTabindexExpr(null); 460 setTitleExpr(null); 461 setTitleKeyExpr(null); 462 setValueExpr(null); 463 } 464 465 470 public int doStartTag() throws JspException { 471 evaluateExpressions(); 472 return(super.doStartTag()); 473 } 474 475 481 private void evaluateExpressions() throws JspException { 482 String string = null; 483 Boolean bool = null; 484 485 if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), 486 this, pageContext)) != null) 487 setAccesskey(string); 488 489 if ((string = EvalHelper.evalString("alt", getAltExpr(), 490 this, pageContext)) != null) 491 setAlt(string); 492 493 if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), 494 this, pageContext)) != null) 495 setAltKey(string); 496 497 if ((string = EvalHelper.evalString("bundle", getBundleExpr(), 498 this, pageContext)) != null) 499 setBundle(string); 500 501 if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), 502 this, pageContext)) != null) 503 setDisabled(bool.booleanValue()); 504 505 if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), 506 this, pageContext)) != null) 507 setOnblur(string); 508 509 if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), 510 this, pageContext)) != null) 511 setOnchange(string); 512 513 if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), 514 this, pageContext)) != null) 515 setOnclick(string); 516 517 if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), 518 this, pageContext)) != null) 519 setOndblclick(string); 520 521 if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), 522 this, pageContext)) != null) 523 setOnfocus(string); 524 525 if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), 526 this, pageContext)) != null) 527 setOnkeydown(string); 528 529 if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), 530 this, pageContext)) != null) 531 setOnkeypress(string); 532 533 if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), 534 this, pageContext)) != null) 535 setOnkeyup(string); 536 537 if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), 538 this, pageContext)) != null) 539 setOnmousedown(string); 540 541 if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), 542 this, pageContext)) != null) 543 setOnmousemove(string); 544 545 if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), 546 this, pageContext)) != null) 547 setOnmouseout(string); 548 549 if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), 550 this, pageContext)) != null) 551 setOnmouseover(string); 552 553 if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), 554 this, pageContext)) != null) 555 setOnmouseup(string); 556 557 if ((string = EvalHelper.evalString("property", getPropertyExpr(), 558 this, pageContext)) != null) 559 setProperty(string); 560 561 if ((string = EvalHelper.evalString("style", getStyleExpr(), 562 this, pageContext)) != null) 563 setStyle(string); 564 565 if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), 566 this, pageContext)) != null) 567 setStyleClass(string); 568 569 if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), 570 this, pageContext)) != null) 571 setStyleId(string); 572 573 if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), 574 this, pageContext)) != null) 575 setTabindex(string); 576 577 if ((string = EvalHelper.evalString("title", getTitleExpr(), 578 this, pageContext)) != null) 579 setTitle(string); 580 581 if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), 582 this, pageContext)) != null) 583 setTitleKey(string); 584 585 if ((string = EvalHelper.evalString("value", getValueExpr(), 586 this, pageContext)) != null) 587 setValue(string); 588 } 589 } 590 | Popular Tags |