org.springframework.binding.value.support
Interface DirtyTrackingValueModel

Show UML class diagram
All Superinterfaces:
PropertyChangePublisher, ValueModel
All Known Implementing Classes:
FormModelMediatingValueModel

public interface DirtyTrackingValueModel
extends ValueModel, PropertyChangePublisher

Adds the dirty aspect to a valueModel, tracking changes when needed.


Field Summary
static String DIRTY_PROPERTY
          The name of the bound property dirty.
 
Fields inherited from interface org.springframework.binding.value.ValueModel
VALUE_PROPERTY
 
Method Summary
 void clearDirty()
          Resets the dirty state of this model to false.
 boolean isDirty()
          Returns true if value held by this model has changed since the last call to reset or the last time a value came up from the inner model.
 void revertToOriginal()
          Reverts the value held by this model to the original value at the last call to reset or the last time a value came up from the inner model.
 
Methods inherited from interface org.springframework.binding.value.ValueModel
addValueChangeListener, getValue, removeValueChangeListener, setValue, setValueSilently
 
Methods inherited from interface org.springframework.binding.value.PropertyChangePublisher
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

DIRTY_PROPERTY

static final String DIRTY_PROPERTY
The name of the bound property dirty.

See Also:
Constant Field Values
Method Detail

isDirty

boolean isDirty()
Returns true if value held by this model has changed since the last call to reset or the last time a value came up from the inner model.


clearDirty

void clearDirty()
Resets the dirty state of this model to false.


revertToOriginal

void revertToOriginal()
Reverts the value held by this model to the original value at the last call to reset or the last time a value came up from the inner model.



Copyright © 2004-2009 The Spring Framework. All Rights Reserved.