com.vaadin.terminal
Interface Terminal

All Superinterfaces:
Serializable
All Known Implementing Classes:
WebBrowser

public interface Terminal
extends Serializable

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

Since:
3.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd.

Nested Class Summary
static interface Terminal.ErrorEvent
          An error event implementation for Terminal.
static interface Terminal.ErrorListener
          Interface for listening to Terminal errors.
 
Method Summary
 String getDefaultTheme()
          Gets the name of the default theme for this terminal.
 int getScreenHeight()
          Gets the height of the terminal screen in pixels.
 int getScreenWidth()
          Gets the width of the terminal screen in pixels.
 

Method Detail

getDefaultTheme

String getDefaultTheme()
Gets the name of the default theme for this terminal.

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

getScreenWidth

int getScreenWidth()
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.

getScreenHeight

int getScreenHeight()
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.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.