001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.runtime.tag; 020 021import lucee.runtime.exp.TagNotSupported; 022import lucee.runtime.ext.tag.BodyTagImpl; 023 024public final class Grid extends BodyTagImpl { 025 026 /** Width value of the grid control, in pixels. */ 027 private double width; 028 029 /** The name of a query column when the grid uses a query. The column specified becomes the Key 030 ** regardless of the select mode for the grid. */ 031 private String hrefkey; 032 033 /** If Yes, sort buttons are added to the grid control. When clicked, sort buttons perform a simple 034 ** text sort on the selected column. Default is No. 035 ** Note that columns are sortable by clicking the column head, even if no sort button is displayed. */ 036 private boolean sort; 037 038 /** Yes or No. Yes displays column headers in the grid control. Default is Yes. */ 039 private boolean colheaders; 040 041 /** Text color value for the grid control row headers. Entries are: black (default), magenta, cyan, 042 ** orange, darkgray, pink, gray, white, lightgray, yellow. A hex value can be entered in the form: rowHeaderTextColor = "##xxxxxx" 043 ** Where x is 0-9 or A-F. Use two pound signs or no pound signs. */ 044 private String rowheadertextcolor; 045 046 /** Font to use for column data in the grid control. */ 047 private String font; 048 049 /** Yes or No. Yes displays column header text in italic. Default is No. */ 050 private boolean colheaderitalic; 051 052 /** Optional. Yes or No. Default is No. 053 ** If Yes, automatically sets the width of each column so that all the columns are visible within the 054 ** grid's specified width. All columns are initially set to equal widths. Users can resize any column. 055 ** No horizontal scroll bars are available since all columns are visible. 056 ** note that if you explicitly specify the width of a column and set autoWidth to Yes, CFML will 057 ** set the column to the explicit width, if possible. */ 058 private boolean autowidth; 059 060 /** Background color for a selected item. See bgColor for color options. */ 061 private String selectcolor; 062 063 /** Yes highlights links associated with a cfgrid with an href attribute value. No disables 064 ** highlight. Default is Yes. */ 065 private boolean highlighthref; 066 067 /** Yes displays grid control text in italic. Default is No. */ 068 private boolean italic; 069 070 /** Yes or No. Yes enables row and column rules (lines) in the grid control. No suppresses rules. 071 ** Default is Yes. */ 072 private boolean gridlines; 073 074 /** Yes or No. If Yes, images are used for the Insert, delete, and Sort buttons rather than text. 075 ** Default is No. */ 076 private boolean picturebar; 077 078 /** Text to use for the delete action button. The default is delete. */ 079 private String deletebutton; 080 081 /** Color value for text in the grid control. Options are: black (default), magenta, cyan, orange, darkgray, 082 ** pink, gray, white, lightgray, yellow. A hex value can be entered in the form: textColor = "##xxxxxx" where x is 0-9 or A-F. Use two 083 ** pound signs or no pound signs. */ 084 private String textcolor; 085 086 /** Text to use for the Insert action button. The default is Insert. */ 087 private String insertbutton; 088 089 /** Number of pixels for the minimum row height of the grid control. Used with cfgridcolumn 090 ** type = "Image", you can use rowHeight to define enough space for graphics to display in the row. */ 091 private double rowheight; 092 093 /** Selection mode for items in the grid control. */ 094 private String notsupported; 095 096 /** Font size for text in the grid control, in points. */ 097 private double fontsize; 098 099 /** The width, in pixels, of the row header column. */ 100 private double rowheaderwidth; 101 102 /** The name of a JavaScript function to execute in the event of a failed validation. */ 103 private String onerror; 104 105 /** Target attribute for href URL. */ 106 private String target; 107 108 /** Font for the column header in the grid control. */ 109 private String colheaderfont; 110 111 /** Enter Left, Right, or Center to position data in the grid within a column. Default is Left. */ 112 private String griddataalign; 113 114 /** Enter Left, Right, or Center to position data within a column header. Default is Left. */ 115 private String colheaderalign; 116 117 /** Height value of the grid control, in pixels. */ 118 private double height; 119 120 /** Name of the query associated with the grid control. */ 121 private String query; 122 123 /** Specifies the maximum number of rows to display in the grid. */ 124 private String maxrows; 125 126 /** Alignment value. Options are: Top, Left, Bottom, Baseline, Texttop, Absbottom, Middle, 127 ** Absmiddle, Right. */ 128 private String align; 129 130 /** Vertical margin spacing above and below the grid control, in pixels. */ 131 private double vspace; 132 133 /** Yes lets end users insert row data into the grid. Default is No. */ 134 private boolean insert; 135 136 /** Background color value for the grid control. Entries are: black, magenta, cyan, 137 ** orange, darkgray, pink, gray, white, lightgray, yellow. A hex value can be entered in the form: bgColor = "##xxxxxx" 138 ** where x is 0-9 or A-F. Use either two pound signs or no pound signs. */ 139 private String bgcolor; 140 141 /** When used with href, Yes passes query string value of the selected tree item in the URL to the 142 ** application page specified in the cfform action attribute. Default is Yes. */ 143 private boolean appendkey; 144 145 /** A name for the grid element. */ 146 private String name; 147 148 /** Text to use for the Sort button. Default is "A - Z". */ 149 private String sortascendingbutton; 150 151 /** Yes or No. Yes displays row label text in italic. Default is No. */ 152 private boolean rowheaderitalic; 153 154 /** The name of a JavaScript function used to validate user input. The form object, input object, 155 ** and input object value are passed to the routine, which should return True if validation succeeds and 156 ** False otherwise. */ 157 private String onvalidate; 158 159 /** URL to associate with the grid item or a query column for a grid that is populated from a query. 160 ** If href is a query column, the href value is populated by the query. If href is not recognized as a 161 ** query column, it is assumed that the href text is an actual HTML href. */ 162 private String href; 163 164 /** Yes or No. Yes displays column header text in boldface. Default is No. */ 165 private boolean colheaderbold; 166 167 /** Yes lets end users delete row data from the grid. Default is No. */ 168 private boolean delete; 169 170 /** Size for row label text in the grid control, in points. */ 171 private double rowheaderfontsize; 172 173 /** Selection mode for items in the grid control. */ 174 private String selectmode; 175 176 /** Yes or No. Yes displays row label text in boldface. Default is No. */ 177 private boolean rowheaderbold; 178 179 /** Size for column header text in the grid control, in points. */ 180 private double colheaderfontsize; 181 182 /** Enter Left, Right, or Center to position data within a row header. Default is Left. */ 183 private String rowheaderalign; 184 185 /** Font to use for the row label. */ 186 private String rowheaderfont; 187 188 /** Yes or No. Yes displays a column of numeric row labels in the grid control. 189 ** Defaults to Yes. */ 190 private boolean rowheaders; 191 192 /** Yes displays grid control text in boldface. Default is No. */ 193 private boolean bold; 194 195 /** Color value for the grid control column headers. Valid entries are: black (default), magenta, 196 ** cyan, orange, darkgray, pink, gray, white, lightgray, yellow.A hex value can be entered in the form: 197 ** colHeaderTextColor = "##xxxxxx" 198 ** where x is 0-9 or A-F. Use either two pound signs or no pound signs. */ 199 private String colheadertextcolor; 200 201 /** Horizontal margin spacing to the left and right of the grid control, in pixels. */ 202 private double hspace; 203 204 /** Text to use for the Sort button. Default is "Z - A". */ 205 private String sortdescendingbutton; 206 207 private int format; 208 private boolean enabled; 209 private String onchange; 210 private String onblur; 211 private String onfocus; 212 private String style; 213 private String tooltip; 214 private boolean visible; 215 216 217 public void release() { 218 super.release(); 219 width=0d; 220 hrefkey=""; 221 sort=false; 222 colheaders=false; 223 rowheadertextcolor=""; 224 font=""; 225 colheaderitalic=false; 226 autowidth=false; 227 selectcolor=""; 228 highlighthref=false; 229 italic=false; 230 gridlines=false; 231 picturebar=false; 232 deletebutton=""; 233 textcolor=""; 234 insertbutton=""; 235 rowheight=0d; 236 notsupported=""; 237 fontsize=0d; 238 rowheaderwidth=0d; 239 onerror=""; 240 target=""; 241 colheaderfont=""; 242 griddataalign=""; 243 colheaderalign=""; 244 height=0d; 245 query=""; 246 maxrows=""; 247 align=""; 248 vspace=0d; 249 insert=false; 250 bgcolor=""; 251 appendkey=false; 252 name=""; 253 sortascendingbutton=""; 254 rowheaderitalic=false; 255 onvalidate=""; 256 href=""; 257 colheaderbold=false; 258 delete=false; 259 rowheaderfontsize=0d; 260 selectmode=""; 261 rowheaderbold=false; 262 colheaderfontsize=0d; 263 rowheaderalign=""; 264 rowheaderfont=""; 265 rowheaders=false; 266 bold=false; 267 colheadertextcolor=""; 268 hspace=0d; 269 sortdescendingbutton=""; 270 271 272 format=0; 273 enabled=true; 274 onchange=null; 275 onblur=null; 276 onfocus=null; 277 style=null; 278 tooltip=null; 279 visible=true; 280 } 281 282 283 /** 284 * constructor for the tag class 285 * @throws TagNotSupported 286 **/ 287 public Grid() throws TagNotSupported { 288 // TODO implement tag 289 throw new TagNotSupported("grid"); 290 } 291 292 /** set the value width 293 * Width value of the grid control, in pixels. 294 * @param width value to set 295 **/ 296 public void setWidth(double width) { 297 this.width=width; 298 } 299 300 /** set the value hrefkey 301 * The name of a query column when the grid uses a query. The column specified becomes the Key 302 * regardless of the select mode for the grid. 303 * @param hrefkey value to set 304 **/ 305 public void setHrefkey(String hrefkey) { 306 this.hrefkey=hrefkey; 307 } 308 309 /** set the value sort 310 * If Yes, sort buttons are added to the grid control. When clicked, sort buttons perform a simple 311 * text sort on the selected column. Default is No. 312 * Note that columns are sortable by clicking the column head, even if no sort button is displayed. 313 * @param sort value to set 314 **/ 315 public void setSort(boolean sort) { 316 this.sort=sort; 317 } 318 319 /** set the value colheaders 320 * Yes or No. Yes displays column headers in the grid control. Default is Yes. 321 * @param colheaders value to set 322 **/ 323 public void setColheaders(boolean colheaders) { 324 this.colheaders=colheaders; 325 } 326 327 /** set the value rowheadertextcolor 328 * Text color value for the grid control row headers. Entries are: black (default), magenta, cyan, 329 * orange, darkgray, pink, gray, white, lightgray, yellow. A hex value can be entered in the form: rowHeaderTextColor = "##xxxxxx" 330 * Where x is 0-9 or A-F. Use two pound signs or no pound signs. 331 * @param rowheadertextcolor value to set 332 **/ 333 public void setRowheadertextcolor(String rowheadertextcolor) { 334 this.rowheadertextcolor=rowheadertextcolor; 335 } 336 337 /** set the value font 338 * Font to use for column data in the grid control. 339 * @param font value to set 340 **/ 341 public void setFont(String font) { 342 this.font=font; 343 } 344 345 /** set the value colheaderitalic 346 * Yes or No. Yes displays column header text in italic. Default is No. 347 * @param colheaderitalic value to set 348 **/ 349 public void setColheaderitalic(boolean colheaderitalic) { 350 this.colheaderitalic=colheaderitalic; 351 } 352 353 /** set the value autowidth 354 * Optional. Yes or No. Default is No. 355 * If Yes, automatically sets the width of each column so that all the columns are visible within the 356 * grid's specified width. All columns are initially set to equal widths. Users can resize any column. 357 * No horizontal scroll bars are available since all columns are visible. 358 * note that if you explicitly specify the width of a column and set autoWidth to Yes, CFML will 359 * set the column to the explicit width, if possible. 360 * @param autowidth value to set 361 **/ 362 public void setAutowidth(boolean autowidth) { 363 this.autowidth=autowidth; 364 } 365 366 /** set the value selectcolor 367 * Background color for a selected item. See bgColor for color options. 368 * @param selectcolor value to set 369 **/ 370 public void setSelectcolor(String selectcolor) { 371 this.selectcolor=selectcolor; 372 } 373 374 /** set the value highlighthref 375 * Yes highlights links associated with a cfgrid with an href attribute value. No disables 376 * highlight. Default is Yes. 377 * @param highlighthref value to set 378 **/ 379 public void setHighlighthref(boolean highlighthref) { 380 this.highlighthref=highlighthref; 381 } 382 383 /** set the value italic 384 * Yes displays grid control text in italic. Default is No. 385 * @param italic value to set 386 **/ 387 public void setItalic(boolean italic) { 388 this.italic=italic; 389 } 390 391 /** set the value gridlines 392 * Yes or No. Yes enables row and column rules (lines) in the grid control. No suppresses rules. 393 * Default is Yes. 394 * @param gridlines value to set 395 **/ 396 public void setGridlines(boolean gridlines) { 397 this.gridlines=gridlines; 398 } 399 400 /** set the value picturebar 401 * Yes or No. If Yes, images are used for the Insert, delete, and Sort buttons rather than text. 402 * Default is No. 403 * @param picturebar value to set 404 **/ 405 public void setPicturebar(boolean picturebar) { 406 this.picturebar=picturebar; 407 } 408 409 /** set the value deletebutton 410 * Text to use for the delete action button. The default is delete. 411 * @param deletebutton value to set 412 **/ 413 public void setDeletebutton(String deletebutton) { 414 this.deletebutton=deletebutton; 415 } 416 417 /** set the value textcolor 418 * Color value for text in the grid control. Options are: black (default), magenta, cyan, orange, darkgray, 419 * pink, gray, white, lightgray, yellow. A hex value can be entered in the form: textColor = "##xxxxxx" where x is 0-9 or A-F. Use two 420 * pound signs or no pound signs. 421 * @param textcolor value to set 422 **/ 423 public void setTextcolor(String textcolor) { 424 this.textcolor=textcolor; 425 } 426 427 /** set the value insertbutton 428 * Text to use for the Insert action button. The default is Insert. 429 * @param insertbutton value to set 430 **/ 431 public void setInsertbutton(String insertbutton) { 432 this.insertbutton=insertbutton; 433 } 434 435 /** set the value rowheight 436 * Number of pixels for the minimum row height of the grid control. Used with cfgridcolumn 437 * type = "Image", you can use rowHeight to define enough space for graphics to display in the row. 438 * @param rowheight value to set 439 **/ 440 public void setRowheight(double rowheight) { 441 this.rowheight=rowheight; 442 } 443 444 /** set the value notsupported 445 * Selection mode for items in the grid control. 446 * @param notsupported value to set 447 **/ 448 public void setNotsupported(String notsupported) { 449 this.notsupported=notsupported; 450 } 451 452 /** set the value fontsize 453 * Font size for text in the grid control, in points. 454 * @param fontsize value to set 455 **/ 456 public void setFontsize(double fontsize) { 457 this.fontsize=fontsize; 458 } 459 460 /** set the value rowheaderwidth 461 * The width, in pixels, of the row header column. 462 * @param rowheaderwidth value to set 463 **/ 464 public void setRowheaderwidth(double rowheaderwidth) { 465 this.rowheaderwidth=rowheaderwidth; 466 } 467 468 /** set the value onerror 469 * The name of a JavaScript function to execute in the event of a failed validation. 470 * @param onerror value to set 471 **/ 472 public void setOnerror(String onerror) { 473 this.onerror=onerror; 474 } 475 476 /** set the value target 477 * Target attribute for href URL. 478 * @param target value to set 479 **/ 480 public void setTarget(String target) { 481 this.target=target; 482 } 483 484 /** set the value colheaderfont 485 * Font for the column header in the grid control. 486 * @param colheaderfont value to set 487 **/ 488 public void setColheaderfont(String colheaderfont) { 489 this.colheaderfont=colheaderfont; 490 } 491 492 /** set the value griddataalign 493 * Enter Left, Right, or Center to position data in the grid within a column. Default is Left. 494 * @param griddataalign value to set 495 **/ 496 public void setGriddataalign(String griddataalign) { 497 this.griddataalign=griddataalign; 498 } 499 500 /** set the value colheaderalign 501 * Enter Left, Right, or Center to position data within a column header. Default is Left. 502 * @param colheaderalign value to set 503 **/ 504 public void setColheaderalign(String colheaderalign) { 505 this.colheaderalign=colheaderalign; 506 } 507 508 /** set the value height 509 * Height value of the grid control, in pixels. 510 * @param height value to set 511 **/ 512 public void setHeight(double height) { 513 this.height=height; 514 } 515 516 /** set the value query 517 * Name of the query associated with the grid control. 518 * @param query value to set 519 **/ 520 public void setQuery(String query) { 521 this.query=query; 522 } 523 524 /** set the value maxrows 525 * Specifies the maximum number of rows to display in the grid. 526 * @param maxrows value to set 527 **/ 528 public void setMaxrows(String maxrows) { 529 this.maxrows=maxrows; 530 } 531 532 /** set the value align 533 * Alignment value. Options are: Top, Left, Bottom, Baseline, Texttop, Absbottom, Middle, 534 * Absmiddle, Right. 535 * @param align value to set 536 **/ 537 public void setAlign(String align) { 538 this.align=align; 539 } 540 541 /** set the value vspace 542 * Vertical margin spacing above and below the grid control, in pixels. 543 * @param vspace value to set 544 **/ 545 public void setVspace(double vspace) { 546 this.vspace=vspace; 547 } 548 549 /** set the value insert 550 * Yes lets end users insert row data into the grid. Default is No. 551 * @param insert value to set 552 **/ 553 public void setInsert(boolean insert) { 554 this.insert=insert; 555 } 556 557 /** set the value bgcolor 558 * Background color value for the grid control. Entries are: black, magenta, cyan, 559 * orange, darkgray, pink, gray, white, lightgray, yellow. A hex value can be entered in the form: bgColor = "##xxxxxx" 560 * where x is 0-9 or A-F. Use either two pound signs or no pound signs. 561 * @param bgcolor value to set 562 **/ 563 public void setBgcolor(String bgcolor) { 564 this.bgcolor=bgcolor; 565 } 566 567 /** set the value appendkey 568 * When used with href, Yes passes query string value of the selected tree item in the URL to the 569 * application page specified in the cfform action attribute. Default is Yes. 570 * @param appendkey value to set 571 **/ 572 public void setAppendkey(boolean appendkey) { 573 this.appendkey=appendkey; 574 } 575 576 /** set the value name 577 * A name for the grid element. 578 * @param name value to set 579 **/ 580 public void setName(String name) { 581 this.name=name; 582 } 583 584 /** set the value sortascendingbutton 585 * Text to use for the Sort button. Default is "A - Z". 586 * @param sortascendingbutton value to set 587 **/ 588 public void setSortascendingbutton(String sortascendingbutton) { 589 this.sortascendingbutton=sortascendingbutton; 590 } 591 592 /** set the value rowheaderitalic 593 * Yes or No. Yes displays row label text in italic. Default is No. 594 * @param rowheaderitalic value to set 595 **/ 596 public void setRowheaderitalic(boolean rowheaderitalic) { 597 this.rowheaderitalic=rowheaderitalic; 598 } 599 600 /** set the value onvalidate 601 * The name of a JavaScript function used to validate user input. The form object, input object, 602 * and input object value are passed to the routine, which should return True if validation succeeds and 603 * False otherwise. 604 * @param onvalidate value to set 605 **/ 606 public void setOnvalidate(String onvalidate) { 607 this.onvalidate=onvalidate; 608 } 609 610 /** set the value href 611 * URL to associate with the grid item or a query column for a grid that is populated from a query. 612 * If href is a query column, the href value is populated by the query. If href is not recognized as a 613 * query column, it is assumed that the href text is an actual HTML href. 614 * @param href value to set 615 **/ 616 public void setHref(String href) { 617 this.href=href; 618 } 619 620 /** set the value colheaderbold 621 * Yes or No. Yes displays column header text in boldface. Default is No. 622 * @param colheaderbold value to set 623 **/ 624 public void setColheaderbold(boolean colheaderbold) { 625 this.colheaderbold=colheaderbold; 626 } 627 628 /** set the value delete 629 * Yes lets end users delete row data from the grid. Default is No. 630 * @param delete value to set 631 **/ 632 public void setDelete(boolean delete) { 633 this.delete=delete; 634 } 635 636 /** set the value rowheaderfontsize 637 * Size for row label text in the grid control, in points. 638 * @param rowheaderfontsize value to set 639 **/ 640 public void setRowheaderfontsize(double rowheaderfontsize) { 641 this.rowheaderfontsize=rowheaderfontsize; 642 } 643 644 /** set the value selectmode 645 * Selection mode for items in the grid control. 646 * @param selectmode value to set 647 **/ 648 public void setSelectmode(String selectmode) { 649 this.selectmode=selectmode; 650 } 651 652 /** set the value rowheaderbold 653 * Yes or No. Yes displays row label text in boldface. Default is No. 654 * @param rowheaderbold value to set 655 **/ 656 public void setRowheaderbold(boolean rowheaderbold) { 657 this.rowheaderbold=rowheaderbold; 658 } 659 660 /** set the value colheaderfontsize 661 * Size for column header text in the grid control, in points. 662 * @param colheaderfontsize value to set 663 **/ 664 public void setColheaderfontsize(double colheaderfontsize) { 665 this.colheaderfontsize=colheaderfontsize; 666 } 667 668 /** set the value rowheaderalign 669 * Enter Left, Right, or Center to position data within a row header. Default is Left. 670 * @param rowheaderalign value to set 671 **/ 672 public void setRowheaderalign(String rowheaderalign) { 673 this.rowheaderalign=rowheaderalign; 674 } 675 676 /** set the value rowheaderfont 677 * Font to use for the row label. 678 * @param rowheaderfont value to set 679 **/ 680 public void setRowheaderfont(String rowheaderfont) { 681 this.rowheaderfont=rowheaderfont; 682 } 683 684 /** set the value rowheaders 685 * Yes or No. Yes displays a column of numeric row labels in the grid control. 686 * Defaults to Yes. 687 * @param rowheaders value to set 688 **/ 689 public void setRowheaders(boolean rowheaders) { 690 this.rowheaders=rowheaders; 691 } 692 693 /** set the value bold 694 * Yes displays grid control text in boldface. Default is No. 695 * @param bold value to set 696 **/ 697 public void setBold(boolean bold) { 698 this.bold=bold; 699 } 700 701 /** set the value colheadertextcolor 702 * Color value for the grid control column headers. Valid entries are: black (default), magenta, 703 * cyan, orange, darkgray, pink, gray, white, lightgray, yellow.A hex value can be entered in the form: 704 * colHeaderTextColor = "##xxxxxx" 705 * where x is 0-9 or A-F. Use either two pound signs or no pound signs. 706 * @param colheadertextcolor value to set 707 **/ 708 public void setColheadertextcolor(String colheadertextcolor) { 709 this.colheadertextcolor=colheadertextcolor; 710 } 711 712 /** set the value hspace 713 * Horizontal margin spacing to the left and right of the grid control, in pixels. 714 * @param hspace value to set 715 **/ 716 public void setHspace(double hspace) { 717 this.hspace=hspace; 718 } 719 720 /** set the value sortdescendingbutton 721 * Text to use for the Sort button. Default is "Z - A". 722 * @param sortdescendingbutton value to set 723 **/ 724 public void setSortdescendingbutton(String sortdescendingbutton) { 725 this.sortdescendingbutton=sortdescendingbutton; 726 } 727 728 729 730 /** 731 * @param enabled the enabled to set 732 */ 733 public void setEnabled(boolean enabled) { 734 this.enabled = enabled; 735 } 736 737 738 /** 739 * @param format the format to set 740 */ 741 public void setFormat(String format) { 742 //this.format = format; 743 } 744 745 746 /** 747 * @param onblur the onblur to set 748 */ 749 public void setOnblur(String onblur) { 750 this.onblur = onblur; 751 } 752 753 754 /** 755 * @param onchange the onchange to set 756 */ 757 public void setOnchange(String onchange) { 758 this.onchange = onchange; 759 } 760 761 762 /** 763 * @param onfocus the onfocus to set 764 */ 765 public void setOnfocus(String onfocus) { 766 this.onfocus = onfocus; 767 } 768 769 770 /** 771 * @param style the style to set 772 */ 773 public void setStyle(String style) { 774 this.style = style; 775 } 776 777 778 /** 779 * @param tooltip the tooltip to set 780 */ 781 public void setTooltip(String tooltip) { 782 this.tooltip = tooltip; 783 } 784 785 786 /** 787 * @param visible the visible to set 788 */ 789 public void setVisible(boolean visible) { 790 this.visible = visible; 791 } 792 793 794 @Override 795 public int doStartTag() { 796 return SKIP_BODY; 797 } 798 799 @Override 800 public int doEndTag() { 801 return EVAL_PAGE; 802 } 803 804 @Override 805 public void doInitBody() { 806 807 } 808 809 810 public void addRow(String[] data) { 811 812 } 813 814 815 public void addColumn(GridColumnBean column) { 816 817 } 818 819}