View Javadoc
1   /*
2    * $Header: /cvsroot/sinon/sinon/src/java/eteg/sinon/listener/PageStateListener.java,v 1.3 2005/07/18 14:18:35 thiagohp Exp $
3    * $Revision: 1.3 $
4    * $Date: 2005/07/18 14:18:35 $
5    * $Author: thiagohp $
6    *
7    * =============================================================================
8    *
9    * Copyright 2004-2005 Eteg Internet Ltda. (http://www.eteg.com.br)
10   *
11   * Licensed under the Apache License, Version 2.0 (the "License");
12   * you may not use this file except in compliance with the License.
13   * You may obtain a copy of the License at
14   *
15   *     http://www.apache.org/licenses/LICENSE-2.0
16   *
17   * Unless required by applicable law or agreed to in writing, software
18   * distributed under the License is distributed on an "AS IS" BASIS,
19   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20   * See the License for the specific language governing permissions and
21   * limitations under the License.
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  }