public void commit ( ) { if ( isBuffering ( ) ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Committing buffered value '" + getValue ( ) + "' to wrapped value model '" + wrappedModel + "'" ) ; } wrappedModel . setValueSilently ( getValueToCommit ( ) , wrappedModelChangeHandler ) ; setValue ( wrappedModel . getValue ( ) ) ; // check if the wrapped model changed the committed value } else { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "No buffered edit to commit; nothing to do..." ) ; } } }
Commits the value buffered by this value model back to the wrapped value model .