1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.model;
|
11
|
|
12
|
|
13
|
/**
|
14
|
* Interface for handling the current "dirty" state of an object. An object is
|
15
|
* dirty when changes are done but not saved/persisted yet.
|
16
|
*
|
17
|
* @author n.hoffmann
|
18
|
* @created Mar 8, 2010
|
19
|
* @version 1.0
|
20
|
*/
|
21
|
public interface IDirtyMarkable {
|
22
|
|
23
|
/**
|
24
|
* Sets the implementor to the "dirty" state specifying the object that was changed.
|
25
|
*
|
26
|
* @param element the element that was changed causing the "dirty" state.
|
27
|
*/
|
28
|
public abstract void changed(Object element);
|
29
|
|
30
|
/**
|
31
|
* Forces the implementing class to be set to the "dirty" state.
|
32
|
*/
|
33
|
public abstract void forceDirty();
|
34
|
}
|