1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Defines an interface that provides information about the user's terminal.
17 """
18
20 """An interface that provides information about the user's terminal.
21 Implementors typically provide additional information using methods
22 not in this interface.
23
24 @author: Vaadin Ltd.
25 @author: Richard Lincoln
26 @version: 1.1.2
27 """
28
30 """Gets the name of the default theme for this terminal.
31
32 @return: the name of the theme that is used by default by this
33 terminal.
34 """
35 raise NotImplementedError
36
37
39 """Gets the width of the terminal screen in pixels. This is the
40 width of the screen and not the width available for the application.
41
42 Note that the screen width is typically not available in the
43 L{Application.init} method as this is called before the browser has
44 a chance to report the screen size to the server.
45
46 @return: the width of the terminal screen.
47 """
48 raise NotImplementedError
49
50
52 """Gets the height of the terminal screen in pixels. This is the
53 height of the screen and not the height available for the application.
54
55 Note that the screen height is typically not available in the
56 L{Application.init} method as this is called before the browser has
57 a chance to report the screen size to the server.
58
59 @return: the height of the terminal screen.
60 """
61 raise NotImplementedError
62
63
65 """An error event implementation for ITerminal."""
66
68 """Gets the contained throwable, the cause of the error."""
69 pass
70
71
73 """Interface for listening to ITerminal errors."""
74
76 """Invoked when a terminal error occurs.
77
78 @param event:
79 the fired event.
80 """
81 pass
82