1 18 19 package org.apache.strutsel.taglib.html; 20 21 import org.apache.struts.taglib.html.TextareaTag; 22 import javax.servlet.jsp.JspException ; 23 import org.apache.strutsel.taglib.utils.EvalHelper; 24 25 37 public class ELTextareaTag extends TextareaTag { 38 39 43 private String accessKeyExpr; 44 48 private String altExpr; 49 53 private String altKeyExpr; 54 58 private String bundleExpr; 59 63 private String colsExpr; 64 68 private String disabledExpr; 69 73 private String errorKeyExpr; 74 78 private String errorStyleExpr; 79 83 private String errorStyleClassExpr; 84 88 private String errorStyleIdExpr; 89 93 private String indexedExpr; 94 98 private String nameExpr; 99 103 private String onblurExpr; 104 108 private String onchangeExpr; 109 113 private String onclickExpr; 114 118 private String ondblclickExpr; 119 123 private String onfocusExpr; 124 128 private String onkeydownExpr; 129 133 private String onkeypressExpr; 134 138 private String onkeyupExpr; 139 143 private String onmousedownExpr; 144 148 private String onmousemoveExpr; 149 153 private String onmouseoutExpr; 154 158 private String onmouseoverExpr; 159 163 private String onmouseupExpr; 164 168 private String propertyExpr; 169 173 private String readonlyExpr; 174 178 private String rowsExpr; 179 183 private String styleExpr; 184 188 private String sizeExpr; 189 193 private String styleClassExpr; 194 198 private String styleIdExpr; 199 203 private String tabindexExpr; 204 208 private String titleExpr; 209 213 private String titleKeyExpr; 214 218 private String valueExpr; 219 220 224 public String getAccesskeyExpr() { return (accessKeyExpr); } 225 229 public String getAltExpr() { return (altExpr); } 230 234 public String getAltKeyExpr() { return (altKeyExpr); } 235 239 public String getBundleExpr() { return (bundleExpr); } 240 244 public String getColsExpr() { return (colsExpr); } 245 249 public String getDisabledExpr() { return (disabledExpr); } 250 254 public String getErrorKeyExpr() { return (errorKeyExpr); } 255 259 public String getErrorStyleExpr() { return (errorStyleExpr); } 260 264 public String getErrorStyleClassExpr() { return (errorStyleClassExpr); } 265 269 public String getErrorStyleIdExpr() { return (errorStyleIdExpr); } 270 274 public String getIndexedExpr() { return (indexedExpr); } 275 279 public String getNameExpr() { return (nameExpr); } 280 284 public String getOnblurExpr() { return (onblurExpr); } 285 289 public String getOnchangeExpr() { return (onchangeExpr); } 290 294 public String getOnclickExpr() { return (onclickExpr); } 295 299 public String getOndblclickExpr() { return (ondblclickExpr); } 300 304 public String getOnfocusExpr() { return (onfocusExpr); } 305 309 public String getOnkeydownExpr() { return (onkeydownExpr); } 310 314 public String getOnkeypressExpr() { return (onkeypressExpr); } 315 319 public String getOnkeyupExpr() { return (onkeyupExpr); } 320 324 public String getOnmousedownExpr() { return (onmousedownExpr); } 325 329 public String getOnmousemoveExpr() { return (onmousemoveExpr); } 330 334 public String getOnmouseoutExpr() { return (onmouseoutExpr); } 335 339 public String getOnmouseoverExpr() { return (onmouseoverExpr); } 340 344 public String getOnmouseupExpr() { return (onmouseupExpr); } 345 349 public String getPropertyExpr() { return (propertyExpr); } 350 354 public String getReadonlyExpr() { return (readonlyExpr); } 355 359 public String getRowsExpr() { return (rowsExpr); } 360 364 public String getStyleExpr() { return (styleExpr); } 365 369 public String getSizeExpr() { return (sizeExpr); } 370 374 public String getStyleClassExpr() { return (styleClassExpr); } 375 379 public String getStyleIdExpr() { return (styleIdExpr); } 380 384 public String getTabindexExpr() { return (tabindexExpr); } 385 389 public String getTitleExpr() { return (titleExpr); } 390 394 public String getTitleKeyExpr() { return (titleKeyExpr); } 395 399 public String getValueExpr() { return (valueExpr); } 400 401 405 public void setAccesskeyExpr(String accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; } 406 410 public void setAltExpr(String altExpr) { this.altExpr = altExpr; } 411 415 public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; } 416 420 public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } 421 425 public void setColsExpr(String colsExpr) { this.colsExpr = colsExpr; } 426 430 public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; } 431 435 public void setErrorKeyExpr(String errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; } 436 440 public void setErrorStyleExpr(String errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; } 441 445 public void setErrorStyleClassExpr(String errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; } 446 450 public void setErrorStyleIdExpr(String errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; } 451 455 public void setIndexedExpr(String indexedExpr) { this.indexedExpr = indexedExpr; } 456 460 public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } 461 465 public void setOnblurExpr(String onblurExpr) { this.onblurExpr = onblurExpr; } 466 470 public void setOnchangeExpr(String onchangeExpr) { this.onchangeExpr = onchangeExpr; } 471 475 public void setOnclickExpr(String onclickExpr) { this.onclickExpr = onclickExpr; } 476 480 public void setOndblclickExpr(String ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; } 481 485 public void setOnfocusExpr(String onfocusExpr) { this.onfocusExpr = onfocusExpr; } 486 490 public void setOnkeydownExpr(String onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; } 491 495 public void setOnkeypressExpr(String onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; } 496 500 public void setOnkeyupExpr(String onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; } 501 505 public void setOnmousedownExpr(String onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; } 506 510 public void setOnmousemoveExpr(String onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; } 511 515 public void setOnmouseoutExpr(String onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; } 516 520 public void setOnmouseoverExpr(String onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; } 521 525 public void setOnmouseupExpr(String onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; } 526 530 public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } 531 535 public void setReadonlyExpr(String readonlyExpr) { this.readonlyExpr = readonlyExpr; } 536 540 public void setRowsExpr(String rowsExpr) { this.rowsExpr = rowsExpr; } 541 545 public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } 546 550 public void setSizeExpr(String sizeExpr) { this.sizeExpr = sizeExpr; } 551 555 public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } 556 560 public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } 561 565 public void setTabindexExpr(String tabindexExpr) { this.tabindexExpr = tabindexExpr; } 566 570 public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } 571 575 public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } 576 580 public void setValueExpr(String valueExpr) { this.valueExpr = valueExpr; } 581 582 585 public void release() 586 { 587 super.release(); 588 setAccesskeyExpr(null); 589 setAltExpr(null); 590 setAltKeyExpr(null); 591 setBundleExpr(null); 592 setColsExpr(null); 593 setDisabledExpr(null); 594 setErrorKey(null); 595 setErrorStyleExpr(null); 596 setErrorStyleClassExpr(null); 597 setErrorStyleIdExpr(null); 598 setIndexedExpr(null); 599 setNameExpr(null); 600 setOnblurExpr(null); 601 setOnchangeExpr(null); 602 setOnclickExpr(null); 603 setOndblclickExpr(null); 604 setOnfocusExpr(null); 605 setOnkeydownExpr(null); 606 setOnkeypressExpr(null); 607 setOnkeyupExpr(null); 608 setOnmousedownExpr(null); 609 setOnmousemoveExpr(null); 610 setOnmouseoutExpr(null); 611 setOnmouseoverExpr(null); 612 setOnmouseupExpr(null); 613 setPropertyExpr(null); 614 setReadonlyExpr(null); 615 setRowsExpr(null); 616 setStyleExpr(null); 617 setSizeExpr(null); 618 setStyleClassExpr(null); 619 setStyleIdExpr(null); 620 setTabindexExpr(null); 621 setTitleExpr(null); 622 setTitleKeyExpr(null); 623 setValueExpr(null); 624 } 625 626 631 public int doStartTag() throws JspException { 632 evaluateExpressions(); 633 return(super.doStartTag()); 634 } 635 636 642 private void evaluateExpressions() throws JspException { 643 String string = null; 644 Boolean bool = null; 645 646 if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(), 647 this, pageContext)) != null) 648 setAccesskey(string); 649 650 if ((string = EvalHelper.evalString("alt", getAltExpr(), 651 this, pageContext)) != null) 652 setAlt(string); 653 654 if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(), 655 this, pageContext)) != null) 656 setAltKey(string); 657 658 if ((string = EvalHelper.evalString("bundle", getBundleExpr(), 659 this, pageContext)) != null) 660 setBundle(string); 661 662 if ((string = EvalHelper.evalString("cols", getColsExpr(), 663 this, pageContext)) != null) 664 setCols(string); 665 666 if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), 667 this, pageContext)) != null) 668 setDisabled(bool.booleanValue()); 669 670 if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(), 671 this, pageContext)) != null) 672 setErrorKey(string); 673 674 if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(), 675 this, pageContext)) != null) 676 setErrorStyle(string); 677 678 if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(), 679 this, pageContext)) != null) 680 setErrorStyleClass(string); 681 682 if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(), 683 this, pageContext)) != null) 684 setErrorStyleId(string); 685 686 if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(), 687 this, pageContext)) != null) 688 setIndexed(bool.booleanValue()); 689 690 if ((string = EvalHelper.evalString("name", getNameExpr(), 691 this, pageContext)) != null) 692 setName(string); 693 694 if ((string = EvalHelper.evalString("onblur", getOnblurExpr(), 695 this, pageContext)) != null) 696 setOnblur(string); 697 698 if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(), 699 this, pageContext)) != null) 700 setOnchange(string); 701 702 if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), 703 this, pageContext)) != null) 704 setOnclick(string); 705 706 if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), 707 this, pageContext)) != null) 708 setOndblclick(string); 709 710 if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), 711 this, pageContext)) != null) 712 setOnfocus(string); 713 714 if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(), 715 this, pageContext)) != null) 716 setOnkeydown(string); 717 718 if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(), 719 this, pageContext)) != null) 720 setOnkeypress(string); 721 722 if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(), 723 this, pageContext)) != null) 724 setOnkeyup(string); 725 726 if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), 727 this, pageContext)) != null) 728 setOnmousedown(string); 729 730 if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(), 731 this, pageContext)) != null) 732 setOnmousemove(string); 733 734 if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), 735 this, pageContext)) != null) 736 setOnmouseout(string); 737 738 if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(), 739 this, pageContext)) != null) 740 setOnmouseover(string); 741 742 if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(), 743 this, pageContext)) != null) 744 setOnmouseup(string); 745 746 if ((string = EvalHelper.evalString("property", getPropertyExpr(), 747 this, pageContext)) != null) 748 setProperty(string); 749 750 if ((bool = EvalHelper.evalBoolean("readonly", getReadonlyExpr(), 751 this, pageContext)) != null) 752 setReadonly(bool.booleanValue()); 753 754 if ((string = EvalHelper.evalString("rows", getRowsExpr(), 755 this, pageContext)) != null) 756 setRows(string); 757 758 if ((string = EvalHelper.evalString("style", getStyleExpr(), 759 this, pageContext)) != null) 760 setStyle(string); 761 762 if ((string = EvalHelper.evalString("size", getSizeExpr(), 763 this, pageContext)) != null) 764 setSize(string); 765 766 if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), 767 this, pageContext)) != null) 768 setStyleClass(string); 769 770 if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), 771 this, pageContext)) != null) 772 setStyleId(string); 773 774 if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(), 775 this, pageContext)) != null) 776 setTabindex(string); 777 778 if ((string = EvalHelper.evalString("title", getTitleExpr(), 779 this, pageContext)) != null) 780 setTitle(string); 781 782 if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), 783 this, pageContext)) != null) 784 setTitleKey(string); 785 786 if ((string = EvalHelper.evalString("value", getValueExpr(), 787 this, pageContext)) != null) 788 setValue(string); 789 } 790 } 791 | Popular Tags |