1 18 19 package org.apache.strutsel.taglib.html; 20 21 import org.apache.struts.taglib.html.HiddenTag; 22 import javax.servlet.jsp.JspException ; 23 import org.apache.strutsel.taglib.utils.EvalHelper; 24 25 36 public class ELHiddenTag extends HiddenTag { 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 indexedExpr; 68 72 private String nameExpr; 73 77 private String onblurExpr; 78 82 private String onchangeExpr; 83 87 private String onclickExpr; 88 92 private String ondblclickExpr; 93 97 private String onfocusExpr; 98 102 private String onkeydownExpr; 103 107 private String onkeypressExpr; 108 112 private String onkeyupExpr; 113 117 private String onmousedownExpr; 118 122 private String onmousemoveExpr; 123 127 private String onmouseoutExpr; 128 132 private String onmouseoverExpr; 133 137 private String onmouseupExpr; 138 142 private String propertyExpr; 143 147 private String styleExpr; 148 152 private String styleClassExpr; 153 157 private String styleIdExpr; 158 162 private String titleExpr; 163 167 private String titleKeyExpr; 168 172 private String valueExpr; 173 177 private String writeExpr; 178 179 183 public String getAccesskeyExpr() { return (accesskeyExpr); } 184 188 public String getAltExpr() { return (altExpr); } 189 193 public String getAltKeyExpr() { return (altKeyExpr); } 194 198 public String getBundleExpr() { return (bundleExpr); } 199 203 public String getDisabledExpr() { return (disabledExpr); } 204 208 public String getIndexedExpr() { return (indexedExpr); } 209 213 public String getNameExpr() { return (nameExpr); } 214 218 public String getOnblurExpr() { return (onblurExpr); } 219 223 public String getOnchangeExpr() { return (onchangeExpr); } 224 228 public String getOnclickExpr() { return (onclickExpr); } 229 233 public String getOndblclickExpr() { return (ondblclickExpr); } 234 238 public String getOnfocusExpr() { return (onfocusExpr); } 239 243 public String getOnkeydownExpr() { return (onkeydownExpr); } 244 248 public String getOnkeypressExpr() { return (onkeypressExpr); } 249 253 public String getOnkeyupExpr() { return (onkeyupExpr); } 254 258 public String getOnmousedownExpr() { return (onmousedownExpr); } 259 263 public String getOnmousemoveExpr() { return (onmousemoveExpr); } 264 268 public String getOnmouseoutExpr() { return (onmouseoutExpr); } 269 273 public String getOnmouseoverExpr() { return (onmouseoverExpr); } 274 278 public String getOnmouseupExpr() { return (onmouseupExpr); } 279 283 public String getPropertyExpr() { return (propertyExpr); } 284 288 public String getStyleExpr() { return (styleExpr); } 289 293 public String getStyleClassExpr() { return (styleClassExpr); } 294 298 public String getStyleIdExpr() { return (styleIdExpr); } 299 303 public String getTitleExpr() { return (titleExpr); } 304 308 public String getTitleKeyExpr() { return (titleKeyExpr); } 309 313 public String getValueExpr() { return (valueExpr); } 314 318 public String getWriteExpr() { return (writeExpr); } 319 320 324 public void setAccesskeyExpr(String accesskeyExpr) { this.accesskeyExpr = accesskeyExpr; } 325 329 public void setAltExpr(String altExpr) { this.altExpr = altExpr; } 330 334 public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } 335 339 public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } 340 344 public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } 345 349 public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } 350 354 public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } 355 359 public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } 360 364 public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } 365 369 public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } 370 374 public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } 375 379 public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } 380 384 public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } 385 389 public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } 390 394 public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } 395 399 public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } 400 404 public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } 405 409 public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } 410 414 public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } 415 419 public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } 420 424 public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } 425 429 public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } 430 434 public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } 435 439 public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } 440 444 public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } 445 449 public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } 450 454 public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } 455 459 public void setWriteExpr(String writeExpr) { this.writeExpr = writeExpr; } 460 461 464 public void release() 465 { 466 super.release(); 467 setAccesskeyExpr(null); 468 setAltExpr(null); 469 setAltKeyExpr(null); 470 setBundleExpr(null); 471 setDisabledExpr(null); 472 setIndexedExpr(null); 473 setNameExpr(null); 474 setOnblurExpr(null); 475 setOnchangeExpr(null); 476 setOnclickExpr(null); 477 setOndblclickExpr(null); 478 setOnfocusExpr(null); 479 setOnkeydownExpr(null); 480 setOnkeypressExpr(null); 481 setOnkeyupExpr(null); 482 setOnmousedownExpr(null); 483 setOnmousemoveExpr(null); 484 setOnmouseoutExpr(null); 485 setOnmouseoverExpr(null); 486 setOnmouseupExpr(null); 487 setPropertyExpr(null); 488 setStyleExpr(null); 489 setStyleClassExpr(null); 490 setStyleIdExpr(null); 491 setTitleExpr(null); 492 setTitleKeyExpr(null); 493 setValueExpr(null); 494 setWriteExpr(null); 495 } 496 497 502 public int doStartTag() throws JspException { 503 evaluateExpressions(); 504 return (super.doStartTag()); 505 } 506 507 513 private void evaluateExpressions() throws JspException { 514 String string = null; 515 Boolean bool = null; 516 517 if ((string = EvalHelper.evalString("accesskey", getAccesskeyExpr(), 518 this, pageContext)) != null) 519 setAccesskey(string); 520 521 if ((string = EvalHelper.evalString("alt", getAltExpr(), 522 this, pageContext)) != null) 523 setAlt(string); 524 525 if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), 526 this, pageContext)) != null) 527 setAltKey(string); 528 529 if ((string = EvalHelper.evalString("bundle", getBundleExpr(), 530 this, pageContext)) != null) 531 setBundle(string); 532 533 if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), 534 this, pageContext)) != null) 535 setDisabled(bool.booleanValue()); 536 537 if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), 538 this, pageContext)) != null) 539 setIndexed(bool.booleanValue()); 540 541 if ((string = EvalHelper.evalString("name", getNameExpr(), 542 this, pageContext)) != null) 543 setName(string); 544 545 if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), 546 this, pageContext)) != null) 547 setOnblur(string); 548 549 if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), 550 this, pageContext)) != null) 551 setOnchange(string); 552 553 if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), 554 this, pageContext)) != null) 555 setOnclick(string); 556 557 if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), 558 this, pageContext)) != null) 559 setOndblclick(string); 560 561 if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), 562 this, pageContext)) != null) 563 setOnfocus(string); 564 565 if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), 566 this, pageContext)) != null) 567 setOnkeydown(string); 568 569 if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), 570 this, pageContext)) != null) 571 setOnkeypress(string); 572 573 if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), 574 this, pageContext)) != null) 575 setOnkeyup(string); 576 577 if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), 578 this, pageContext)) != null) 579 setOnmousedown(string); 580 581 if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), 582 this, pageContext)) != null) 583 setOnmousemove(string); 584 585 if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), 586 this, pageContext)) != null) 587 setOnmouseout(string); 588 589 if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), 590 this, pageContext)) != null) 591 setOnmouseover(string); 592 593 if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), 594 this, pageContext)) != null) 595 setOnmouseup(string); 596 597 if ((string = EvalHelper.evalString("property", getPropertyExpr(), 598 this, pageContext)) != null) 599 setProperty(string); 600 601 if ((string = EvalHelper.evalString("style", getStyleExpr(), 602 this, pageContext)) != null) 603 setStyle(string); 604 605 if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), 606 this, pageContext)) != null) 607 setStyleClass(string); 608 609 if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), 610 this, pageContext)) != null) 611 setStyleId(string); 612 613 if ((string = EvalHelper.evalString("title", getTitleExpr(), 614 this, pageContext)) != null) 615 setTitle(string); 616 617 if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), 618 this, pageContext)) != null) 619 setTitleKey(string); 620 621 if ((string = EvalHelper.evalString("value", getValueExpr(), 622 this, pageContext)) != null) 623 setValue(string); 624 625 if ((bool = EvalHelper.evalBoolean("write", getWriteExpr(), 626 this, pageContext)) != null) 627 setWrite(bool.booleanValue()); 628 } 629 } 630 | Popular Tags |