01: /*
02: * Copyright 2005 jWic group (http://www.jwic.de)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: *
16: * de.jwic.base.IActionController
17: * Created on 30.10.2004
18: * $Id: IActionController.java,v 1.1 2006/01/16 08:30:40 lordsam Exp $
19: */
20: package de.jwic.base;
21:
22: import de.jwic.upload.UploadFile;
23:
24: /**
25: * The ActionController maps actions recieved by a client to the corrosponding controls.
26: *
27: * @author Florian Lippisch
28: * @version $Revision: 1.1 $
29: */
30: public interface IActionController {
31:
32: /**
33: * Handle a field by storing the value at the corrosponding control.
34: * @param sc
35: * @param fieldname
36: * @param value
37: */
38: public void handleField(SessionContext sc, ValueChangedQueue queue,
39: String fieldname, String[] values);
40:
41: /**
42: * Handle a file by storing the UploadFile object at the corrosponding control.
43: * @param sc
44: * @param fieldname
45: * @param file
46: */
47: public void handleFile(SessionContext sc, String fieldname,
48: UploadFile file);
49:
50: /**
51: * Notify the corrosponding control that a link was clicked the control has created.
52: * @param sc
53: * @param action
54: * @param param
55: */
56: public void handleAction(SessionContext sc, String ctrlId,
57: String action, String param);
58:
59: }
|