org.valkyriercp.binding.value.DirtyTrackingValueModel Maven / Gradle / Ivy
package org.valkyriercp.binding.value;
import org.valkyriercp.core.PropertyChangePublisher;
/**
* Adds the dirty
aspect to a valueModel, tracking changes when needed.
*/
public interface DirtyTrackingValueModel extends ValueModel, PropertyChangePublisher
{
/** The name of the bound property dirty. */
String DIRTY_PROPERTY = "dirty";
/**
* 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.
*/
boolean isDirty();
/**
* Resets the dirty state of this model to false
.
*/
void clearDirty();
/**
* 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.
*/
void revertToOriginal();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy