| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ActionField |
|
| 2.033333333333333;2.033 |
| 1 | /* | |
| 2 | * Copyright 2007 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 1.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.opensource.org/licenses/ecl1.php | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.kuali.rice.kns.uif.field; | |
| 17 | ||
| 18 | import java.util.HashMap; | |
| 19 | import java.util.Map; | |
| 20 | ||
| 21 | import org.apache.commons.lang.StringUtils; | |
| 22 | import org.kuali.rice.kns.uif.UifConstants; | |
| 23 | import org.kuali.rice.kns.uif.UifParameters; | |
| 24 | import org.kuali.rice.kns.uif.UifPropertyPaths; | |
| 25 | import org.kuali.rice.kns.uif.container.FormView; | |
| 26 | import org.kuali.rice.kns.uif.container.View; | |
| 27 | import org.kuali.rice.kns.uif.core.Component; | |
| 28 | import org.kuali.rice.kns.uif.widget.LightBox; | |
| 29 | import org.kuali.rice.kns.uif.widget.LightBoxLookup; | |
| 30 | ||
| 31 | /** | |
| 32 | * Field that presents an action that can be taken on the UI such as submitting | |
| 33 | * the form or invoking a script | |
| 34 | * | |
| 35 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 36 | */ | |
| 37 | public class ActionField extends FieldBase { | |
| 38 | private static final long serialVersionUID = 1025672792657238829L; | |
| 39 | ||
| 40 | private String methodToCall; | |
| 41 | private String navigateToPageId; | |
| 42 | ||
| 43 | private String clientSideJs; | |
| 44 | ||
| 45 | private String jumpToIdAfterSubmit; | |
| 46 | private String jumpToNameAfterSubmit; | |
| 47 | private String focusOnAfterSubmit; | |
| 48 | ||
| 49 | private String actionLabel; | |
| 50 | private ImageField actionImageField; | |
| 51 | ||
| 52 | private Map<String, String> actionParameters; | |
| 53 | ||
| 54 | private LightBoxLookup lightBoxLookup; | |
| 55 | ||
| 56 | private LightBox lightBox; | |
| 57 | ||
| 58 | private boolean blockValidateDirty; | |
| 59 | ||
| 60 | 0 | public ActionField() { |
| 61 | ||
| 62 | 0 | actionParameters = new HashMap<String, String>(); |
| 63 | 0 | } |
| 64 | ||
| 65 | /** | |
| 66 | * <p> | |
| 67 | * The following initialization is performed: | |
| 68 | * | |
| 69 | * <ul> | |
| 70 | * <li>Set the actionLabel if blank to the Field label</li> | |
| 71 | * </ul> | |
| 72 | * </p> | |
| 73 | * | |
| 74 | * @see org.kuali.rice.kns.uif.core.ComponentBase#performInitialization(org.kuali.rice.kns.uif.container.View) | |
| 75 | */ | |
| 76 | @Override | |
| 77 | public void performInitialization(View view) { | |
| 78 | 0 | super.performInitialization(view); |
| 79 | ||
| 80 | 0 | if (StringUtils.isBlank(actionLabel)) { |
| 81 | 0 | actionLabel = this.getLabel(); |
| 82 | } | |
| 83 | 0 | } |
| 84 | ||
| 85 | /** | |
| 86 | * <p> | |
| 87 | * The following finalization is performed: | |
| 88 | * | |
| 89 | * <ul> | |
| 90 | * <li>Add methodToCall action parameter if set and setup event code for | |
| 91 | * setting action parameters</li> | |
| 92 | * </ul> | |
| 93 | * </p> | |
| 94 | * | |
| 95 | * @see org.kuali.rice.kns.uif.core.ComponentBase#performFinalize(org.kuali.rice.kns.uif.container.View, | |
| 96 | * java.lang.Object, org.kuali.rice.kns.uif.core.Component) | |
| 97 | */ | |
| 98 | @Override | |
| 99 | public void performFinalize(View view, Object model, Component parent) { | |
| 100 | 0 | super.performFinalize(view, model, parent); |
| 101 | ||
| 102 | 0 | actionParameters.put(UifConstants.UrlParams.SHOW_HOME, "false"); |
| 103 | 0 | actionParameters.put(UifConstants.UrlParams.SHOW_HISTORY, "false"); |
| 104 | ||
| 105 | 0 | if (StringUtils.isNotBlank(navigateToPageId)) { |
| 106 | 0 | actionParameters.put(UifParameters.NAVIGATE_TO_PAGE_ID, navigateToPageId); |
| 107 | 0 | if (StringUtils.isBlank(methodToCall)) { |
| 108 | 0 | actionParameters.put(UifConstants.CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME, |
| 109 | UifConstants.MethodToCallNames.NAVIGATE); | |
| 110 | } | |
| 111 | } | |
| 112 | ||
| 113 | 0 | if (!actionParameters.containsKey(UifConstants.CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME) |
| 114 | && StringUtils.isNotBlank(methodToCall)) { | |
| 115 | 0 | actionParameters.put(UifConstants.CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME, methodToCall); |
| 116 | } | |
| 117 | ||
| 118 | // If there is no lightBox then create the on click script | |
| 119 | 0 | if (lightBoxLookup == null) { |
| 120 | 0 | String prefixScript = this.getOnClickScript(); |
| 121 | 0 | if (prefixScript == null) { |
| 122 | 0 | prefixScript = ""; |
| 123 | } | |
| 124 | ||
| 125 | 0 | boolean validateFormDirty = false; |
| 126 | 0 | if (view instanceof FormView && !isBlockValidateDirty()){ |
| 127 | 0 | validateFormDirty = ((FormView)view).isValidateDirty(); |
| 128 | } | |
| 129 | ||
| 130 | 0 | boolean includeDirtyCheckScript = false; |
| 131 | 0 | String writeParamsScript = ""; |
| 132 | 0 | if (!actionParameters.isEmpty()) { |
| 133 | 0 | for (String key : actionParameters.keySet()) { |
| 134 | 0 | String parameterPath = key; |
| 135 | 0 | if (!key.equals(UifConstants.CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME)) { |
| 136 | 0 | parameterPath = UifPropertyPaths.ACTION_PARAMETERS + "[" + key + "]"; |
| 137 | } | |
| 138 | ||
| 139 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('" + parameterPath + "' , '" |
| 140 | + actionParameters.get(key) + "'); "; | |
| 141 | ||
| 142 | //Include dirtycheck js function call if the method to call is refresh, navigate, cancel or close | |
| 143 | 0 | if (validateFormDirty && !includeDirtyCheckScript && key.equals(UifConstants.CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME)){ |
| 144 | 0 | String keyValue = (String)actionParameters.get(key); |
| 145 | 0 | if (StringUtils.equals(keyValue, UifConstants.MethodToCallNames.REFRESH) || |
| 146 | StringUtils.equals(keyValue, UifConstants.MethodToCallNames.NAVIGATE) || | |
| 147 | StringUtils.equals(keyValue, UifConstants.MethodToCallNames.CANCEL) || | |
| 148 | StringUtils.equals(keyValue, UifConstants.MethodToCallNames.CLOSE)){ | |
| 149 | 0 | includeDirtyCheckScript = true; |
| 150 | } | |
| 151 | } | |
| 152 | 0 | } |
| 153 | } | |
| 154 | ||
| 155 | //TODO possibly fix some other way - this is a workaround, prevents showing history and showing home again on actions which submit the form | |
| 156 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('" + UifConstants.UrlParams.SHOW_HISTORY + "', '" |
| 157 | + "false" + "'); "; | |
| 158 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('" + UifConstants.UrlParams.SHOW_HOME + "' , '" |
| 159 | + "false" + "'); "; | |
| 160 | ||
| 161 | 0 | if(StringUtils.isBlank(focusOnAfterSubmit)){ |
| 162 | //if this is blank focus this actionField by default | |
| 163 | 0 | focusOnAfterSubmit = this.getId(); |
| 164 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('focusId' , '" |
| 165 | + this.getId() + "'); "; | |
| 166 | } | |
| 167 | 0 | else if(!focusOnAfterSubmit.equalsIgnoreCase(UifConstants.Order.FIRST)){ |
| 168 | //Use the id passed in | |
| 169 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('focusId' , '" |
| 170 | + focusOnAfterSubmit + "'); "; | |
| 171 | } | |
| 172 | else{ | |
| 173 | //First input will be focused, must be first field set to empty string | |
| 174 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('focusId' , ''); "; |
| 175 | } | |
| 176 | ||
| 177 | 0 | if(StringUtils.isBlank(jumpToIdAfterSubmit) && StringUtils.isBlank(jumpToNameAfterSubmit)){ |
| 178 | 0 | jumpToIdAfterSubmit = this.getId(); |
| 179 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('jumpToId' , '" |
| 180 | + this.getId() + "'); "; | |
| 181 | } | |
| 182 | 0 | else if(StringUtils.isNotBlank(jumpToIdAfterSubmit)){ |
| 183 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('jumpToId' , '" |
| 184 | + jumpToIdAfterSubmit + "'); "; | |
| 185 | } | |
| 186 | else{ | |
| 187 | 0 | writeParamsScript = writeParamsScript + "writeHiddenToForm('jumpToName' , '" |
| 188 | + jumpToNameAfterSubmit + "'); "; | |
| 189 | } | |
| 190 | ||
| 191 | 0 | String postScript = ""; |
| 192 | 0 | if(StringUtils.isNotBlank(clientSideJs)){ |
| 193 | 0 | postScript = clientSideJs; |
| 194 | } | |
| 195 | else{ | |
| 196 | 0 | postScript = "jq('#kualiForm').submit();"; |
| 197 | } | |
| 198 | ||
| 199 | 0 | if (includeDirtyCheckScript){ |
| 200 | 0 | this.setOnClickScript("e.preventDefault(); if (checkDirty(e) == false) { " + prefixScript + writeParamsScript + postScript + " ; } "); |
| 201 | }else{ | |
| 202 | 0 | this.setOnClickScript("e.preventDefault();" + prefixScript + writeParamsScript + postScript); |
| 203 | } | |
| 204 | ||
| 205 | 0 | }else{ |
| 206 | // When there is a light box - don't add the on click script as it will be prevented from executing | |
| 207 | // Create a script map object which will be used to build the on click script | |
| 208 | // Could use eval() instead and just pass the script? | |
| 209 | 0 | StringBuffer sb = new StringBuffer(); |
| 210 | 0 | sb.append("{"); |
| 211 | 0 | for (String key : actionParameters.keySet()) { |
| 212 | 0 | String optionValue = actionParameters.get(key); |
| 213 | 0 | if (sb.length() > 1) { |
| 214 | 0 | sb.append(","); |
| 215 | } | |
| 216 | 0 | if (!key.equals(UifConstants.CONTROLLER_METHOD_DISPATCH_PARAMETER_NAME)) { |
| 217 | 0 | sb.append("\"" + UifPropertyPaths.ACTION_PARAMETERS + "[" + key + "]" + "\""); |
| 218 | }else{ | |
| 219 | 0 | sb.append("\"" + key + "\""); |
| 220 | } | |
| 221 | 0 | sb.append(":"); |
| 222 | 0 | sb.append("\"" + optionValue + "\""); |
| 223 | 0 | } |
| 224 | 0 | sb.append("}"); |
| 225 | 0 | lightBoxLookup.setActionParameterMapString(sb.toString()); |
| 226 | } | |
| 227 | 0 | } |
| 228 | ||
| 229 | /** | |
| 230 | * Name of the method that should be called when the action is selected | |
| 231 | * | |
| 232 | * <p> | |
| 233 | * For a server side call (clientSideCall is false), gives the name of the | |
| 234 | * method in the mapped controller that should be invoked when the action is | |
| 235 | * selected. For client side calls gives the name of the script function | |
| 236 | * that should be invoked when the action is selected | |
| 237 | * </p> | |
| 238 | * | |
| 239 | * @return String name of method to call | |
| 240 | */ | |
| 241 | public String getMethodToCall() { | |
| 242 | 0 | return this.methodToCall; |
| 243 | } | |
| 244 | ||
| 245 | /** | |
| 246 | * Setter for the actions method to call | |
| 247 | * | |
| 248 | * @param methodToCall | |
| 249 | */ | |
| 250 | public void setMethodToCall(String methodToCall) { | |
| 251 | 0 | this.methodToCall = methodToCall; |
| 252 | 0 | } |
| 253 | ||
| 254 | /** | |
| 255 | * Label text for the action | |
| 256 | * | |
| 257 | * <p> | |
| 258 | * The label text is used by the template renderers to give a human readable | |
| 259 | * label for the action. For buttons this generally is the button text, | |
| 260 | * while for an action link it would be the links displayed text | |
| 261 | * </p> | |
| 262 | * | |
| 263 | * @return String label for action | |
| 264 | */ | |
| 265 | public String getActionLabel() { | |
| 266 | 0 | return this.actionLabel; |
| 267 | } | |
| 268 | ||
| 269 | /** | |
| 270 | * Setter for the actions label | |
| 271 | * | |
| 272 | * @param actionLabel | |
| 273 | */ | |
| 274 | public void setActionLabel(String actionLabel) { | |
| 275 | 0 | this.actionLabel = actionLabel; |
| 276 | 0 | } |
| 277 | ||
| 278 | /** | |
| 279 | * Image to use for the action | |
| 280 | * | |
| 281 | * <p> | |
| 282 | * When the action image field is set (and render is true) the image will be | |
| 283 | * used to present the action as opposed to the default (input submit). For | |
| 284 | * action link templates the image is used for the link instead of the | |
| 285 | * action link text | |
| 286 | * </p> | |
| 287 | * | |
| 288 | * @return ImageField action image | |
| 289 | */ | |
| 290 | public ImageField getActionImageField() { | |
| 291 | 0 | return this.actionImageField; |
| 292 | } | |
| 293 | ||
| 294 | /** | |
| 295 | * Setter for the action image field | |
| 296 | * | |
| 297 | * @param actionImageField | |
| 298 | */ | |
| 299 | public void setActionImageField(ImageField actionImageField) { | |
| 300 | 0 | this.actionImageField = actionImageField; |
| 301 | 0 | } |
| 302 | ||
| 303 | /** | |
| 304 | * For an <code>ActionField</code> that is part of a | |
| 305 | * <code>NavigationGroup</code, the navigate to page id can be set to | |
| 306 | * configure the page that should be navigated to when the action is | |
| 307 | * selected | |
| 308 | * | |
| 309 | * <p> | |
| 310 | * Support exists in the <code>UifControllerBase</code> for handling | |
| 311 | * navigation between pages | |
| 312 | * </p> | |
| 313 | * | |
| 314 | * @return String id of page that should be rendered when the action item is | |
| 315 | * selected | |
| 316 | */ | |
| 317 | public String getNavigateToPageId() { | |
| 318 | 0 | return this.navigateToPageId; |
| 319 | } | |
| 320 | ||
| 321 | /** | |
| 322 | * Setter for the navigate to page id | |
| 323 | * | |
| 324 | * @param navigateToPageId | |
| 325 | */ | |
| 326 | public void setNavigateToPageId(String navigateToPageId) { | |
| 327 | 0 | this.navigateToPageId = navigateToPageId; |
| 328 | 0 | actionParameters.put(UifParameters.NAVIGATE_TO_PAGE_ID, navigateToPageId); |
| 329 | 0 | this.methodToCall = UifConstants.MethodToCallNames.NAVIGATE; |
| 330 | 0 | } |
| 331 | ||
| 332 | /** | |
| 333 | * Parameters that should be sent when the action is invoked | |
| 334 | * | |
| 335 | * <p> | |
| 336 | * Action renderer will decide how the parameters are sent for the action | |
| 337 | * (via script generated hiddens, or script parameters, ...) | |
| 338 | * </p> | |
| 339 | * | |
| 340 | * <p> | |
| 341 | * Can be set by other components such as the <code>CollectionGroup</code> | |
| 342 | * to provide the context the action is in (such as the collection name and | |
| 343 | * line the action applies to) | |
| 344 | * </p> | |
| 345 | * | |
| 346 | * @return Map<String, String> action parameters | |
| 347 | */ | |
| 348 | public Map<String, String> getActionParameters() { | |
| 349 | 0 | return this.actionParameters; |
| 350 | } | |
| 351 | ||
| 352 | /** | |
| 353 | * Setter for the action parameters | |
| 354 | * | |
| 355 | * @param actionParameters | |
| 356 | */ | |
| 357 | public void setActionParameters(Map<String, String> actionParameters) { | |
| 358 | 0 | this.actionParameters = actionParameters; |
| 359 | 0 | } |
| 360 | ||
| 361 | /** | |
| 362 | * Convenience method to add a parameter to the action parameters Map | |
| 363 | * | |
| 364 | * @param parameterName | |
| 365 | * - name of parameter to add | |
| 366 | * @param parameterValue | |
| 367 | * - value of parameter to add | |
| 368 | */ | |
| 369 | public void addActionParameter(String parameterName, String parameterValue) { | |
| 370 | 0 | if (actionParameters == null) { |
| 371 | 0 | this.actionParameters = new HashMap<String, String>(); |
| 372 | } | |
| 373 | ||
| 374 | 0 | this.actionParameters.put(parameterName, parameterValue); |
| 375 | 0 | } |
| 376 | ||
| 377 | /** | |
| 378 | * Get an actionParameter by name | |
| 379 | */ | |
| 380 | public String getActionParameter(String parameterName) { | |
| 381 | ||
| 382 | 0 | return this.actionParameters.get(parameterName); |
| 383 | } | |
| 384 | ||
| 385 | /** | |
| 386 | * @see org.kuali.rice.kns.uif.core.ComponentBase#getSupportsOnClick() | |
| 387 | */ | |
| 388 | @Override | |
| 389 | public boolean getSupportsOnClick() { | |
| 390 | 0 | return true; |
| 391 | } | |
| 392 | ||
| 393 | /** | |
| 394 | * @param lightBox the lightBox to set | |
| 395 | */ | |
| 396 | public void setLightBoxLookup(LightBoxLookup lightBoxLookup) { | |
| 397 | 0 | this.lightBoxLookup = lightBoxLookup; |
| 398 | 0 | } |
| 399 | ||
| 400 | /** | |
| 401 | * @return the lightBox | |
| 402 | */ | |
| 403 | public LightBoxLookup getLightBoxLookup() { | |
| 404 | 0 | return lightBoxLookup; |
| 405 | } | |
| 406 | ||
| 407 | /** | |
| 408 | * @return the jumpToIdAfterSubmit | |
| 409 | */ | |
| 410 | public String getJumpToIdAfterSubmit() { | |
| 411 | 0 | return this.jumpToIdAfterSubmit; |
| 412 | } | |
| 413 | ||
| 414 | /** | |
| 415 | * The id to jump to in the next page, the element with this id will be jumped to automatically | |
| 416 | * when the new page is retrieved after a submit. | |
| 417 | * Using "TOP" or "BOTTOM" will jump to the top or the bottom of the resulting page. | |
| 418 | * Passing in nothing for both jumpToIdAfterSubmit and jumpToNameAfterSubmit will result in this | |
| 419 | * ActionField being jumped to by default if it is present on the new page. | |
| 420 | * WARNING: jumpToIdAfterSubmit always takes precedence over jumpToNameAfterSubmit, if set. | |
| 421 | * @param jumpToIdAfterSubmit the jumpToIdAfterSubmit to set | |
| 422 | */ | |
| 423 | public void setJumpToIdAfterSubmit(String jumpToIdAfterSubmit) { | |
| 424 | 0 | this.jumpToIdAfterSubmit = jumpToIdAfterSubmit; |
| 425 | 0 | } |
| 426 | ||
| 427 | /** | |
| 428 | * The name to jump to in the next page, the element with this name will be jumped to automatically | |
| 429 | * when the new page is retrieved after a submit. | |
| 430 | * Passing in nothing for both jumpToIdAfterSubmit and jumpToNameAfterSubmit will result in this | |
| 431 | * ActionField being jumped to by default if it is present on the new page. | |
| 432 | * WARNING: jumpToIdAfterSubmit always takes precedence over jumpToNameAfterSubmit, if set. | |
| 433 | * @return the jumpToNameAfterSubmit | |
| 434 | */ | |
| 435 | public String getJumpToNameAfterSubmit() { | |
| 436 | 0 | return this.jumpToNameAfterSubmit; |
| 437 | } | |
| 438 | ||
| 439 | /** | |
| 440 | * @param jumpToNameAfterSubmit the jumpToNameAfterSubmit to set | |
| 441 | */ | |
| 442 | public void setJumpToNameAfterSubmit(String jumpToNameAfterSubmit) { | |
| 443 | 0 | this.jumpToNameAfterSubmit = jumpToNameAfterSubmit; |
| 444 | 0 | } |
| 445 | ||
| 446 | /** | |
| 447 | * The id of the field to place focus on in the new page after the new page is retrieved. | |
| 448 | * Passing in "FIRST" will focus on the first visible input element on the form. | |
| 449 | * Passing in the empty string will result in this ActionField being focused. | |
| 450 | * @return the focusOnAfterSubmit | |
| 451 | */ | |
| 452 | public String getFocusOnAfterSubmit() { | |
| 453 | 0 | return this.focusOnAfterSubmit; |
| 454 | } | |
| 455 | ||
| 456 | /** | |
| 457 | * @param focusOnAfterSubmit the focusOnAfterSubmit to set | |
| 458 | */ | |
| 459 | public void setFocusOnAfterSubmit(String focusOnAfterSubmit) { | |
| 460 | 0 | this.focusOnAfterSubmit = focusOnAfterSubmit; |
| 461 | 0 | } |
| 462 | ||
| 463 | /** | |
| 464 | * Client side javascript to be executed when this actionField is clicked. This overrides | |
| 465 | * the default action for this ActionField so the method called must explicitly submit, navigate, | |
| 466 | * etc. through js, if necessary. In addition, this js occurs AFTER onClickScripts set on this field, | |
| 467 | * it will be the last script executed by the click event. | |
| 468 | * Sidenote: This js is always called after hidden actionParameters and methodToCall methods | |
| 469 | * are written by the js to the html form. | |
| 470 | * @return the clientSideJs | |
| 471 | */ | |
| 472 | public String getClientSideJs() { | |
| 473 | 0 | return this.clientSideJs; |
| 474 | } | |
| 475 | ||
| 476 | /** | |
| 477 | * @param clientSideJs the clientSideJs to set | |
| 478 | */ | |
| 479 | public void setClientSideJs(String clientSideJs) { | |
| 480 | 0 | if(!StringUtils.endsWith(clientSideJs, ";")){ |
| 481 | 0 | clientSideJs = clientSideJs + ";"; |
| 482 | } | |
| 483 | 0 | this.clientSideJs = clientSideJs; |
| 484 | 0 | } |
| 485 | ||
| 486 | /** | |
| 487 | * @param lightBox the lightBox to set | |
| 488 | */ | |
| 489 | public void setLightBox(LightBox lightBox) { | |
| 490 | 0 | this.lightBox = lightBox; |
| 491 | 0 | } |
| 492 | ||
| 493 | /** | |
| 494 | * @return the lightBox | |
| 495 | */ | |
| 496 | public LightBox getLightBox() { | |
| 497 | 0 | return lightBox; |
| 498 | } | |
| 499 | ||
| 500 | /** | |
| 501 | * @param blockValidateDirty the blockValidateDirty to set | |
| 502 | */ | |
| 503 | public void setBlockValidateDirty(boolean blockValidateDirty) { | |
| 504 | 0 | this.blockValidateDirty = blockValidateDirty; |
| 505 | 0 | } |
| 506 | ||
| 507 | /** | |
| 508 | * @return the blockValidateDirty | |
| 509 | */ | |
| 510 | public boolean isBlockValidateDirty() { | |
| 511 | 0 | return blockValidateDirty; |
| 512 | } | |
| 513 | ||
| 514 | ||
| 515 | ||
| 516 | } |