1 /*
2 * This file is a part of CAST project.
3 * (c) Copyright 2007, AGH University of Science & Technology
4 * https://caribou.iisg.agh.edu.pl/trac/cast
5 *
6 * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 * http://www.eclipse.org/legal/epl-v10.html
10 */
11 /*
12 * File: IRawDataObserver.java
13 * Created: 2008-10-09
14 * Author: kpietak
15 * $Id: IRawDataObserver.java 2308 2009-01-12 22:33:45Z kpietak $
16 */
17
18 package pl.edu.agh.cast.rawdata.logging;
19
20 import pl.edu.agh.cast.rawdata.DataRow;
21
22 /**
23 * Observer interface for raw data monitors.
24 *
25 * @author AGH CAST Team
26 */
27 public interface IRawDataObserver {
28
29 /**
30 * Notifies when row is removed.
31 *
32 * @param row
33 * row which is removed
34 */
35 public void notifyRemoved(DataRow row);
36
37 /**
38 * Notifies when row is restored.
39 *
40 * @param row
41 * row which is restored
42 */
43 public void notifyRestored(DataRow row);
44
45 /**
46 * Notifies when new value is set in specified row.
47 *
48 * @param row
49 * row which is edited
50 * @param oldValue
51 * old value
52 * @param newValue
53 * new value
54 */
55 public void notifyValueChanged(DataRow row, String oldValue, String newValue);
56
57 }