| | 225 | /** |
| | 226 | * Controls the making validation visible implicitly on commit. |
| | 227 | * |
| | 228 | * Having commit() call setValidationVisible(true) implicitly is the default |
| | 229 | * behaviour. You can disable the implicit setting by setting this property |
| | 230 | * as false. |
| | 231 | * |
| | 232 | * It is useful, because you usually want to start with the form free of |
| | 233 | * errors and only display them after the user clicks Ok. You can disable |
| | 234 | * the implicit setting by setting this property as false. |
| | 235 | * |
| | 236 | * @param makeVisible |
| | 237 | * If true (default), validation is made visible when commit() is |
| | 238 | * called. If false, the visibility is left as it is. |
| | 239 | */ |
| | 240 | public void setValidationVisibleOnCommit(boolean makeVisible) { |
| | 241 | validationVisibleOnCommit = makeVisible; |
| | 242 | } |
| | 243 | |
| | 244 | /** |
| | 245 | * Is validation made automatically visible on commit? |
| | 246 | * |
| | 247 | * See setValidationVisibleOnCommit(). |
| | 248 | * |
| | 249 | * @return true if validation is made automatically visible on commit. |
| | 250 | */ |
| | 251 | public boolean isValidationVisibleOnCommit() { |
| | 252 | return validationVisibleOnCommit; |
| | 253 | } |
| | 254 | |