1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package eteg.sinon.listener;
24
25 import eteg.sinon.core.Page;
26 import eteg.sinon.executor.CollectorExecutor;
27 import eteg.sinon.executor.PageState;
28
29 /***
30 * Interface implemented by classes that receive page state notifications.
31 * Implementations of this interface must have a public, static method
32 * named <code>getInstance</code> that returns an instance of the class.
33 *
34 * @author <a href="mailto:thiagohp at users.sourceforge.net">Thiago H. de Paula Figueiredo</a>
35 * @author Last modified by $Author: thiagohp $
36 * @version $Revision: 1.3 $
37 */
38 public interface PageStateListener {
39
40 /***
41 * Invoked when the state of a listened page changes.
42 *
43 * @param page the {@link Page} which had its state changed.
44 * @param state the new {@link PageState}.
45 * @param catalogStateListener the current {@link CatalogStateListener}.
46 * @param executor the {@link CollectorExecutor} being executed.
47 */
48 public void onStateChange(Page page,
49 PageState state,
50 CatalogStateListener catalogStateListener,
51 CollectorExecutor executor);
52
53 }