1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Defines an interface implemented by classes capable of handling
17 external parameters."""
18
19 from muntjac.terminal.terminal import IErrorEvent as ITerminalErrorEvent
20
21
23 """C{IParameterHandler} is implemented by classes capable of handling
24 external parameters.
25
26 What parameters are provided depend on what the L{Terminal} provides
27 and if the application is deployed as a servlet. URL GET
28 parameters are typically provided to the L{handleParameters}
29 method.
30
31 A C{IParameterHandler} must be registered to a C{Window} using
32 L{Window.addParameterHandler} to be called when parameters are available.
33
34 @author: Vaadin Ltd.
35 @author: Richard Lincoln
36 @version: 1.1.2
37 """
38
40 """Handles the given parameters. All parameters names are of type
41 string and the values are string arrays.
42
43 @param parameters:
44 an unmodifiable map which contains the parameter names
45 and values
46 """
47 raise NotImplementedError
48
49
51 """An IErrorEvent implementation for IParameterHandler."""
52
54 """Gets the IParameterHandler that caused the error.
55
56 @return: the IParameterHandler that caused the error
57 """
58 raise NotImplementedError
59