| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.rice.krad.uif.component; |
| 17 | |
|
| 18 | |
import org.apache.commons.lang.StringUtils; |
| 19 | |
import org.kuali.rice.krad.uif.CssConstants; |
| 20 | |
import org.kuali.rice.krad.uif.UifConstants; |
| 21 | |
import org.kuali.rice.krad.uif.UifConstants.ViewStatus; |
| 22 | |
import org.kuali.rice.krad.uif.container.CollectionGroup; |
| 23 | |
import org.kuali.rice.krad.uif.control.ControlBase; |
| 24 | |
import org.kuali.rice.krad.uif.modifier.ComponentModifier; |
| 25 | |
import org.kuali.rice.krad.uif.util.ComponentUtils; |
| 26 | |
import org.kuali.rice.krad.uif.util.ExpressionUtils; |
| 27 | |
import org.kuali.rice.krad.uif.view.View; |
| 28 | |
|
| 29 | |
import java.util.ArrayList; |
| 30 | |
import java.util.HashMap; |
| 31 | |
import java.util.List; |
| 32 | |
import java.util.ListIterator; |
| 33 | |
import java.util.Map; |
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
|
| 40 | |
|
| 41 | |
|
| 42 | |
|
| 43 | |
|
| 44 | |
|
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
public abstract class ComponentBase extends ConfigurableBase implements Component { |
| 49 | |
private static final long serialVersionUID = -4449335748129894350L; |
| 50 | |
|
| 51 | |
private String id; |
| 52 | |
private String factoryId; |
| 53 | |
private String template; |
| 54 | |
private String title; |
| 55 | |
|
| 56 | |
private boolean render; |
| 57 | |
private boolean refresh; |
| 58 | |
|
| 59 | |
private String progressiveRender; |
| 60 | |
private boolean progressiveRenderViaAJAX; |
| 61 | |
private boolean progressiveRenderAndRefresh; |
| 62 | |
private List<String> progressiveDisclosureControlNames; |
| 63 | |
private String progressiveDisclosureConditionJs; |
| 64 | |
|
| 65 | |
private String conditionalRefresh; |
| 66 | |
private String conditionalRefreshConditionJs; |
| 67 | |
private List<String> conditionalRefreshControlNames; |
| 68 | |
|
| 69 | |
private String refreshWhenChanged; |
| 70 | |
private List<String> refreshWhenChangedControlNames; |
| 71 | |
private boolean refreshedByAction; |
| 72 | |
|
| 73 | |
private boolean resetDataOnRefresh; |
| 74 | |
private String refreshDiscloseMethodToCall; |
| 75 | |
|
| 76 | |
private boolean hidden; |
| 77 | |
private boolean readOnly; |
| 78 | |
private Boolean required; |
| 79 | |
|
| 80 | |
private String align; |
| 81 | |
private String valign; |
| 82 | |
private String width; |
| 83 | |
|
| 84 | |
private int colSpan; |
| 85 | |
private int rowSpan; |
| 86 | |
|
| 87 | |
private String style; |
| 88 | |
private List<String> styleClasses; |
| 89 | |
|
| 90 | |
private int order; |
| 91 | |
|
| 92 | |
private boolean skipInTabOrder; |
| 93 | |
|
| 94 | |
private String finalizeMethodToCall; |
| 95 | |
private List<Object> finalizeMethodAdditionalArguments; |
| 96 | |
private MethodInvokerConfig finalizeMethodInvoker; |
| 97 | |
private boolean selfRendered; |
| 98 | |
private String renderOutput; |
| 99 | |
|
| 100 | |
private String onLoadScript; |
| 101 | |
private String onUnloadScript; |
| 102 | |
private String onCloseScript; |
| 103 | |
private String onBlurScript; |
| 104 | |
private String onChangeScript; |
| 105 | |
private String onClickScript; |
| 106 | |
private String onDblClickScript; |
| 107 | |
private String onFocusScript; |
| 108 | |
private String onSubmitScript; |
| 109 | |
private String onKeyPressScript; |
| 110 | |
private String onKeyUpScript; |
| 111 | |
private String onKeyDownScript; |
| 112 | |
private String onMouseOverScript; |
| 113 | |
private String onMouseOutScript; |
| 114 | |
private String onMouseUpScript; |
| 115 | |
private String onMouseDownScript; |
| 116 | |
private String onMouseMoveScript; |
| 117 | |
private String onDocumentReadyScript; |
| 118 | |
|
| 119 | |
private List<ComponentModifier> componentModifiers; |
| 120 | |
|
| 121 | |
private Map<String, String> componentOptions; |
| 122 | |
private String componentOptionsJSString; |
| 123 | |
|
| 124 | |
@ReferenceCopy(newCollectionInstance = true) |
| 125 | |
private transient Map<String, Object> context; |
| 126 | |
|
| 127 | |
private List<PropertyReplacer> propertyReplacers; |
| 128 | |
|
| 129 | |
public ComponentBase() { |
| 130 | 2 | super(); |
| 131 | |
|
| 132 | 2 | order = 0; |
| 133 | 2 | colSpan = 1; |
| 134 | 2 | rowSpan = 1; |
| 135 | |
|
| 136 | 2 | render = true; |
| 137 | 2 | selfRendered = false; |
| 138 | 2 | progressiveRenderViaAJAX = false; |
| 139 | 2 | progressiveRenderAndRefresh = false; |
| 140 | 2 | refreshedByAction = false; |
| 141 | 2 | resetDataOnRefresh = false; |
| 142 | |
|
| 143 | 2 | finalizeMethodAdditionalArguments = new ArrayList<Object>(); |
| 144 | 2 | styleClasses = new ArrayList<String>(); |
| 145 | 2 | componentModifiers = new ArrayList<ComponentModifier>(); |
| 146 | 2 | componentOptions = new HashMap<String, String>(); |
| 147 | 2 | context = new HashMap<String, Object>(); |
| 148 | 2 | propertyReplacers = new ArrayList<PropertyReplacer>(); |
| 149 | 2 | } |
| 150 | |
|
| 151 | |
|
| 152 | |
|
| 153 | |
|
| 154 | |
|
| 155 | |
|
| 156 | |
|
| 157 | |
|
| 158 | |
|
| 159 | |
|
| 160 | |
public void performInitialization(View view, Object model) { |
| 161 | 0 | if (StringUtils.isNotEmpty(progressiveRender)) { |
| 162 | |
|
| 163 | |
|
| 164 | 0 | String conditionalRender = getPropertyExpression("render"); |
| 165 | 0 | if (StringUtils.isNotEmpty(conditionalRender)) { |
| 166 | |
|
| 167 | 0 | conditionalRender = "(" + conditionalRender + ") and (" + progressiveRender + ")"; |
| 168 | |
} else { |
| 169 | 0 | conditionalRender = progressiveRender; |
| 170 | |
} |
| 171 | 0 | getPropertyExpressions().put("render", conditionalRender); |
| 172 | |
|
| 173 | |
|
| 174 | |
|
| 175 | 0 | progressiveDisclosureControlNames = new ArrayList<String>(); |
| 176 | 0 | progressiveDisclosureConditionJs = ExpressionUtils.parseExpression(progressiveRender, |
| 177 | |
progressiveDisclosureControlNames); |
| 178 | |
} |
| 179 | |
|
| 180 | 0 | if (StringUtils.isNotEmpty(conditionalRefresh)) { |
| 181 | 0 | conditionalRefreshControlNames = new ArrayList<String>(); |
| 182 | 0 | conditionalRefreshConditionJs = ExpressionUtils.parseExpression(conditionalRefresh, |
| 183 | |
conditionalRefreshControlNames); |
| 184 | |
} |
| 185 | |
|
| 186 | 0 | if (StringUtils.isNotEmpty(refreshWhenChanged)) { |
| 187 | 0 | refreshWhenChangedControlNames = new ArrayList<String>(); |
| 188 | 0 | String[] names = StringUtils.split(refreshWhenChanged, ","); |
| 189 | 0 | for (String name : names) { |
| 190 | 0 | refreshWhenChangedControlNames.add(name.trim()); |
| 191 | |
} |
| 192 | |
} |
| 193 | 0 | } |
| 194 | |
|
| 195 | |
|
| 196 | |
|
| 197 | |
|
| 198 | |
|
| 199 | |
|
| 200 | |
|
| 201 | |
|
| 202 | |
public void performApplyModel(View view, Object model, Component parent) { |
| 203 | |
|
| 204 | 0 | } |
| 205 | |
|
| 206 | |
|
| 207 | |
|
| 208 | |
|
| 209 | |
|
| 210 | |
|
| 211 | |
|
| 212 | |
|
| 213 | |
|
| 214 | |
|
| 215 | |
|
| 216 | |
|
| 217 | |
|
| 218 | |
|
| 219 | |
|
| 220 | |
public void performFinalize(View view, Object model, Component parent) { |
| 221 | 0 | if (!ViewStatus.FINAL.equals(view.getViewStatus())) { |
| 222 | |
|
| 223 | 0 | if (StringUtils.isNotBlank(getAlign()) && !StringUtils.contains(getStyle(), CssConstants.TEXT_ALIGN)) { |
| 224 | 0 | appendToStyle(CssConstants.TEXT_ALIGN + getAlign() + ";"); |
| 225 | |
} |
| 226 | |
|
| 227 | 0 | if (StringUtils.isNotBlank(getValign()) && !StringUtils.contains(getStyle(), CssConstants.VERTICAL_ALIGN)) { |
| 228 | 0 | appendToStyle(CssConstants.VERTICAL_ALIGN + getValign() + ";"); |
| 229 | |
} |
| 230 | |
|
| 231 | 0 | if (StringUtils.isNotBlank(getWidth()) && !StringUtils.contains(getStyle(), CssConstants.WIDTH)) { |
| 232 | 0 | appendToStyle(CssConstants.WIDTH + getWidth() + ";"); |
| 233 | |
} |
| 234 | |
} |
| 235 | |
|
| 236 | |
|
| 237 | |
|
| 238 | 0 | for (Component component : getComponentsForLifecycle()) { |
| 239 | 0 | if (component != null && component instanceof ComponentBase && skipInTabOrder) { |
| 240 | 0 | ((ComponentBase) component).setSkipInTabOrder(skipInTabOrder); |
| 241 | 0 | if (component instanceof ControlBase) { |
| 242 | 0 | ((ControlBase) component).setTabIndex(-1); |
| 243 | |
} |
| 244 | |
} |
| 245 | |
} |
| 246 | |
|
| 247 | |
|
| 248 | |
|
| 249 | 0 | CollectionGroup collectionGroup = (CollectionGroup) (this.getContext().get( |
| 250 | |
UifConstants.ContextVariableNames.COLLECTION_GROUP)); |
| 251 | 0 | String linePath = ""; |
| 252 | 0 | if (collectionGroup != null) { |
| 253 | 0 | linePath = ComponentUtils.getLinePathValue(this); |
| 254 | |
|
| 255 | |
|
| 256 | 0 | if (StringUtils.isNotEmpty(progressiveRender) && StringUtils.isNotEmpty(linePath)) { |
| 257 | 0 | progressiveDisclosureConditionJs = ComponentUtils.replaceLineAttr(progressiveDisclosureConditionJs, |
| 258 | |
linePath); |
| 259 | 0 | ListIterator<String> listIterator = progressiveDisclosureControlNames.listIterator(); |
| 260 | 0 | while (listIterator.hasNext()) { |
| 261 | 0 | String name = listIterator.next(); |
| 262 | 0 | name = ComponentUtils.replaceLineAttr(name, linePath); |
| 263 | 0 | listIterator.set(name); |
| 264 | 0 | } |
| 265 | |
} |
| 266 | |
|
| 267 | |
|
| 268 | 0 | String conditionalRefresh = getPropertyExpression("refresh"); |
| 269 | 0 | if (StringUtils.isNotEmpty(conditionalRefresh) && StringUtils.isNotEmpty(linePath)) { |
| 270 | 0 | conditionalRefreshConditionJs = ComponentUtils.replaceLineAttr(conditionalRefreshConditionJs, linePath); |
| 271 | 0 | ListIterator<String> listIterator = conditionalRefreshControlNames.listIterator(); |
| 272 | 0 | while (listIterator.hasNext()) { |
| 273 | 0 | String name = listIterator.next(); |
| 274 | 0 | name = ComponentUtils.replaceLineAttr(name, linePath); |
| 275 | 0 | listIterator.set(name); |
| 276 | 0 | } |
| 277 | |
} |
| 278 | |
|
| 279 | 0 | if (StringUtils.isNotEmpty(refreshWhenChanged)) { |
| 280 | 0 | ListIterator<String> listIterator = refreshWhenChangedControlNames.listIterator(); |
| 281 | 0 | while (listIterator.hasNext()) { |
| 282 | 0 | String name = listIterator.next(); |
| 283 | 0 | name = ComponentUtils.replaceLineAttr(name, linePath); |
| 284 | 0 | listIterator.set(name); |
| 285 | 0 | } |
| 286 | |
} |
| 287 | |
} |
| 288 | 0 | } |
| 289 | |
|
| 290 | |
|
| 291 | |
|
| 292 | |
|
| 293 | |
public List<Component> getComponentsForLifecycle() { |
| 294 | 0 | List<Component> components = new ArrayList<Component>(); |
| 295 | |
|
| 296 | 0 | return components; |
| 297 | |
} |
| 298 | |
|
| 299 | |
|
| 300 | |
|
| 301 | |
|
| 302 | |
public List<Component> getComponentPrototypes() { |
| 303 | 0 | List<Component> components = new ArrayList<Component>(); |
| 304 | |
|
| 305 | 0 | for (ComponentModifier modifier : componentModifiers) { |
| 306 | 0 | components.addAll(modifier.getComponentPrototypes()); |
| 307 | |
} |
| 308 | |
|
| 309 | 0 | components.addAll(getPropertyReplacerComponents()); |
| 310 | |
|
| 311 | 0 | return components; |
| 312 | |
} |
| 313 | |
|
| 314 | |
|
| 315 | |
|
| 316 | |
|
| 317 | |
|
| 318 | |
|
| 319 | |
public List<Component> getPropertyReplacerComponents() { |
| 320 | 0 | List<Component> components = new ArrayList<Component>(); |
| 321 | 0 | for (Object replacer : propertyReplacers) { |
| 322 | 0 | components.addAll(((PropertyReplacer) replacer).getNestedComponents()); |
| 323 | |
} |
| 324 | |
|
| 325 | 0 | return components; |
| 326 | |
} |
| 327 | |
|
| 328 | |
|
| 329 | |
|
| 330 | |
|
| 331 | |
public String getId() { |
| 332 | 0 | return this.id; |
| 333 | |
} |
| 334 | |
|
| 335 | |
|
| 336 | |
|
| 337 | |
|
| 338 | |
public void setId(String id) { |
| 339 | 0 | this.id = id; |
| 340 | 0 | } |
| 341 | |
|
| 342 | |
|
| 343 | |
|
| 344 | |
|
| 345 | |
public String getFactoryId() { |
| 346 | 0 | return this.factoryId; |
| 347 | |
} |
| 348 | |
|
| 349 | |
|
| 350 | |
|
| 351 | |
|
| 352 | |
public void setFactoryId(String factoryId) { |
| 353 | 0 | this.factoryId = factoryId; |
| 354 | 0 | } |
| 355 | |
|
| 356 | |
|
| 357 | |
|
| 358 | |
|
| 359 | |
public String getTemplate() { |
| 360 | 0 | return this.template; |
| 361 | |
} |
| 362 | |
|
| 363 | |
|
| 364 | |
|
| 365 | |
|
| 366 | |
public void setTemplate(String template) { |
| 367 | 0 | this.template = template; |
| 368 | 0 | } |
| 369 | |
|
| 370 | |
|
| 371 | |
|
| 372 | |
|
| 373 | |
public String getTitle() { |
| 374 | 0 | return this.title; |
| 375 | |
} |
| 376 | |
|
| 377 | |
|
| 378 | |
|
| 379 | |
|
| 380 | |
public void setTitle(String title) { |
| 381 | 0 | this.title = title; |
| 382 | 0 | } |
| 383 | |
|
| 384 | |
|
| 385 | |
|
| 386 | |
|
| 387 | |
public boolean isHidden() { |
| 388 | 0 | return this.hidden; |
| 389 | |
} |
| 390 | |
|
| 391 | |
|
| 392 | |
|
| 393 | |
|
| 394 | |
public void setHidden(boolean hidden) { |
| 395 | 0 | this.hidden = hidden; |
| 396 | 0 | } |
| 397 | |
|
| 398 | |
|
| 399 | |
|
| 400 | |
|
| 401 | |
public boolean isReadOnly() { |
| 402 | 0 | return this.readOnly; |
| 403 | |
} |
| 404 | |
|
| 405 | |
|
| 406 | |
|
| 407 | |
|
| 408 | |
public void setReadOnly(boolean readOnly) { |
| 409 | 0 | this.readOnly = readOnly; |
| 410 | 0 | } |
| 411 | |
|
| 412 | |
|
| 413 | |
|
| 414 | |
|
| 415 | |
public Boolean getRequired() { |
| 416 | 0 | return this.required; |
| 417 | |
} |
| 418 | |
|
| 419 | |
|
| 420 | |
|
| 421 | |
|
| 422 | |
public void setRequired(Boolean required) { |
| 423 | 0 | this.required = required; |
| 424 | 0 | } |
| 425 | |
|
| 426 | |
|
| 427 | |
|
| 428 | |
|
| 429 | |
public boolean isRender() { |
| 430 | 0 | return this.render; |
| 431 | |
} |
| 432 | |
|
| 433 | |
|
| 434 | |
|
| 435 | |
|
| 436 | |
public void setRender(boolean render) { |
| 437 | 0 | this.render = render; |
| 438 | 0 | } |
| 439 | |
|
| 440 | |
|
| 441 | |
|
| 442 | |
|
| 443 | |
public int getColSpan() { |
| 444 | 0 | return this.colSpan; |
| 445 | |
} |
| 446 | |
|
| 447 | |
|
| 448 | |
|
| 449 | |
|
| 450 | |
public void setColSpan(int colSpan) { |
| 451 | 0 | this.colSpan = colSpan; |
| 452 | 0 | } |
| 453 | |
|
| 454 | |
|
| 455 | |
|
| 456 | |
|
| 457 | |
public int getRowSpan() { |
| 458 | 0 | return this.rowSpan; |
| 459 | |
} |
| 460 | |
|
| 461 | |
|
| 462 | |
|
| 463 | |
|
| 464 | |
public void setRowSpan(int rowSpan) { |
| 465 | 0 | this.rowSpan = rowSpan; |
| 466 | 0 | } |
| 467 | |
|
| 468 | |
|
| 469 | |
|
| 470 | |
|
| 471 | |
|
| 472 | |
|
| 473 | |
|
| 474 | |
|
| 475 | |
|
| 476 | |
|
| 477 | |
|
| 478 | |
|
| 479 | |
|
| 480 | |
public String getAlign() { |
| 481 | 0 | return this.align; |
| 482 | |
} |
| 483 | |
|
| 484 | |
|
| 485 | |
|
| 486 | |
|
| 487 | |
|
| 488 | |
|
| 489 | |
public void setAlign(String align) { |
| 490 | 0 | this.align = align; |
| 491 | 0 | } |
| 492 | |
|
| 493 | |
|
| 494 | |
|
| 495 | |
|
| 496 | |
|
| 497 | |
|
| 498 | |
|
| 499 | |
|
| 500 | |
|
| 501 | |
|
| 502 | |
|
| 503 | |
|
| 504 | |
|
| 505 | |
|
| 506 | |
public String getValign() { |
| 507 | 0 | return this.valign; |
| 508 | |
} |
| 509 | |
|
| 510 | |
|
| 511 | |
|
| 512 | |
|
| 513 | |
|
| 514 | |
|
| 515 | |
public void setValign(String valign) { |
| 516 | 0 | this.valign = valign; |
| 517 | 0 | } |
| 518 | |
|
| 519 | |
|
| 520 | |
|
| 521 | |
|
| 522 | |
|
| 523 | |
|
| 524 | |
|
| 525 | |
|
| 526 | |
|
| 527 | |
|
| 528 | |
|
| 529 | |
|
| 530 | |
|
| 531 | |
|
| 532 | |
|
| 533 | |
|
| 534 | |
public String getWidth() { |
| 535 | 0 | return this.width; |
| 536 | |
} |
| 537 | |
|
| 538 | |
|
| 539 | |
|
| 540 | |
|
| 541 | |
|
| 542 | |
|
| 543 | |
public void setWidth(String width) { |
| 544 | 0 | this.width = width; |
| 545 | 0 | } |
| 546 | |
|
| 547 | |
|
| 548 | |
|
| 549 | |
|
| 550 | |
public String getStyle() { |
| 551 | 0 | return this.style; |
| 552 | |
} |
| 553 | |
|
| 554 | |
|
| 555 | |
|
| 556 | |
|
| 557 | |
public void setStyle(String style) { |
| 558 | 0 | this.style = style; |
| 559 | 0 | } |
| 560 | |
|
| 561 | |
|
| 562 | |
|
| 563 | |
|
| 564 | |
public List<String> getStyleClasses() { |
| 565 | 0 | return this.styleClasses; |
| 566 | |
} |
| 567 | |
|
| 568 | |
|
| 569 | |
|
| 570 | |
|
| 571 | |
public void setStyleClasses(List<String> styleClasses) { |
| 572 | 0 | this.styleClasses = styleClasses; |
| 573 | 0 | } |
| 574 | |
|
| 575 | |
|
| 576 | |
|
| 577 | |
|
| 578 | |
|
| 579 | |
|
| 580 | |
|
| 581 | |
public String getStyleClassesAsString() { |
| 582 | 0 | if (styleClasses != null) { |
| 583 | 0 | return StringUtils.join(styleClasses, " "); |
| 584 | |
} |
| 585 | |
|
| 586 | 0 | return ""; |
| 587 | |
} |
| 588 | |
|
| 589 | |
|
| 590 | |
|
| 591 | |
|
| 592 | |
public void addStyleClass(String styleClass) { |
| 593 | 0 | if (!styleClasses.contains(styleClass)) { |
| 594 | 0 | styleClasses.add(styleClass); |
| 595 | |
} |
| 596 | 0 | } |
| 597 | |
|
| 598 | |
|
| 599 | |
|
| 600 | |
|
| 601 | |
public void appendToStyle(String styleRules) { |
| 602 | 0 | if (style == null) { |
| 603 | 0 | style = ""; |
| 604 | |
} |
| 605 | 0 | style = style + styleRules; |
| 606 | 0 | } |
| 607 | |
|
| 608 | |
|
| 609 | |
|
| 610 | |
|
| 611 | |
public String getFinalizeMethodToCall() { |
| 612 | 0 | return this.finalizeMethodToCall; |
| 613 | |
} |
| 614 | |
|
| 615 | |
|
| 616 | |
|
| 617 | |
|
| 618 | |
|
| 619 | |
|
| 620 | |
public void setFinalizeMethodToCall(String finalizeMethodToCall) { |
| 621 | 0 | this.finalizeMethodToCall = finalizeMethodToCall; |
| 622 | 0 | } |
| 623 | |
|
| 624 | |
|
| 625 | |
|
| 626 | |
|
| 627 | |
public List<Object> getFinalizeMethodAdditionalArguments() { |
| 628 | 0 | return finalizeMethodAdditionalArguments; |
| 629 | |
} |
| 630 | |
|
| 631 | |
|
| 632 | |
|
| 633 | |
|
| 634 | |
|
| 635 | |
|
| 636 | |
public void setFinalizeMethodAdditionalArguments(List<Object> finalizeMethodAdditionalArguments) { |
| 637 | 0 | this.finalizeMethodAdditionalArguments = finalizeMethodAdditionalArguments; |
| 638 | 0 | } |
| 639 | |
|
| 640 | |
|
| 641 | |
|
| 642 | |
|
| 643 | |
public MethodInvokerConfig getFinalizeMethodInvoker() { |
| 644 | 0 | return this.finalizeMethodInvoker; |
| 645 | |
} |
| 646 | |
|
| 647 | |
|
| 648 | |
|
| 649 | |
|
| 650 | |
|
| 651 | |
|
| 652 | |
public void setFinalizeMethodInvoker(MethodInvokerConfig finalizeMethodInvoker) { |
| 653 | 0 | this.finalizeMethodInvoker = finalizeMethodInvoker; |
| 654 | 0 | } |
| 655 | |
|
| 656 | |
|
| 657 | |
|
| 658 | |
|
| 659 | |
public boolean isSelfRendered() { |
| 660 | 0 | return this.selfRendered; |
| 661 | |
} |
| 662 | |
|
| 663 | |
|
| 664 | |
|
| 665 | |
|
| 666 | |
public void setSelfRendered(boolean selfRendered) { |
| 667 | 0 | this.selfRendered = selfRendered; |
| 668 | 0 | } |
| 669 | |
|
| 670 | |
|
| 671 | |
|
| 672 | |
|
| 673 | |
public String getRenderOutput() { |
| 674 | 0 | return this.renderOutput; |
| 675 | |
} |
| 676 | |
|
| 677 | |
|
| 678 | |
|
| 679 | |
|
| 680 | |
public void setRenderOutput(String renderOutput) { |
| 681 | 0 | this.renderOutput = renderOutput; |
| 682 | 0 | } |
| 683 | |
|
| 684 | |
|
| 685 | |
|
| 686 | |
|
| 687 | |
public List<ComponentModifier> getComponentModifiers() { |
| 688 | 0 | return this.componentModifiers; |
| 689 | |
} |
| 690 | |
|
| 691 | |
|
| 692 | |
|
| 693 | |
|
| 694 | |
public void setComponentModifiers(List<ComponentModifier> componentModifiers) { |
| 695 | 0 | this.componentModifiers = componentModifiers; |
| 696 | 0 | } |
| 697 | |
|
| 698 | |
|
| 699 | |
|
| 700 | |
|
| 701 | |
public Map<String, Object> getContext() { |
| 702 | 0 | return this.context; |
| 703 | |
} |
| 704 | |
|
| 705 | |
|
| 706 | |
|
| 707 | |
|
| 708 | |
public void setContext(Map<String, Object> context) { |
| 709 | 0 | this.context = context; |
| 710 | 0 | } |
| 711 | |
|
| 712 | |
|
| 713 | |
|
| 714 | |
|
| 715 | |
|
| 716 | |
public void pushObjectToContext(String objectName, Object object) { |
| 717 | 0 | if (this.context == null) { |
| 718 | 0 | this.context = new HashMap<String, Object>(); |
| 719 | |
} |
| 720 | 0 | pushToPropertyReplacerContext(objectName, object); |
| 721 | 0 | this.context.put(objectName, object); |
| 722 | 0 | } |
| 723 | |
|
| 724 | |
|
| 725 | |
|
| 726 | |
|
| 727 | |
|
| 728 | |
protected void pushToPropertyReplacerContext(String objectName, Object object) { |
| 729 | 0 | for (Component replacerComponent : getPropertyReplacerComponents()) { |
| 730 | 0 | replacerComponent.pushObjectToContext(objectName, object); |
| 731 | |
} |
| 732 | 0 | } |
| 733 | |
|
| 734 | |
|
| 735 | |
|
| 736 | |
|
| 737 | |
public void pushAllToContext(Map<String, Object> objects) { |
| 738 | 0 | if (objects != null) { |
| 739 | 0 | for (Map.Entry<String, Object> objectEntry : objects.entrySet()) { |
| 740 | 0 | pushObjectToContext(objectEntry.getKey(), objectEntry.getValue()); |
| 741 | |
} |
| 742 | |
} |
| 743 | 0 | } |
| 744 | |
|
| 745 | |
|
| 746 | |
|
| 747 | |
|
| 748 | |
public List<PropertyReplacer> getPropertyReplacers() { |
| 749 | 0 | return this.propertyReplacers; |
| 750 | |
} |
| 751 | |
|
| 752 | |
|
| 753 | |
|
| 754 | |
|
| 755 | |
public void setPropertyReplacers(List<PropertyReplacer> propertyReplacers) { |
| 756 | 0 | this.propertyReplacers = propertyReplacers; |
| 757 | 0 | } |
| 758 | |
|
| 759 | |
|
| 760 | |
|
| 761 | |
|
| 762 | |
public int getOrder() { |
| 763 | 0 | return this.order; |
| 764 | |
} |
| 765 | |
|
| 766 | |
|
| 767 | |
|
| 768 | |
|
| 769 | |
|
| 770 | |
|
| 771 | |
public void setOrder(int order) { |
| 772 | 0 | this.order = order; |
| 773 | 0 | } |
| 774 | |
|
| 775 | |
|
| 776 | |
|
| 777 | |
|
| 778 | |
public boolean getSupportsOnLoad() { |
| 779 | 0 | return false; |
| 780 | |
} |
| 781 | |
|
| 782 | |
|
| 783 | |
|
| 784 | |
|
| 785 | |
public String getOnLoadScript() { |
| 786 | 0 | return onLoadScript; |
| 787 | |
} |
| 788 | |
|
| 789 | |
|
| 790 | |
|
| 791 | |
|
| 792 | |
|
| 793 | |
|
| 794 | |
public void setOnLoadScript(String onLoadScript) { |
| 795 | 0 | this.onLoadScript = onLoadScript; |
| 796 | 0 | } |
| 797 | |
|
| 798 | |
|
| 799 | |
|
| 800 | |
|
| 801 | |
public boolean getSupportsOnDocumentReady() { |
| 802 | 0 | return true; |
| 803 | |
} |
| 804 | |
|
| 805 | |
|
| 806 | |
|
| 807 | |
|
| 808 | |
public String getOnDocumentReadyScript() { |
| 809 | 0 | return onDocumentReadyScript; |
| 810 | |
} |
| 811 | |
|
| 812 | |
|
| 813 | |
|
| 814 | |
|
| 815 | |
|
| 816 | |
|
| 817 | |
public void setOnDocumentReadyScript(String onDocumentReadyScript) { |
| 818 | 0 | this.onDocumentReadyScript = onDocumentReadyScript; |
| 819 | 0 | } |
| 820 | |
|
| 821 | |
|
| 822 | |
|
| 823 | |
|
| 824 | |
public boolean getSupportsOnUnload() { |
| 825 | 0 | return false; |
| 826 | |
} |
| 827 | |
|
| 828 | |
|
| 829 | |
|
| 830 | |
|
| 831 | |
public String getOnUnloadScript() { |
| 832 | 0 | return onUnloadScript; |
| 833 | |
} |
| 834 | |
|
| 835 | |
|
| 836 | |
|
| 837 | |
|
| 838 | |
|
| 839 | |
|
| 840 | |
public void setOnUnloadScript(String onUnloadScript) { |
| 841 | 0 | this.onUnloadScript = onUnloadScript; |
| 842 | 0 | } |
| 843 | |
|
| 844 | |
|
| 845 | |
|
| 846 | |
|
| 847 | |
public boolean getSupportsOnClose() { |
| 848 | 0 | return false; |
| 849 | |
} |
| 850 | |
|
| 851 | |
|
| 852 | |
|
| 853 | |
|
| 854 | |
public String getOnCloseScript() { |
| 855 | 0 | return onCloseScript; |
| 856 | |
} |
| 857 | |
|
| 858 | |
|
| 859 | |
|
| 860 | |
|
| 861 | |
|
| 862 | |
|
| 863 | |
public void setOnCloseScript(String onCloseScript) { |
| 864 | 0 | this.onCloseScript = onCloseScript; |
| 865 | 0 | } |
| 866 | |
|
| 867 | |
|
| 868 | |
|
| 869 | |
|
| 870 | |
public boolean getSupportsOnBlur() { |
| 871 | 0 | return false; |
| 872 | |
} |
| 873 | |
|
| 874 | |
|
| 875 | |
|
| 876 | |
|
| 877 | |
public String getOnBlurScript() { |
| 878 | 0 | return onBlurScript; |
| 879 | |
} |
| 880 | |
|
| 881 | |
|
| 882 | |
|
| 883 | |
|
| 884 | |
|
| 885 | |
|
| 886 | |
public void setOnBlurScript(String onBlurScript) { |
| 887 | 0 | this.onBlurScript = onBlurScript; |
| 888 | 0 | } |
| 889 | |
|
| 890 | |
|
| 891 | |
|
| 892 | |
|
| 893 | |
public boolean getSupportsOnChange() { |
| 894 | 0 | return false; |
| 895 | |
} |
| 896 | |
|
| 897 | |
|
| 898 | |
|
| 899 | |
|
| 900 | |
public String getOnChangeScript() { |
| 901 | 0 | return onChangeScript; |
| 902 | |
} |
| 903 | |
|
| 904 | |
|
| 905 | |
|
| 906 | |
|
| 907 | |
|
| 908 | |
|
| 909 | |
public void setOnChangeScript(String onChangeScript) { |
| 910 | 0 | this.onChangeScript = onChangeScript; |
| 911 | 0 | } |
| 912 | |
|
| 913 | |
|
| 914 | |
|
| 915 | |
|
| 916 | |
public boolean getSupportsOnClick() { |
| 917 | 0 | return false; |
| 918 | |
} |
| 919 | |
|
| 920 | |
|
| 921 | |
|
| 922 | |
|
| 923 | |
public String getOnClickScript() { |
| 924 | 0 | return onClickScript; |
| 925 | |
} |
| 926 | |
|
| 927 | |
|
| 928 | |
|
| 929 | |
|
| 930 | |
|
| 931 | |
|
| 932 | |
public void setOnClickScript(String onClickScript) { |
| 933 | 0 | this.onClickScript = onClickScript; |
| 934 | 0 | } |
| 935 | |
|
| 936 | |
|
| 937 | |
|
| 938 | |
|
| 939 | |
public boolean getSupportsOnDblClick() { |
| 940 | 0 | return false; |
| 941 | |
} |
| 942 | |
|
| 943 | |
|
| 944 | |
|
| 945 | |
|
| 946 | |
public String getOnDblClickScript() { |
| 947 | 0 | return onDblClickScript; |
| 948 | |
} |
| 949 | |
|
| 950 | |
|
| 951 | |
|
| 952 | |
|
| 953 | |
|
| 954 | |
|
| 955 | |
public void setOnDblClickScript(String onDblClickScript) { |
| 956 | 0 | this.onDblClickScript = onDblClickScript; |
| 957 | 0 | } |
| 958 | |
|
| 959 | |
|
| 960 | |
|
| 961 | |
|
| 962 | |
public boolean getSupportsOnFocus() { |
| 963 | 0 | return false; |
| 964 | |
} |
| 965 | |
|
| 966 | |
|
| 967 | |
|
| 968 | |
|
| 969 | |
public String getOnFocusScript() { |
| 970 | 0 | return onFocusScript; |
| 971 | |
} |
| 972 | |
|
| 973 | |
|
| 974 | |
|
| 975 | |
|
| 976 | |
|
| 977 | |
|
| 978 | |
public void setOnFocusScript(String onFocusScript) { |
| 979 | 0 | this.onFocusScript = onFocusScript; |
| 980 | 0 | } |
| 981 | |
|
| 982 | |
|
| 983 | |
|
| 984 | |
|
| 985 | |
public boolean getSupportsOnSubmit() { |
| 986 | 0 | return false; |
| 987 | |
} |
| 988 | |
|
| 989 | |
|
| 990 | |
|
| 991 | |
|
| 992 | |
public String getOnSubmitScript() { |
| 993 | 0 | return onSubmitScript; |
| 994 | |
} |
| 995 | |
|
| 996 | |
|
| 997 | |
|
| 998 | |
|
| 999 | |
|
| 1000 | |
|
| 1001 | |
public void setOnSubmitScript(String onSubmitScript) { |
| 1002 | 0 | this.onSubmitScript = onSubmitScript; |
| 1003 | 0 | } |
| 1004 | |
|
| 1005 | |
|
| 1006 | |
|
| 1007 | |
|
| 1008 | |
public boolean getSupportsOnKeyPress() { |
| 1009 | 0 | return false; |
| 1010 | |
} |
| 1011 | |
|
| 1012 | |
|
| 1013 | |
|
| 1014 | |
|
| 1015 | |
public String getOnKeyPressScript() { |
| 1016 | 0 | return onKeyPressScript; |
| 1017 | |
} |
| 1018 | |
|
| 1019 | |
|
| 1020 | |
|
| 1021 | |
|
| 1022 | |
|
| 1023 | |
|
| 1024 | |
public void setOnKeyPressScript(String onKeyPressScript) { |
| 1025 | 0 | this.onKeyPressScript = onKeyPressScript; |
| 1026 | 0 | } |
| 1027 | |
|
| 1028 | |
|
| 1029 | |
|
| 1030 | |
|
| 1031 | |
public boolean getSupportsOnKeyUp() { |
| 1032 | 0 | return false; |
| 1033 | |
} |
| 1034 | |
|
| 1035 | |
|
| 1036 | |
|
| 1037 | |
|
| 1038 | |
public String getOnKeyUpScript() { |
| 1039 | 0 | return onKeyUpScript; |
| 1040 | |
} |
| 1041 | |
|
| 1042 | |
|
| 1043 | |
|
| 1044 | |
|
| 1045 | |
|
| 1046 | |
|
| 1047 | |
public void setOnKeyUpScript(String onKeyUpScript) { |
| 1048 | 0 | this.onKeyUpScript = onKeyUpScript; |
| 1049 | 0 | } |
| 1050 | |
|
| 1051 | |
|
| 1052 | |
|
| 1053 | |
|
| 1054 | |
public boolean getSupportsOnKeyDown() { |
| 1055 | 0 | return false; |
| 1056 | |
} |
| 1057 | |
|
| 1058 | |
|
| 1059 | |
|
| 1060 | |
|
| 1061 | |
public String getOnKeyDownScript() { |
| 1062 | 0 | return onKeyDownScript; |
| 1063 | |
} |
| 1064 | |
|
| 1065 | |
|
| 1066 | |
|
| 1067 | |
|
| 1068 | |
|
| 1069 | |
|
| 1070 | |
public void setOnKeyDownScript(String onKeyDownScript) { |
| 1071 | 0 | this.onKeyDownScript = onKeyDownScript; |
| 1072 | 0 | } |
| 1073 | |
|
| 1074 | |
|
| 1075 | |
|
| 1076 | |
|
| 1077 | |
public boolean getSupportsOnMouseOver() { |
| 1078 | 0 | return false; |
| 1079 | |
} |
| 1080 | |
|
| 1081 | |
|
| 1082 | |
|
| 1083 | |
|
| 1084 | |
public String getOnMouseOverScript() { |
| 1085 | 0 | return onMouseOverScript; |
| 1086 | |
} |
| 1087 | |
|
| 1088 | |
|
| 1089 | |
|
| 1090 | |
|
| 1091 | |
|
| 1092 | |
|
| 1093 | |
public void setOnMouseOverScript(String onMouseOverScript) { |
| 1094 | 0 | this.onMouseOverScript = onMouseOverScript; |
| 1095 | 0 | } |
| 1096 | |
|
| 1097 | |
|
| 1098 | |
|
| 1099 | |
|
| 1100 | |
public boolean getSupportsOnMouseOut() { |
| 1101 | 0 | return false; |
| 1102 | |
} |
| 1103 | |
|
| 1104 | |
|
| 1105 | |
|
| 1106 | |
|
| 1107 | |
public String getOnMouseOutScript() { |
| 1108 | 0 | return onMouseOutScript; |
| 1109 | |
} |
| 1110 | |
|
| 1111 | |
|
| 1112 | |
|
| 1113 | |
|
| 1114 | |
|
| 1115 | |
|
| 1116 | |
public void setOnMouseOutScript(String onMouseOutScript) { |
| 1117 | 0 | this.onMouseOutScript = onMouseOutScript; |
| 1118 | 0 | } |
| 1119 | |
|
| 1120 | |
|
| 1121 | |
|
| 1122 | |
|
| 1123 | |
public boolean getSupportsOnMouseUp() { |
| 1124 | 0 | return false; |
| 1125 | |
} |
| 1126 | |
|
| 1127 | |
|
| 1128 | |
|
| 1129 | |
|
| 1130 | |
public String getOnMouseUpScript() { |
| 1131 | 0 | return onMouseUpScript; |
| 1132 | |
} |
| 1133 | |
|
| 1134 | |
|
| 1135 | |
|
| 1136 | |
|
| 1137 | |
|
| 1138 | |
|
| 1139 | |
public void setOnMouseUpScript(String onMouseUpScript) { |
| 1140 | 0 | this.onMouseUpScript = onMouseUpScript; |
| 1141 | 0 | } |
| 1142 | |
|
| 1143 | |
|
| 1144 | |
|
| 1145 | |
|
| 1146 | |
public boolean getSupportsOnMouseDown() { |
| 1147 | 0 | return false; |
| 1148 | |
} |
| 1149 | |
|
| 1150 | |
|
| 1151 | |
|
| 1152 | |
|
| 1153 | |
public String getOnMouseDownScript() { |
| 1154 | 0 | return onMouseDownScript; |
| 1155 | |
} |
| 1156 | |
|
| 1157 | |
|
| 1158 | |
|
| 1159 | |
|
| 1160 | |
|
| 1161 | |
|
| 1162 | |
public void setOnMouseDownScript(String onMouseDownScript) { |
| 1163 | 0 | this.onMouseDownScript = onMouseDownScript; |
| 1164 | 0 | } |
| 1165 | |
|
| 1166 | |
|
| 1167 | |
|
| 1168 | |
|
| 1169 | |
public boolean getSupportsOnMouseMove() { |
| 1170 | 0 | return false; |
| 1171 | |
} |
| 1172 | |
|
| 1173 | |
|
| 1174 | |
|
| 1175 | |
|
| 1176 | |
public String getOnMouseMoveScript() { |
| 1177 | 0 | return onMouseMoveScript; |
| 1178 | |
} |
| 1179 | |
|
| 1180 | |
|
| 1181 | |
|
| 1182 | |
|
| 1183 | |
|
| 1184 | |
|
| 1185 | |
public void setOnMouseMoveScript(String onMouseMoveScript) { |
| 1186 | 0 | this.onMouseMoveScript = onMouseMoveScript; |
| 1187 | 0 | } |
| 1188 | |
|
| 1189 | |
public Map<String, String> getComponentOptions() { |
| 1190 | 0 | if (componentOptions == null) { |
| 1191 | 0 | componentOptions = new HashMap<String, String>(); |
| 1192 | |
} |
| 1193 | 0 | return this.componentOptions; |
| 1194 | |
} |
| 1195 | |
|
| 1196 | |
public void setComponentOptions(Map<String, String> componentOptions) { |
| 1197 | 0 | this.componentOptions = componentOptions; |
| 1198 | 0 | } |
| 1199 | |
|
| 1200 | |
|
| 1201 | |
|
| 1202 | |
|
| 1203 | |
|
| 1204 | |
|
| 1205 | |
|
| 1206 | |
|
| 1207 | |
@Override |
| 1208 | |
public String getComponentOptionsJSString() { |
| 1209 | 0 | if (componentOptionsJSString != null) { |
| 1210 | 0 | return componentOptionsJSString; |
| 1211 | |
} |
| 1212 | |
|
| 1213 | 0 | if (componentOptions == null) { |
| 1214 | 0 | componentOptions = new HashMap<String, String>(); |
| 1215 | |
} |
| 1216 | 0 | StringBuilder sb = new StringBuilder(); |
| 1217 | |
|
| 1218 | 0 | sb.append("{"); |
| 1219 | |
|
| 1220 | 0 | for (String optionKey : componentOptions.keySet()) { |
| 1221 | 0 | String optionValue = componentOptions.get(optionKey); |
| 1222 | |
|
| 1223 | 0 | if (sb.length() > 1) { |
| 1224 | 0 | sb.append(","); |
| 1225 | |
} |
| 1226 | |
|
| 1227 | 0 | sb.append(optionKey); |
| 1228 | 0 | sb.append(":"); |
| 1229 | |
|
| 1230 | 0 | boolean isNumber = false; |
| 1231 | 0 | if (StringUtils.isNotBlank(optionValue) && (StringUtils.isNumeric(optionValue.trim().substring(0, 1)) |
| 1232 | |
|| optionValue.trim().substring(0, 1).equals("-"))) { |
| 1233 | |
try { |
| 1234 | 0 | Double.parseDouble(optionValue.trim()); |
| 1235 | 0 | isNumber = true; |
| 1236 | 0 | } catch (NumberFormatException e) { |
| 1237 | 0 | isNumber = false; |
| 1238 | 0 | } |
| 1239 | |
} |
| 1240 | |
|
| 1241 | |
|
| 1242 | 0 | if (StringUtils.startsWith(optionValue, "{") || StringUtils.startsWith(optionValue, "[")) { |
| 1243 | 0 | sb.append(optionValue); |
| 1244 | |
} |
| 1245 | |
|
| 1246 | |
|
| 1247 | 0 | else if (optionValue.equalsIgnoreCase("false") || optionValue.equalsIgnoreCase("true")) { |
| 1248 | 0 | sb.append(optionValue); |
| 1249 | |
} |
| 1250 | |
|
| 1251 | 0 | else if (StringUtils.startsWith(optionValue, "function") && StringUtils.endsWith(optionValue, "}")) { |
| 1252 | 0 | sb.append(optionValue); |
| 1253 | |
} |
| 1254 | |
|
| 1255 | 0 | else if (isNumber) { |
| 1256 | 0 | sb.append(optionValue); |
| 1257 | |
} else { |
| 1258 | 0 | sb.append("\"" + optionValue + "\""); |
| 1259 | |
} |
| 1260 | 0 | } |
| 1261 | |
|
| 1262 | 0 | sb.append("}"); |
| 1263 | |
|
| 1264 | 0 | return sb.toString(); |
| 1265 | |
} |
| 1266 | |
|
| 1267 | |
@Override |
| 1268 | |
public void setComponentOptionsJSString(String componentOptionsJSString) { |
| 1269 | 0 | this.componentOptionsJSString = componentOptionsJSString; |
| 1270 | 0 | } |
| 1271 | |
|
| 1272 | |
public String getEventCode() { |
| 1273 | 0 | String eventCode = ""; |
| 1274 | |
|
| 1275 | 0 | return eventCode; |
| 1276 | |
} |
| 1277 | |
|
| 1278 | |
|
| 1279 | |
|
| 1280 | |
|
| 1281 | |
|
| 1282 | |
|
| 1283 | |
|
| 1284 | |
|
| 1285 | |
|
| 1286 | |
|
| 1287 | |
|
| 1288 | |
|
| 1289 | |
|
| 1290 | |
|
| 1291 | |
|
| 1292 | |
|
| 1293 | |
|
| 1294 | |
|
| 1295 | |
|
| 1296 | |
|
| 1297 | |
|
| 1298 | |
public String getProgressiveRender() { |
| 1299 | 0 | return this.progressiveRender; |
| 1300 | |
} |
| 1301 | |
|
| 1302 | |
|
| 1303 | |
|
| 1304 | |
|
| 1305 | |
public void setProgressiveRender(String progressiveRender) { |
| 1306 | 0 | this.progressiveRender = progressiveRender; |
| 1307 | 0 | } |
| 1308 | |
|
| 1309 | |
|
| 1310 | |
|
| 1311 | |
|
| 1312 | |
|
| 1313 | |
|
| 1314 | |
|
| 1315 | |
|
| 1316 | |
|
| 1317 | |
|
| 1318 | |
|
| 1319 | |
|
| 1320 | |
|
| 1321 | |
|
| 1322 | |
|
| 1323 | |
|
| 1324 | |
|
| 1325 | |
|
| 1326 | |
public String getConditionalRefresh() { |
| 1327 | 0 | return this.conditionalRefresh; |
| 1328 | |
} |
| 1329 | |
|
| 1330 | |
|
| 1331 | |
|
| 1332 | |
|
| 1333 | |
public void setConditionalRefresh(String conditionalRefresh) { |
| 1334 | 0 | this.conditionalRefresh = conditionalRefresh; |
| 1335 | 0 | } |
| 1336 | |
|
| 1337 | |
|
| 1338 | |
|
| 1339 | |
|
| 1340 | |
|
| 1341 | |
|
| 1342 | |
|
| 1343 | |
public List<String> getProgressiveDisclosureControlNames() { |
| 1344 | 0 | return this.progressiveDisclosureControlNames; |
| 1345 | |
} |
| 1346 | |
|
| 1347 | |
|
| 1348 | |
|
| 1349 | |
|
| 1350 | |
|
| 1351 | |
|
| 1352 | |
|
| 1353 | |
public String getProgressiveDisclosureConditionJs() { |
| 1354 | 0 | return this.progressiveDisclosureConditionJs; |
| 1355 | |
} |
| 1356 | |
|
| 1357 | |
|
| 1358 | |
|
| 1359 | |
|
| 1360 | |
|
| 1361 | |
|
| 1362 | |
|
| 1363 | |
public String getConditionalRefreshConditionJs() { |
| 1364 | 0 | return this.conditionalRefreshConditionJs; |
| 1365 | |
} |
| 1366 | |
|
| 1367 | |
|
| 1368 | |
|
| 1369 | |
|
| 1370 | |
|
| 1371 | |
|
| 1372 | |
|
| 1373 | |
public List<String> getConditionalRefreshControlNames() { |
| 1374 | 0 | return this.conditionalRefreshControlNames; |
| 1375 | |
} |
| 1376 | |
|
| 1377 | |
|
| 1378 | |
|
| 1379 | |
|
| 1380 | |
|
| 1381 | |
|
| 1382 | |
|
| 1383 | |
|
| 1384 | |
|
| 1385 | |
|
| 1386 | |
|
| 1387 | |
public boolean isProgressiveRenderViaAJAX() { |
| 1388 | 0 | return this.progressiveRenderViaAJAX; |
| 1389 | |
} |
| 1390 | |
|
| 1391 | |
|
| 1392 | |
|
| 1393 | |
|
| 1394 | |
public void setProgressiveRenderViaAJAX(boolean progressiveRenderViaAJAX) { |
| 1395 | 0 | this.progressiveRenderViaAJAX = progressiveRenderViaAJAX; |
| 1396 | 0 | } |
| 1397 | |
|
| 1398 | |
|
| 1399 | |
|
| 1400 | |
|
| 1401 | |
|
| 1402 | |
|
| 1403 | |
|
| 1404 | |
|
| 1405 | |
|
| 1406 | |
|
| 1407 | |
|
| 1408 | |
public boolean isProgressiveRenderAndRefresh() { |
| 1409 | 0 | return this.progressiveRenderAndRefresh; |
| 1410 | |
} |
| 1411 | |
|
| 1412 | |
|
| 1413 | |
|
| 1414 | |
|
| 1415 | |
public void setProgressiveRenderAndRefresh(boolean progressiveRenderAndRefresh) { |
| 1416 | 0 | this.progressiveRenderAndRefresh = progressiveRenderAndRefresh; |
| 1417 | 0 | } |
| 1418 | |
|
| 1419 | |
|
| 1420 | |
|
| 1421 | |
|
| 1422 | |
|
| 1423 | |
|
| 1424 | |
|
| 1425 | |
|
| 1426 | |
|
| 1427 | |
|
| 1428 | |
|
| 1429 | |
public String getRefreshWhenChanged() { |
| 1430 | 0 | return this.refreshWhenChanged; |
| 1431 | |
} |
| 1432 | |
|
| 1433 | |
|
| 1434 | |
|
| 1435 | |
|
| 1436 | |
public void setRefreshWhenChanged(String refreshWhenChanged) { |
| 1437 | 0 | this.refreshWhenChanged = refreshWhenChanged; |
| 1438 | 0 | } |
| 1439 | |
|
| 1440 | |
|
| 1441 | |
|
| 1442 | |
|
| 1443 | |
|
| 1444 | |
|
| 1445 | |
|
| 1446 | |
public List<String> getRefreshWhenChangedControlNames() { |
| 1447 | 0 | return this.refreshWhenChangedControlNames; |
| 1448 | |
} |
| 1449 | |
|
| 1450 | |
|
| 1451 | |
|
| 1452 | |
|
| 1453 | |
public boolean isRefreshedByAction() { |
| 1454 | 0 | return refreshedByAction; |
| 1455 | |
} |
| 1456 | |
|
| 1457 | |
|
| 1458 | |
|
| 1459 | |
|
| 1460 | |
public void setRefreshedByAction(boolean refreshedByAction) { |
| 1461 | 0 | this.refreshedByAction = refreshedByAction; |
| 1462 | 0 | } |
| 1463 | |
|
| 1464 | |
|
| 1465 | |
|
| 1466 | |
|
| 1467 | |
public boolean isResetDataOnRefresh() { |
| 1468 | 0 | return resetDataOnRefresh; |
| 1469 | |
} |
| 1470 | |
|
| 1471 | |
|
| 1472 | |
|
| 1473 | |
|
| 1474 | |
public void setResetDataOnRefresh(boolean resetDataOnRefresh) { |
| 1475 | 0 | this.resetDataOnRefresh = resetDataOnRefresh; |
| 1476 | 0 | } |
| 1477 | |
|
| 1478 | |
|
| 1479 | |
|
| 1480 | |
|
| 1481 | |
public boolean isRefresh() { |
| 1482 | 0 | return this.refresh; |
| 1483 | |
} |
| 1484 | |
|
| 1485 | |
|
| 1486 | |
|
| 1487 | |
|
| 1488 | |
public void setRefresh(boolean refresh) { |
| 1489 | 0 | this.refresh = refresh; |
| 1490 | 0 | } |
| 1491 | |
|
| 1492 | |
|
| 1493 | |
|
| 1494 | |
|
| 1495 | |
|
| 1496 | |
|
| 1497 | |
|
| 1498 | |
|
| 1499 | |
|
| 1500 | |
|
| 1501 | |
|
| 1502 | |
|
| 1503 | |
|
| 1504 | |
|
| 1505 | |
|
| 1506 | |
|
| 1507 | |
|
| 1508 | |
public String getRefreshDiscloseMethodToCall() { |
| 1509 | 0 | return refreshDiscloseMethodToCall; |
| 1510 | |
} |
| 1511 | |
|
| 1512 | |
|
| 1513 | |
|
| 1514 | |
|
| 1515 | |
|
| 1516 | |
|
| 1517 | |
public void setRefreshDiscloseMethodToCall(String refreshDiscloseMethodToCall) { |
| 1518 | 0 | this.refreshDiscloseMethodToCall = refreshDiscloseMethodToCall; |
| 1519 | 0 | } |
| 1520 | |
|
| 1521 | |
|
| 1522 | |
|
| 1523 | |
|
| 1524 | |
public void setSkipInTabOrder(boolean skipInTabOrder) { |
| 1525 | 0 | this.skipInTabOrder = skipInTabOrder; |
| 1526 | 0 | } |
| 1527 | |
|
| 1528 | |
|
| 1529 | |
|
| 1530 | |
|
| 1531 | |
|
| 1532 | |
|
| 1533 | |
|
| 1534 | |
public boolean isSkipInTabOrder() { |
| 1535 | 0 | return skipInTabOrder; |
| 1536 | |
} |
| 1537 | |
|
| 1538 | |
} |