01: //** Copyright Statement ***************************************************
02: //The Salmon Open Framework for Internet Applications (SOFIA)
03: // Copyright (C) 1999 - 2002, Salmon LLC
04: //
05: // This program is free software; you can redistribute it and/or
06: // modify it under the terms of the GNU General Public License version 2
07: // as published by the Free Software Foundation;
08: //
09: // This program is distributed in the hope that it will be useful,
10: // but WITHOUT ANY WARRANTY; without even the implied warranty of
11: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: // GNU General Public License for more details.
13: //
14: // You should have received a copy of the GNU General Public License
15: // along with this program; if not, write to the Free Software
16: // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: //
18: // For more information please visit http://www.salmonllc.com
19: //** End Copyright Statement ***************************************************
20: package com.salmonllc.html.events;
21:
22: /////////////////////////
23: //$Archive: /JADE/SourceCode/com/salmonllc/html/events/PageListener.java $
24: //$Author: Dan $
25: //$Revision: 9 $
26: //$Modtime: 10/30/02 2:40p $
27: /////////////////////////
28:
29: /**
30: * This interface must be implemented by every class that will listen to page events.
31: */
32: public interface PageListener extends java.util.EventListener {
33: /**
34: * This event will get fired each time a page is requested by the browser before any HTML is generated.
35: */
36: void pageRequested(PageEvent p) throws Exception;
37:
38: /**
39: * This event will get fired each time a page is requested by the browser after any HTML is generated.
40: */
41: void pageRequestEnd(PageEvent p) throws Exception;
42:
43: /**
44: * This method occurs each time a page is submitted before values are copied from the HTML form to the framework component representing input fields.
45: */
46: void pageSubmitEnd(PageEvent p);
47:
48: /**
49: * This method occurs each time a page is submitted after all the values submitted from the HTML form are copied to framework components representing them.
50: */
51: void pageSubmitted(PageEvent p);
52: }
|