001 // ---------- Attention: Generated code, please do not modify! ----------- 002 003 /* 004 * Licensed to the Apache Software Foundation (ASF) under one or more 005 * contributor license agreements. See the NOTICE file distributed with 006 * this work for additional information regarding copyright ownership. 007 * The ASF licenses this file to You under the Apache License, Version 2.0 008 * (the "License"); you may not use this file except in compliance with 009 * the License. You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 */ 019 020 package org.apache.myfaces.tobago.component; 021 022 import javax.faces.context.FacesContext; 023 import org.apache.myfaces.tobago.context.Markup; 024 import org.apache.myfaces.tobago.internal.component.AbstractUIWizard; 025 import org.apache.myfaces.tobago.layout.Display; 026 import org.apache.myfaces.tobago.layout.Measure; 027 import org.apache.commons.lang.ArrayUtils; 028 import org.apache.commons.lang.StringUtils; 029 import org.apache.myfaces.tobago.component.MethodBindingToMethodExpression; 030 import org.apache.myfaces.tobago.component.MethodExpressionToMethodBinding; 031 import org.apache.myfaces.tobago.internal.util.Deprecation; 032 import org.apache.myfaces.tobago.renderkit.MarginValues; 033 import org.apache.myfaces.tobago.renderkit.SpacingValues; 034 import org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer; 035 import javax.el.ELException; 036 import javax.faces.FacesException; 037 import java.util.ArrayList; 038 import java.util.List; 039 import javax.el.MethodExpression; 040 import javax.el.ValueExpression; 041 042 /** 043 Renders a flexible wizard. 044 * UIComponent class, generated from template {@code component1.2.stg} with class 045 * {@link org.apache.myfaces.tobago.internal.taglib.component.WizardTagDeclaration}. 046 */ 047 public class UIWizard 048 extends AbstractUIWizard implements SupportsMarkup { 049 050 public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.Wizard"; 051 052 private org.apache.myfaces.tobago.context.Markup markup; 053 private org.apache.myfaces.tobago.layout.Measure marginLeft; 054 private org.apache.myfaces.tobago.layout.Measure minimumHeight; 055 private org.apache.myfaces.tobago.layout.Measure borderLeft; 056 private org.apache.myfaces.tobago.layout.Measure height; 057 private org.apache.myfaces.tobago.layout.Measure minimumWidth; 058 private java.lang.Integer rowSpan; 059 private org.apache.myfaces.tobago.layout.Measure left; 060 private java.lang.Integer columnSpan; 061 private org.apache.myfaces.tobago.layout.Measure borderRight; 062 private org.apache.myfaces.tobago.layout.Measure paddingBottom; 063 private org.apache.myfaces.tobago.layout.Measure maximumHeight; 064 private org.apache.myfaces.tobago.layout.Measure top; 065 private org.apache.myfaces.tobago.layout.Measure currentWidth; 066 private org.apache.myfaces.tobago.layout.Measure paddingTop; 067 private org.apache.myfaces.tobago.layout.Measure marginTop; 068 private org.apache.myfaces.tobago.layout.Measure marginRight; 069 private org.apache.myfaces.tobago.layout.Measure width; 070 private org.apache.myfaces.tobago.layout.Measure currentHeight; 071 private org.apache.myfaces.tobago.layout.Measure preferredHeight; 072 private org.apache.myfaces.tobago.layout.Display display; 073 private org.apache.myfaces.tobago.layout.Measure borderBottom; 074 private org.apache.myfaces.tobago.layout.Measure maximumWidth; 075 private org.apache.myfaces.tobago.layout.Measure paddingLeft; 076 private org.apache.myfaces.tobago.layout.Measure paddingRight; 077 private org.apache.myfaces.tobago.layout.Measure preferredWidth; 078 private org.apache.myfaces.tobago.layout.Measure marginBottom; 079 private java.lang.Integer verticalIndex; 080 private org.apache.myfaces.tobago.layout.Measure borderTop; 081 private org.apache.myfaces.tobago.context.Markup currentMarkup; 082 private java.lang.Boolean allowJumpForward; 083 private java.lang.Integer horizontalIndex; 084 085 086 public org.apache.myfaces.tobago.context.Markup getMarkup() { 087 if (markup != null) { 088 return markup; 089 } 090 ValueExpression ve = getValueExpression("markup"); 091 if (ve != null) { 092 try { 093 Object object = ve.getValue(getFacesContext().getELContext()); 094 return Markup.valueOf(object); 095 } catch (ELException e) { 096 throw new FacesException(e); 097 } 098 } 099 return null; 100 } 101 102 public void setMarkup(org.apache.myfaces.tobago.context.Markup markup) { 103 this.markup = markup; 104 } 105 106 public org.apache.myfaces.tobago.layout.Measure getMarginLeft() { 107 if (marginLeft != null) { 108 return marginLeft; 109 } 110 ValueExpression ve = getValueExpression("marginLeft"); 111 if (ve != null) { 112 try { 113 Object object = ve.getValue(getFacesContext().getELContext()); 114 return Measure.valueOf(object); 115 } catch (ELException e) { 116 throw new FacesException(e); 117 } 118 } 119 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginLeft(getFacesContext(), this); 120 } 121 122 public void setMarginLeft(org.apache.myfaces.tobago.layout.Measure marginLeft) { 123 this.marginLeft = marginLeft; 124 } 125 126 public org.apache.myfaces.tobago.layout.Measure getMinimumHeight() { 127 if (minimumHeight != null) { 128 return minimumHeight; 129 } 130 ValueExpression ve = getValueExpression("minimumHeight"); 131 if (ve != null) { 132 try { 133 Object object = ve.getValue(getFacesContext().getELContext()); 134 return Measure.valueOf(object); 135 } catch (ELException e) { 136 throw new FacesException(e); 137 } 138 } 139 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMinimumHeight(getFacesContext(), this); 140 } 141 142 public void setMinimumHeight(org.apache.myfaces.tobago.layout.Measure minimumHeight) { 143 this.minimumHeight = minimumHeight; 144 } 145 146 /** 147 This attribute is for internal use only. 148 149 */ 150 public org.apache.myfaces.tobago.layout.Measure getBorderLeft() { 151 if (borderLeft != null) { 152 return borderLeft; 153 } 154 ValueExpression ve = getValueExpression("borderLeft"); 155 if (ve != null) { 156 try { 157 Object object = ve.getValue(getFacesContext().getELContext()); 158 return Measure.valueOf(object); 159 } catch (ELException e) { 160 throw new FacesException(e); 161 } 162 } 163 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 164 getRenderer(getFacesContext())).getBorderLeft(getFacesContext(), this); 165 } 166 167 public void setBorderLeft(org.apache.myfaces.tobago.layout.Measure borderLeft) { 168 this.borderLeft = borderLeft; 169 } 170 171 /** 172 This value will usually be set by the layout manager. 173 174 */ 175 public org.apache.myfaces.tobago.layout.Measure getHeight() { 176 if (height != null) { 177 return height; 178 } 179 ValueExpression ve = getValueExpression("height"); 180 if (ve != null) { 181 try { 182 Object object = ve.getValue(getFacesContext().getELContext()); 183 return Measure.valueOf(object); 184 } catch (ELException e) { 185 throw new FacesException(e); 186 } 187 } 188 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getHeight(getFacesContext(), this); 189 } 190 191 public void setHeight(org.apache.myfaces.tobago.layout.Measure height) { 192 this.height = height; 193 } 194 195 public org.apache.myfaces.tobago.layout.Measure getMinimumWidth() { 196 if (minimumWidth != null) { 197 return minimumWidth; 198 } 199 ValueExpression ve = getValueExpression("minimumWidth"); 200 if (ve != null) { 201 try { 202 Object object = ve.getValue(getFacesContext().getELContext()); 203 return Measure.valueOf(object); 204 } catch (ELException e) { 205 throw new FacesException(e); 206 } 207 } 208 return ((LayoutComponentRenderer)getRenderer(getFacesContext())).getMinimumWidth(getFacesContext(), this); 209 } 210 211 public void setMinimumWidth(org.apache.myfaces.tobago.layout.Measure minimumWidth) { 212 this.minimumWidth = minimumWidth; 213 } 214 215 public java.lang.Integer getRowSpan() { 216 if (rowSpan != null) { 217 return rowSpan; 218 } 219 ValueExpression ve = getValueExpression("rowSpan"); 220 if (ve != null) { 221 try { 222 Number number = (Number) ve.getValue(getFacesContext().getELContext()); 223 if (number != null) { 224 return number.intValue(); 225 } 226 } catch (ELException e) { 227 throw new FacesException(e); 228 } 229 } 230 return 1; 231 } 232 233 public void setRowSpan(java.lang.Integer rowSpan) { 234 this.rowSpan = rowSpan; 235 } 236 237 /** 238 This value will usually be set by the layout manager. 239 240 */ 241 public org.apache.myfaces.tobago.layout.Measure getLeft() { 242 if (left != null) { 243 return left; 244 } 245 ValueExpression ve = getValueExpression("left"); 246 if (ve != null) { 247 try { 248 Object object = ve.getValue(getFacesContext().getELContext()); 249 return Measure.valueOf(object); 250 } catch (ELException e) { 251 throw new FacesException(e); 252 } 253 } 254 return null; 255 } 256 257 public void setLeft(org.apache.myfaces.tobago.layout.Measure left) { 258 this.left = left; 259 } 260 261 public java.lang.Integer getColumnSpan() { 262 if (columnSpan != null) { 263 return columnSpan; 264 } 265 ValueExpression ve = getValueExpression("columnSpan"); 266 if (ve != null) { 267 try { 268 Number number = (Number) ve.getValue(getFacesContext().getELContext()); 269 if (number != null) { 270 return number.intValue(); 271 } 272 } catch (ELException e) { 273 throw new FacesException(e); 274 } 275 } 276 return 1; 277 } 278 279 public void setColumnSpan(java.lang.Integer columnSpan) { 280 this.columnSpan = columnSpan; 281 } 282 283 /** 284 This attribute is for internal use only. 285 286 */ 287 public org.apache.myfaces.tobago.layout.Measure getBorderRight() { 288 if (borderRight != null) { 289 return borderRight; 290 } 291 ValueExpression ve = getValueExpression("borderRight"); 292 if (ve != null) { 293 try { 294 Object object = ve.getValue(getFacesContext().getELContext()); 295 return Measure.valueOf(object); 296 } catch (ELException e) { 297 throw new FacesException(e); 298 } 299 } 300 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 301 getRenderer(getFacesContext())).getBorderRight(getFacesContext(), this); 302 } 303 304 public void setBorderRight(org.apache.myfaces.tobago.layout.Measure borderRight) { 305 this.borderRight = borderRight; 306 } 307 308 /** 309 This attribute is for internal use only. 310 311 */ 312 public org.apache.myfaces.tobago.layout.Measure getPaddingBottom() { 313 if (paddingBottom != null) { 314 return paddingBottom; 315 } 316 ValueExpression ve = getValueExpression("paddingBottom"); 317 if (ve != null) { 318 try { 319 Object object = ve.getValue(getFacesContext().getELContext()); 320 return Measure.valueOf(object); 321 } catch (ELException e) { 322 throw new FacesException(e); 323 } 324 } 325 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 326 getRenderer(getFacesContext())).getPaddingBottom(getFacesContext(), this); 327 } 328 329 public void setPaddingBottom(org.apache.myfaces.tobago.layout.Measure paddingBottom) { 330 this.paddingBottom = paddingBottom; 331 } 332 333 public org.apache.myfaces.tobago.layout.Measure getMaximumHeight() { 334 if (maximumHeight != null) { 335 return maximumHeight; 336 } 337 ValueExpression ve = getValueExpression("maximumHeight"); 338 if (ve != null) { 339 try { 340 Object object = ve.getValue(getFacesContext().getELContext()); 341 return Measure.valueOf(object); 342 } catch (ELException e) { 343 throw new FacesException(e); 344 } 345 } 346 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMaximumHeight(getFacesContext(), this); 347 } 348 349 public void setMaximumHeight(org.apache.myfaces.tobago.layout.Measure maximumHeight) { 350 this.maximumHeight = maximumHeight; 351 } 352 353 /** 354 This value will usually be set by the layout manager. 355 356 */ 357 public org.apache.myfaces.tobago.layout.Measure getTop() { 358 if (top != null) { 359 return top; 360 } 361 ValueExpression ve = getValueExpression("top"); 362 if (ve != null) { 363 try { 364 Object object = ve.getValue(getFacesContext().getELContext()); 365 return Measure.valueOf(object); 366 } catch (ELException e) { 367 throw new FacesException(e); 368 } 369 } 370 return null; 371 } 372 373 public void setTop(org.apache.myfaces.tobago.layout.Measure top) { 374 this.top = top; 375 } 376 377 /** 378 This value will usually be set by the layout manager. It holds the current width computed by the layout manager. 379 380 */ 381 public org.apache.myfaces.tobago.layout.Measure getCurrentWidth() { 382 if (currentWidth != null) { 383 return currentWidth; 384 } 385 ValueExpression ve = getValueExpression("currentWidth"); 386 if (ve != null) { 387 try { 388 Object object = ve.getValue(getFacesContext().getELContext()); 389 return Measure.valueOf(object); 390 } catch (ELException e) { 391 throw new FacesException(e); 392 } 393 } 394 return getWidth(); 395 } 396 397 public void setCurrentWidth(org.apache.myfaces.tobago.layout.Measure currentWidth) { 398 this.currentWidth = currentWidth; 399 } 400 401 /** 402 This attribute is for internal use only. 403 404 */ 405 public org.apache.myfaces.tobago.layout.Measure getPaddingTop() { 406 if (paddingTop != null) { 407 return paddingTop; 408 } 409 ValueExpression ve = getValueExpression("paddingTop"); 410 if (ve != null) { 411 try { 412 Object object = ve.getValue(getFacesContext().getELContext()); 413 return Measure.valueOf(object); 414 } catch (ELException e) { 415 throw new FacesException(e); 416 } 417 } 418 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 419 getRenderer(getFacesContext())).getPaddingTop(getFacesContext(), this); 420 } 421 422 public void setPaddingTop(org.apache.myfaces.tobago.layout.Measure paddingTop) { 423 this.paddingTop = paddingTop; 424 } 425 426 public org.apache.myfaces.tobago.layout.Measure getMarginTop() { 427 if (marginTop != null) { 428 return marginTop; 429 } 430 ValueExpression ve = getValueExpression("marginTop"); 431 if (ve != null) { 432 try { 433 Object object = ve.getValue(getFacesContext().getELContext()); 434 return Measure.valueOf(object); 435 } catch (ELException e) { 436 throw new FacesException(e); 437 } 438 } 439 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginTop(getFacesContext(), this); 440 } 441 442 public void setMarginTop(org.apache.myfaces.tobago.layout.Measure marginTop) { 443 this.marginTop = marginTop; 444 } 445 446 public org.apache.myfaces.tobago.layout.Measure getMarginRight() { 447 if (marginRight != null) { 448 return marginRight; 449 } 450 ValueExpression ve = getValueExpression("marginRight"); 451 if (ve != null) { 452 try { 453 Object object = ve.getValue(getFacesContext().getELContext()); 454 return Measure.valueOf(object); 455 } catch (ELException e) { 456 throw new FacesException(e); 457 } 458 } 459 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginRight(getFacesContext(), this); 460 } 461 462 public void setMarginRight(org.apache.myfaces.tobago.layout.Measure marginRight) { 463 this.marginRight = marginRight; 464 } 465 466 /** 467 This value will usually be set by the layout manager. 468 469 */ 470 public org.apache.myfaces.tobago.layout.Measure getWidth() { 471 if (width != null) { 472 return width; 473 } 474 ValueExpression ve = getValueExpression("width"); 475 if (ve != null) { 476 try { 477 Object object = ve.getValue(getFacesContext().getELContext()); 478 return Measure.valueOf(object); 479 } catch (ELException e) { 480 throw new FacesException(e); 481 } 482 } 483 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getWidth(getFacesContext(), this); 484 } 485 486 public void setWidth(org.apache.myfaces.tobago.layout.Measure width) { 487 this.width = width; 488 } 489 490 /** 491 This value will usually be set by the layout manager. It holds the current height computed by the layout manager. 492 493 */ 494 public org.apache.myfaces.tobago.layout.Measure getCurrentHeight() { 495 if (currentHeight != null) { 496 return currentHeight; 497 } 498 ValueExpression ve = getValueExpression("currentHeight"); 499 if (ve != null) { 500 try { 501 Object object = ve.getValue(getFacesContext().getELContext()); 502 return Measure.valueOf(object); 503 } catch (ELException e) { 504 throw new FacesException(e); 505 } 506 } 507 return getHeight(); 508 } 509 510 public void setCurrentHeight(org.apache.myfaces.tobago.layout.Measure currentHeight) { 511 this.currentHeight = currentHeight; 512 } 513 514 public org.apache.myfaces.tobago.layout.Measure getPreferredHeight() { 515 if (preferredHeight != null) { 516 return preferredHeight; 517 } 518 ValueExpression ve = getValueExpression("preferredHeight"); 519 if (ve != null) { 520 try { 521 Object object = ve.getValue(getFacesContext().getELContext()); 522 return Measure.valueOf(object); 523 } catch (ELException e) { 524 throw new FacesException(e); 525 } 526 } 527 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getPreferredHeight(getFacesContext(), this); 528 } 529 530 public void setPreferredHeight(org.apache.myfaces.tobago.layout.Measure preferredHeight) { 531 this.preferredHeight = preferredHeight; 532 } 533 534 /** 535 This attribute is for internal use only. 536 537 */ 538 public org.apache.myfaces.tobago.layout.Display getDisplay() { 539 if (display != null) { 540 return display; 541 } 542 ValueExpression ve = getValueExpression("display"); 543 if (ve != null) { 544 try { 545 return (org.apache.myfaces.tobago.layout.Display) ve.getValue(getFacesContext().getELContext()); 546 } catch (ELException e) { 547 throw new FacesException(e); 548 } 549 } 550 return null; 551 } 552 553 public void setDisplay(org.apache.myfaces.tobago.layout.Display display) { 554 this.display = display; 555 } 556 557 /** 558 This attribute is for internal use only. 559 560 */ 561 public org.apache.myfaces.tobago.layout.Measure getBorderBottom() { 562 if (borderBottom != null) { 563 return borderBottom; 564 } 565 ValueExpression ve = getValueExpression("borderBottom"); 566 if (ve != null) { 567 try { 568 Object object = ve.getValue(getFacesContext().getELContext()); 569 return Measure.valueOf(object); 570 } catch (ELException e) { 571 throw new FacesException(e); 572 } 573 } 574 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 575 getRenderer(getFacesContext())).getBorderBottom(getFacesContext(), this); 576 } 577 578 public void setBorderBottom(org.apache.myfaces.tobago.layout.Measure borderBottom) { 579 this.borderBottom = borderBottom; 580 } 581 582 public org.apache.myfaces.tobago.layout.Measure getMaximumWidth() { 583 if (maximumWidth != null) { 584 return maximumWidth; 585 } 586 ValueExpression ve = getValueExpression("maximumWidth"); 587 if (ve != null) { 588 try { 589 Object object = ve.getValue(getFacesContext().getELContext()); 590 return Measure.valueOf(object); 591 } catch (ELException e) { 592 throw new FacesException(e); 593 } 594 } 595 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMaximumWidth(getFacesContext(), this); 596 } 597 598 public void setMaximumWidth(org.apache.myfaces.tobago.layout.Measure maximumWidth) { 599 this.maximumWidth = maximumWidth; 600 } 601 602 /** 603 This attribute is for internal use only. 604 605 */ 606 public org.apache.myfaces.tobago.layout.Measure getPaddingLeft() { 607 if (paddingLeft != null) { 608 return paddingLeft; 609 } 610 ValueExpression ve = getValueExpression("paddingLeft"); 611 if (ve != null) { 612 try { 613 Object object = ve.getValue(getFacesContext().getELContext()); 614 return Measure.valueOf(object); 615 } catch (ELException e) { 616 throw new FacesException(e); 617 } 618 } 619 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 620 getRenderer(getFacesContext())).getPaddingLeft(getFacesContext(), this); 621 } 622 623 public void setPaddingLeft(org.apache.myfaces.tobago.layout.Measure paddingLeft) { 624 this.paddingLeft = paddingLeft; 625 } 626 627 /** 628 This attribute is for internal use only. 629 630 */ 631 public org.apache.myfaces.tobago.layout.Measure getPaddingRight() { 632 if (paddingRight != null) { 633 return paddingRight; 634 } 635 ValueExpression ve = getValueExpression("paddingRight"); 636 if (ve != null) { 637 try { 638 Object object = ve.getValue(getFacesContext().getELContext()); 639 return Measure.valueOf(object); 640 } catch (ELException e) { 641 throw new FacesException(e); 642 } 643 } 644 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 645 getRenderer(getFacesContext())).getPaddingRight(getFacesContext(), this); 646 } 647 648 public void setPaddingRight(org.apache.myfaces.tobago.layout.Measure paddingRight) { 649 this.paddingRight = paddingRight; 650 } 651 652 public org.apache.myfaces.tobago.layout.Measure getPreferredWidth() { 653 if (preferredWidth != null) { 654 return preferredWidth; 655 } 656 ValueExpression ve = getValueExpression("preferredWidth"); 657 if (ve != null) { 658 try { 659 Object object = ve.getValue(getFacesContext().getELContext()); 660 return Measure.valueOf(object); 661 } catch (ELException e) { 662 throw new FacesException(e); 663 } 664 } 665 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getPreferredWidth(getFacesContext(), this); 666 } 667 668 public void setPreferredWidth(org.apache.myfaces.tobago.layout.Measure preferredWidth) { 669 this.preferredWidth = preferredWidth; 670 } 671 672 public org.apache.myfaces.tobago.layout.Measure getMarginBottom() { 673 if (marginBottom != null) { 674 return marginBottom; 675 } 676 ValueExpression ve = getValueExpression("marginBottom"); 677 if (ve != null) { 678 try { 679 Object object = ve.getValue(getFacesContext().getELContext()); 680 return Measure.valueOf(object); 681 } catch (ELException e) { 682 throw new FacesException(e); 683 } 684 } 685 return ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginBottom(getFacesContext(), this); 686 } 687 688 public void setMarginBottom(org.apache.myfaces.tobago.layout.Measure marginBottom) { 689 this.marginBottom = marginBottom; 690 } 691 692 /** 693 This attribute is for internal use only. 694 695 */ 696 public java.lang.Integer getVerticalIndex() { 697 if (verticalIndex != null) { 698 return verticalIndex; 699 } 700 ValueExpression ve = getValueExpression("verticalIndex"); 701 if (ve != null) { 702 try { 703 Number number = (Number) ve.getValue(getFacesContext().getELContext()); 704 if (number != null) { 705 return number.intValue(); 706 } 707 } catch (ELException e) { 708 throw new FacesException(e); 709 } 710 } 711 return null; 712 } 713 714 public void setVerticalIndex(java.lang.Integer verticalIndex) { 715 this.verticalIndex = verticalIndex; 716 } 717 718 /** 719 This attribute is for internal use only. 720 721 */ 722 public org.apache.myfaces.tobago.layout.Measure getBorderTop() { 723 if (borderTop != null) { 724 return borderTop; 725 } 726 ValueExpression ve = getValueExpression("borderTop"); 727 if (ve != null) { 728 try { 729 Object object = ve.getValue(getFacesContext().getELContext()); 730 return Measure.valueOf(object); 731 } catch (ELException e) { 732 throw new FacesException(e); 733 } 734 } 735 return ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer) 736 getRenderer(getFacesContext())).getBorderTop(getFacesContext(), this); 737 } 738 739 public void setBorderTop(org.apache.myfaces.tobago.layout.Measure borderTop) { 740 this.borderTop = borderTop; 741 } 742 743 public org.apache.myfaces.tobago.context.Markup getCurrentMarkup() { 744 if (currentMarkup != null) { 745 return currentMarkup; 746 } 747 ValueExpression ve = getValueExpression("currentMarkup"); 748 if (ve != null) { 749 try { 750 Object object = ve.getValue(getFacesContext().getELContext()); 751 return Markup.valueOf(object); 752 } catch (ELException e) { 753 throw new FacesException(e); 754 } 755 } 756 return null; 757 } 758 759 public void setCurrentMarkup(org.apache.myfaces.tobago.context.Markup currentMarkup) { 760 this.currentMarkup = currentMarkup; 761 } 762 763 /** 764 Is a jump forward to following pages allowed? 765 <br />Default: <code>false</code> 766 */ 767 public boolean isAllowJumpForward() { 768 if (allowJumpForward != null) { 769 return allowJumpForward; 770 } 771 ValueExpression ve = getValueExpression("allowJumpForward"); 772 if (ve != null) { 773 try { 774 Boolean bool = (Boolean) ve.getValue(getFacesContext().getELContext()); 775 if (bool != null) { 776 return bool; 777 } 778 } catch (ELException e) { 779 throw new FacesException(e); 780 } 781 } 782 return false; 783 } 784 785 public void setAllowJumpForward(boolean allowJumpForward) { 786 this.allowJumpForward = allowJumpForward; 787 } 788 789 /** 790 This attribute is for internal use only. 791 792 */ 793 public java.lang.Integer getHorizontalIndex() { 794 if (horizontalIndex != null) { 795 return horizontalIndex; 796 } 797 ValueExpression ve = getValueExpression("horizontalIndex"); 798 if (ve != null) { 799 try { 800 Number number = (Number) ve.getValue(getFacesContext().getELContext()); 801 if (number != null) { 802 return number.intValue(); 803 } 804 } catch (ELException e) { 805 throw new FacesException(e); 806 } 807 } 808 return null; 809 } 810 811 public void setHorizontalIndex(java.lang.Integer horizontalIndex) { 812 this.horizontalIndex = horizontalIndex; 813 } 814 815 public void restoreState(FacesContext context, Object componentState) { 816 Object[] values = (Object[]) componentState; 817 super.restoreState(context, values[0]); 818 markup = (org.apache.myfaces.tobago.context.Markup) values[1]; 819 marginLeft = (org.apache.myfaces.tobago.layout.Measure) values[2]; 820 minimumHeight = (org.apache.myfaces.tobago.layout.Measure) values[3]; 821 borderLeft = (org.apache.myfaces.tobago.layout.Measure) values[4]; 822 height = (org.apache.myfaces.tobago.layout.Measure) values[5]; 823 minimumWidth = (org.apache.myfaces.tobago.layout.Measure) values[6]; 824 rowSpan = (java.lang.Integer) values[7]; 825 left = (org.apache.myfaces.tobago.layout.Measure) values[8]; 826 columnSpan = (java.lang.Integer) values[9]; 827 borderRight = (org.apache.myfaces.tobago.layout.Measure) values[10]; 828 paddingBottom = (org.apache.myfaces.tobago.layout.Measure) values[11]; 829 maximumHeight = (org.apache.myfaces.tobago.layout.Measure) values[12]; 830 top = (org.apache.myfaces.tobago.layout.Measure) values[13]; 831 currentWidth = (org.apache.myfaces.tobago.layout.Measure) values[14]; 832 paddingTop = (org.apache.myfaces.tobago.layout.Measure) values[15]; 833 marginTop = (org.apache.myfaces.tobago.layout.Measure) values[16]; 834 marginRight = (org.apache.myfaces.tobago.layout.Measure) values[17]; 835 width = (org.apache.myfaces.tobago.layout.Measure) values[18]; 836 currentHeight = (org.apache.myfaces.tobago.layout.Measure) values[19]; 837 preferredHeight = (org.apache.myfaces.tobago.layout.Measure) values[20]; 838 display = (org.apache.myfaces.tobago.layout.Display) values[21]; 839 borderBottom = (org.apache.myfaces.tobago.layout.Measure) values[22]; 840 maximumWidth = (org.apache.myfaces.tobago.layout.Measure) values[23]; 841 paddingLeft = (org.apache.myfaces.tobago.layout.Measure) values[24]; 842 paddingRight = (org.apache.myfaces.tobago.layout.Measure) values[25]; 843 preferredWidth = (org.apache.myfaces.tobago.layout.Measure) values[26]; 844 marginBottom = (org.apache.myfaces.tobago.layout.Measure) values[27]; 845 verticalIndex = (java.lang.Integer) values[28]; 846 borderTop = (org.apache.myfaces.tobago.layout.Measure) values[29]; 847 currentMarkup = (org.apache.myfaces.tobago.context.Markup) values[30]; 848 allowJumpForward = (java.lang.Boolean) values[31]; 849 horizontalIndex = (java.lang.Integer) values[32]; 850 } 851 852 public Object saveState(FacesContext context) { 853 Object[] values = new Object[33]; 854 values[0] = super.saveState(context); 855 values[1] = markup; 856 values[2] = marginLeft; 857 values[3] = minimumHeight; 858 values[4] = borderLeft; 859 values[5] = height; 860 values[6] = minimumWidth; 861 values[7] = rowSpan; 862 values[8] = left; 863 values[9] = columnSpan; 864 values[10] = borderRight; 865 values[11] = paddingBottom; 866 values[12] = maximumHeight; 867 values[13] = top; 868 values[14] = currentWidth; 869 values[15] = paddingTop; 870 values[16] = marginTop; 871 values[17] = marginRight; 872 values[18] = width; 873 values[19] = currentHeight; 874 values[20] = preferredHeight; 875 values[21] = display; 876 values[22] = borderBottom; 877 values[23] = maximumWidth; 878 values[24] = paddingLeft; 879 values[25] = paddingRight; 880 values[26] = preferredWidth; 881 values[27] = marginBottom; 882 values[28] = verticalIndex; 883 values[29] = borderTop; 884 values[30] = currentMarkup; 885 values[31] = allowJumpForward; 886 values[32] = horizontalIndex; 887 return values; 888 } 889 890 891 }