Package muntjac :: Package terminal :: Module terminal :: Class ITerminal
[hide private]
[frames] | no frames]

Class ITerminal

source code

object --+
         |
        ITerminal
Known Subclasses:

An interface that provides information about the user's terminal. Implementors typically provide additional information using methods not in this interface.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
getDefaultTheme(self)
Gets the name of the default theme for this terminal.
source code
 
getScreenHeight(self)
Gets the height of the terminal screen in pixels.
source code
 
getScreenWidth(self)
Gets the width of the terminal screen in pixels.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getDefaultTheme(self)

source code 

Gets the name of the default theme for this terminal.

Returns:
the name of the theme that is used by default by this terminal.

getScreenHeight(self)

source code 

Gets the height of the terminal screen in pixels. This is the height of the screen and not the height available for the application.

Note that the screen height is typically not available in the Application.init method as this is called before the browser has a chance to report the screen size to the server.

Returns:
the height of the terminal screen.

getScreenWidth(self)

source code 

Gets the width of the terminal screen in pixels. This is the width of the screen and not the width available for the application.

Note that the screen width is typically not available in the Application.init method as this is called before the browser has a chance to report the screen size to the server.

Returns:
the width of the terminal screen.