1 18 19 package org.apache.strutsel.taglib.html; 20 21 import org.apache.struts.taglib.html.MultiboxTag; 22 import javax.servlet.jsp.JspException ; 23 import org.apache.strutsel.taglib.utils.EvalHelper; 24 25 40 public class ELMultiboxTag extends MultiboxTag { 41 42 46 private String accessKeyExpr; 47 51 private String altExpr; 52 56 private String altKeyExpr; 57 61 private String bundleExpr; 62 66 private String disabledExpr; 67 71 private String errorKeyExpr; 72 76 private String errorStyleExpr; 77 81 private String errorStyleClassExpr; 82 86 private String errorStyleIdExpr; 87 91 private String nameExpr; 92 96 private String onblurExpr; 97 101 private String onchangeExpr; 102 106 private String onclickExpr; 107 111 private String ondblclickExpr; 112 116 private String onfocusExpr; 117 121 private String onkeydownExpr; 122 126 private String onkeypressExpr; 127 131 private String onkeyupExpr; 132 136 private String onmousedownExpr; 137 141 private String onmousemoveExpr; 142 146 private String onmouseoutExpr; 147 151 private String onmouseoverExpr; 152 156 private String onmouseupExpr; 157 161 private String propertyExpr; 162 166 private String styleExpr; 167 171 private String styleClassExpr; 172 176 private String styleIdExpr; 177 181 private String tabindexExpr; 182 186 private String titleExpr; 187 191 private String titleKeyExpr; 192 196 private String valueExpr; 197 198 202 public String getAccesskeyExpr() { return (accessKeyExpr); } 203 207 public String getAltExpr() { return (altExpr); } 208 212 public String getAltKeyExpr() { return (altKeyExpr); } 213 217 public String getBundleExpr() { return (bundleExpr); } 218 222 public String getDisabledExpr() { return (disabledExpr); } 223 227 public String getErrorKeyExpr() { return (errorKeyExpr); } 228 232 public String getErrorStyleExpr() { return (errorStyleExpr); } 233 237 public String getErrorStyleClassExpr() { return (errorStyleClassExpr); } 238 242 public String getErrorStyleIdExpr() { return (errorStyleIdExpr); } 243 247 public String getNameExpr() { return (nameExpr); } 248 252 public String getOnblurExpr() { return (onblurExpr); } 253 257 public String getOnchangeExpr() { return (onchangeExpr); } 258 262 public String getOnclickExpr() { return (onclickExpr); } 263 267 public String getOndblclickExpr() { return (ondblclickExpr); } 268 272 public String getOnfocusExpr() { return (onfocusExpr); } 273 277 public String getOnkeydownExpr() { return (onkeydownExpr); } 278 282 public String getOnkeypressExpr() { return (onkeypressExpr); } 283 287 public String getOnkeyupExpr() { return (onkeyupExpr); } 288 292 public String getOnmousedownExpr() { return (onmousedownExpr); } 293 297 public String getOnmousemoveExpr() { return (onmousemoveExpr); } 298 302 public String getOnmouseoutExpr() { return (onmouseoutExpr); } 303 307 public String getOnmouseoverExpr() { return (onmouseoverExpr); } 308 312 public String getOnmouseupExpr() { return (onmouseupExpr); } 313 317 public String getPropertyExpr() { return (propertyExpr); } 318 322 public String getStyleExpr() { return (styleExpr); } 323 327 public String getStyleClassExpr() { return (styleClassExpr); } 328 332 public String getStyleIdExpr() { return (styleIdExpr); } 333 337 public String getTabindexExpr() { return (tabindexExpr); } 338 342 public String getTitleExpr() { return (titleExpr); } 343 347 public String getTitleKeyExpr() { return (titleKeyExpr); } 348 352 public String getValueExpr() { return (valueExpr); } 353 354 358 public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } 359 363 public void setAltExpr(String altExpr) { this.altExpr = altExpr; } 364 368 public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } 369 373 public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } 374 378 public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } 379 383 public void setErrorKeyExpr(String errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; } 384 388 public void setErrorStyleExpr(String errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; } 389 393 public void setErrorStyleClassExpr(String errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; } 394 398 public void setErrorStyleIdExpr(String errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; } 399 403 public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } 404 408 public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } 409 413 public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } 414 418 public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } 419 423 public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } 424 428 public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } 429 433 public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } 434 438 public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } 439 443 public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } 444 448 public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } 449 453 public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } 454 458 public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } 459 463 public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } 464 468 public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } 469 473 public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } 474 478 public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } 479 483 public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } 484 488 public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } 489 493 public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } 494 498 public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } 499 503 public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } 504 508 public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } 509 510 513 public void release() 514 { 515 super.release(); 516 setAccesskeyExpr(null); 517 setAltExpr(null); 518 setAltKeyExpr(null); 519 setBundleExpr(null); 520 setDisabledExpr(null); 521 setErrorKey(null); 522 setErrorStyleExpr(null); 523 setErrorStyleClassExpr(null); 524 setErrorStyleIdExpr(null); 525 setNameExpr(null); 526 setOnblurExpr(null); 527 setOnchangeExpr(null); 528 setOnclickExpr(null); 529 setOndblclickExpr(null); 530 setOnfocusExpr(null); 531 setOnkeydownExpr(null); 532 setOnkeypressExpr(null); 533 setOnkeyupExpr(null); 534 setOnmousedownExpr(null); 535 setOnmousemoveExpr(null); 536 setOnmouseoutExpr(null); 537 setOnmouseoverExpr(null); 538 setOnmouseupExpr(null); 539 setPropertyExpr(null); 540 setStyleExpr(null); 541 setStyleClassExpr(null); 542 setStyleIdExpr(null); 543 setTabindexExpr(null); 544 setTitleExpr(null); 545 setTitleKeyExpr(null); 546 setValueExpr(null); 547 } 548 549 554 public int doStartTag() throws JspException { 555 evaluateExpressions(); 556 return(super.doStartTag()); 557 } 558 559 565 private void evaluateExpressions() throws JspException { 566 String string = null; 567 Boolean bool = null; 568 569 if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), 570 this, pageContext)) != null) 571 setAccesskey(string); 572 573 if ((string = EvalHelper.evalString("alt", getAltExpr(), 574 this, pageContext)) != null) 575 setAlt(string); 576 577 if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), 578 this, pageContext)) != null) 579 setAltKey(string); 580 581 if ((string = EvalHelper.evalString("bundle", getBundleExpr(), 582 this, pageContext)) != null) 583 setBundle(string); 584 585 if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), 586 this, pageContext)) != null) 587 setDisabled(bool.booleanValue()); 588 589 if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), 590 this, pageContext)) != null) 591 setErrorKey(string); 592 593 if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), 594 this, pageContext)) != null) 595 setErrorStyle(string); 596 597 if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), 598 this, pageContext)) != null) 599 setErrorStyleClass(string); 600 601 if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), 602 this, pageContext)) != null) 603 setErrorStyleId(string); 604 605 if ((string = EvalHelper.evalString("name", getNameExpr(), 606 this, pageContext)) != null) 607 setName(string); 608 609 if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), 610 this, pageContext)) != null) 611 setOnblur(string); 612 613 if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), 614 this, pageContext)) != null) 615 setOnchange(string); 616 617 if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), 618 this, pageContext)) != null) 619 setOnclick(string); 620 621 if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), 622 this, pageContext)) != null) 623 setOndblclick(string); 624 625 if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), 626 this, pageContext)) != null) 627 setOnfocus(string); 628 629 if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), 630 this, pageContext)) != null) 631 setOnkeydown(string); 632 633 if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), 634 this, pageContext)) != null) 635 setOnkeypress(string); 636 637 if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), 638 this, pageContext)) != null) 639 setOnkeyup(string); 640 641 if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), 642 this, pageContext)) != null) 643 setOnmousedown(string); 644 645 if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), 646 this, pageContext)) != null) 647 setOnmousemove(string); 648 649 if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), 650 this, pageContext)) != null) 651 setOnmouseout(string); 652 653 if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), 654 this, pageContext)) != null) 655 setOnmouseover(string); 656 657 if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), 658 this, pageContext)) != null) 659 setOnmouseup(string); 660 661 if ((string = EvalHelper.evalString("property", getPropertyExpr(), 662 this, pageContext)) != null) 663 setProperty(string); 664 665 if ((string = EvalHelper.evalString("style", getStyleExpr(), 666 this, pageContext)) != null) 667 setStyle(string); 668 669 if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), 670 this, pageContext)) != null) 671 setStyleClass(string); 672 673 if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), 674 this, pageContext)) != null) 675 setStyleId(string); 676 677 if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), 678 this, pageContext)) != null) 679 setTabindex(string); 680 681 if ((string = EvalHelper.evalString("title", getTitleExpr(), 682 this, pageContext)) != null) 683 setTitle(string); 684 685 if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), 686 this, pageContext)) != null) 687 setTitleKey(string); 688 689 if ((string = EvalHelper.evalString("value", getValueExpr(), 690 this, pageContext)) != null) 691 setValue(string); 692 } 693 } 694 | Popular Tags |