1 16 31 package com.blandware.atleap.webapp.taglib.core; 32 33 import javax.servlet.jsp.tagext.SimpleTagSupport ; 34 35 36 136 public class BaseHandlerTag extends SimpleTagSupport { 137 138 140 142 145 protected Boolean disabled = Boolean.FALSE; 146 147 150 protected String style = new String (); 151 152 155 protected String styleClass = new String (); 156 157 160 protected String tagId = new String (); 161 162 165 private String alt = null; 166 167 170 private String title = null; 171 172 174 177 protected String onchange; 178 179 182 protected String onblur; 183 184 187 protected String onclick; 188 189 192 protected String ondblclick; 193 194 197 protected String onfocus; 198 199 202 protected String onkeydown; 203 204 207 protected String onkeypress; 208 209 212 protected String onkeyup; 213 214 217 protected String onmousedown; 218 219 222 protected String onmousemove; 223 224 227 protected String onmouseout; 228 229 232 protected String onmouseover; 233 234 237 protected String onmouseup; 238 239 241 244 protected String accesskey; 245 246 249 protected String tabindex; 250 251 260 public Boolean getDisabled() { 261 return disabled; 262 } 263 264 269 public void setDisabled(Boolean disabled) { 270 this.disabled = disabled; 271 } 272 273 282 public String getStyle() { 283 return style; 284 } 285 286 291 public void setStyle(String style) { 292 this.style = style; 293 } 294 295 304 public String getStyleClass() { 305 return styleClass; 306 } 307 308 313 public void setStyleClass(String styleClass) { 314 this.styleClass = styleClass; 315 } 316 317 326 public String getTagId() { 327 return tagId; 328 } 329 330 335 public void setTagId(String tagId) { 336 this.tagId = tagId; 337 } 338 339 348 public String getAlt() { 349 return alt; 350 } 351 352 357 public void setAlt(String alt) { 358 this.alt = alt; 359 } 360 361 370 public String getTitle() { 371 return title; 372 } 373 374 379 public void setTitle(String title) { 380 this.title = title; 381 } 382 383 385 394 public String getOnchange() { 395 return onchange; 396 } 397 398 403 public void setOnchange(String onchange) { 404 this.onchange = onchange; 405 } 406 407 416 public String getOnblur() { 417 return onblur; 418 } 419 420 425 public void setOnblur(String onblur) { 426 this.onblur = onblur; 427 } 428 429 438 public String getOnclick() { 439 return onclick; 440 } 441 442 447 public void setOnclick(String onclick) { 448 this.onclick = onclick; 449 } 450 451 460 public String getOndblclick() { 461 return ondblclick; 462 } 463 464 469 public void setOndblclick(String ondblclick) { 470 this.ondblclick = ondblclick; 471 } 472 473 482 public String getOnfocus() { 483 return onfocus; 484 } 485 486 491 public void setOnfocus(String onfocus) { 492 this.onfocus = onfocus; 493 } 494 495 504 public String getOnkeydown() { 505 return onkeydown; 506 } 507 508 513 public void setOnkeydown(String onkeydown) { 514 this.onkeydown = onkeydown; 515 } 516 517 526 public String getOnkeypress() { 527 return onkeypress; 528 } 529 530 535 public void setOnkeypress(String onkeypress) { 536 this.onkeypress = onkeypress; 537 } 538 539 548 public String getOnkeyup() { 549 return onkeyup; 550 } 551 552 557 public void setOnkeyup(String onkeyup) { 558 this.onkeyup = onkeyup; 559 } 560 561 570 public String getOnmousedown() { 571 return onmousedown; 572 } 573 574 579 public void setOnmousedown(String onmousedown) { 580 this.onmousedown = onmousedown; 581 } 582 583 592 public String getOnmousemove() { 593 return onmousemove; 594 } 595 596 601 public void setOnmousemove(String onmousemove) { 602 this.onmousemove = onmousemove; 603 } 604 605 614 public String getOnmouseout() { 615 return onmouseout; 616 } 617 618 623 public void setOnmouseout(String onmouseout) { 624 this.onmouseout = onmouseout; 625 } 626 627 636 public String getOnmouseover() { 637 return onmouseover; 638 } 639 640 645 public void setOnmouseover(String onmouseover) { 646 this.onmouseover = onmouseover; 647 } 648 649 658 public String getOnmouseup() { 659 return onmouseup; 660 } 661 662 667 public void setOnmouseup(String onmouseup) { 668 this.onmouseup = onmouseup; 669 } 670 671 680 public String getAccesskey() { 681 return accesskey; 682 } 683 684 689 public void setAccesskey(String accesskey) { 690 this.accesskey = accesskey; 691 } 692 693 702 public String getTabindex() { 703 return tabindex; 704 } 705 706 711 public void setTabindex(String tabindex) { 712 this.tabindex = tabindex; 713 } 714 715 720 protected StringBuffer prepareAttributes() { 721 StringBuffer result = new StringBuffer (); 722 723 if (disabled == null) { 724 disabled = Boolean.FALSE; 725 } 726 if ( disabled.booleanValue() ) { 727 result.append(" disabled=\"true\""); 728 } 729 730 if ( style != null && style.length() != 0 ) { 731 result.append(" style=\"" + style + "\""); 732 } 733 734 if ( styleClass != null && styleClass.length() != 0 ) { 735 result.append(" class=\"" + styleClass + "\""); 736 } 737 738 if ( tagId != null && tagId.length() != 0 ) { 739 result.append(" id=\"" + tagId + "\""); 740 } 741 742 if ( alt != null && alt.length() != 0 ) { 743 result.append(" alt=\"" + alt + "\""); 744 } 745 746 if ( title != null && title.length() != 0 ) { 747 result.append(" title=\"" + title + "\""); 748 } 749 750 if ( onchange != null && onchange.length() != 0 ) { 751 result.append(" onchange=\"" + onchange + "\""); 752 } 753 754 if ( onblur != null && onblur.length() != 0 ) { 755 result.append(" onblur=\"" + onblur + "\""); 756 } 757 758 if ( onclick != null && onclick.length() != 0 ) { 759 result.append(" onclick=\"" + onclick + "\""); 760 } 761 762 if ( ondblclick != null && ondblclick.length() != 0 ) { 763 result.append(" ondblclick=\"" + ondblclick + "\""); 764 } 765 766 if ( onfocus != null && onfocus.length() != 0 ) { 767 result.append(" onfocus=\"" + onfocus + "\""); 768 } 769 770 if ( onkeydown != null && onkeydown.length() != 0 ) { 771 result.append(" onkeydown=\"" + onkeydown + "\""); 772 } 773 774 if ( onkeypress != null && onkeypress.length() != 0 ) { 775 result.append(" onkeypress=\"" + onkeypress + "\""); 776 } 777 778 if ( onkeyup != null && onkeyup.length() != 0 ) { 779 result.append(" onkeyup=\"" + onkeyup + "\""); 780 } 781 782 if ( onmousedown != null && onmousedown.length() != 0 ) { 783 result.append(" onmousedown=\"" + onmousedown + "\""); 784 } 785 786 if ( onmousemove != null && onmousemove.length() != 0 ) { 787 result.append(" onmousemove=\"" + onmousemove + "\""); 788 } 789 790 if ( onmouseout != null && onmouseout.length() != 0 ) { 791 result.append(" onmouseout=\"" + onmouseout + "\""); 792 } 793 794 if ( onmouseover != null && onmouseover.length() != 0 ) { 795 result.append(" onmouseover=\"" + onmouseover + "\""); 796 } 797 798 if ( onmouseup != null && onmouseup.length() != 0 ) { 799 result.append(" onmouseup=\"" + onmouseup + "\""); 800 } 801 802 if ( accesskey != null && accesskey.length() != 0 ) { 803 result.append(" accesskey=\"" + accesskey + "\""); 804 } 805 806 if ( tabindex != null && tabindex.length() != 0 ) { 807 result.append(" tabindex=\"" + tabindex + "\""); 808 } 809 810 return result; 811 } 812 813 } 814 | Popular Tags |