1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Defines a listener interface for UI variable changes."""
17
18 from muntjac.terminal.terminal import IErrorEvent as ITerminalErrorEvent
19
20
22 """Listener interface for UI variable changes. The user communicates
23 with the application using the so-called I{variables}. When the
24 user makes a change using the UI the terminal trasmits the changed
25 variables to the application, and the components owning those variables
26 may then process those changes.
27
28 @author: Vaadin Ltd.
29 @author: Richard Lincoln
30 @version: 1.1.2
31 """
32
34 """Called when one or more variables handled by the implementing
35 class are changed.
36
37 @param source:
38 the Source of the variable change. This is the origin
39 of the event. For example in Web Adapter this is the
40 request.
41 @param variables:
42 the Mapping from variable names to new variable values.
43 """
44 raise NotImplementedError
45
46
48 """Tests if the variable owner is enabled or not. The terminal
49 should not send any variable changes to disabled variable owners.
50
51 @return: C{True} if the variable owner is enabled, C{False} if not
52 """
53 raise NotImplementedError
54
55
70
71
73 """IVariableOwner error event."""
74
76 """Gets the source IVariableOwner.
77
78 @return: the variable owner.
79 """
80 raise NotImplementedError
81