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.forms;
21:
22: /////////////////////////
23: //$Archive: /JADE/SourceCode/com/salmonllc/forms/ListInLineEditingFormListener.java $
24: //$Author: Dan $
25: //$Revision: 7 $
26: //$Modtime: 10/30/02 2:58p $
27: /////////////////////////
28: /**
29: * Encapsulates user-defined methods to call before and after key events in the
30: * Search/List pages.
31: */
32: public interface ListInLineEditingFormListener extends ListFormListener {
33: /**
34: * Called when an error is encountered.
35: * @return int If true, continue processing the event. Same convention as in
36: * ValueChangedEvent.valueChanged(), SubmitEvent.submitPerformed(), etc.
37: */
38: public boolean onListError(int code, String message,
39: com.salmonllc.html.HtmlComponent component, int row);
40:
41: /**
42: * Called after Delete button has been processed.
43: * @return boolean Currently undefined.
44: */
45: public boolean postListDelete() throws Exception;
46:
47: /**
48: * Called after pageRequested is processed.
49: * @return boolean Currently undefined.
50: */
51: public boolean postListRequest() throws Exception;
52:
53: /**
54: * Called after Save button is processed on ListInlineForm page.
55: * @return boolean Currently undefined.
56: */
57: public boolean postListSave() throws Exception;
58:
59: /**
60: * Called before Delete button is processed.
61: * @return boolean True if processing is to continue.
62: */
63: public boolean preListDelete() throws Exception;
64:
65: /**
66: * Called before pageRequested() is processed.
67: * @return boolean True if continue processing, else stop processing.
68: */
69: public boolean preListRequest() throws Exception;
70:
71: /**
72: * Called before Save button is processed on ListInlineForm page.
73: * @return boolean True if continue to save, else do not continue.
74: */
75: public boolean preListSave() throws Exception;
76: }
|