8 changed files with 82 additions and 79 deletions
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
package org.springframework.ui.binding; |
||||
|
||||
/** |
||||
* Binding states. |
||||
* @author Keith Donald |
||||
*/ |
||||
public enum BindingStatus { |
||||
|
||||
/** |
||||
* Initial state: No value is buffered, and there is a direct channel to the model value. |
||||
*/ |
||||
CLEAN, |
||||
|
||||
/** |
||||
* An invalid source value is applied. |
||||
*/ |
||||
INVALID_SOURCE_VALUE, |
||||
|
||||
/** |
||||
* The binding buffer contains a valid value that has not been committed. |
||||
*/ |
||||
DIRTY, |
||||
|
||||
/** |
||||
* The buffered value has been committed. |
||||
*/ |
||||
COMMITTED, |
||||
|
||||
/** |
||||
* The buffered value failed to commit. |
||||
*/ |
||||
COMMIT_FAILURE |
||||
} |
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
package org.springframework.ui.binding; |
||||
|
||||
/** |
||||
* Validation states. |
||||
* @author Keith Donald |
||||
*/ |
||||
public enum ValidationStatus { |
||||
|
||||
/** |
||||
* Initial state: No validation has run. |
||||
*/ |
||||
NOT_VALIDATED, |
||||
|
||||
/** |
||||
* Validation has succeeded. |
||||
*/ |
||||
VALID, |
||||
|
||||
/** |
||||
* Validation has failed. |
||||
*/ |
||||
INVALID |
||||
} |
Loading…
Reference in new issue