com.itmill.toolkit.terminal.gwt.server
Class WebBrowser

java.lang.Object
  extended by com.itmill.toolkit.terminal.gwt.server.WebBrowser
All Implemented Interfaces:
Terminal

public class WebBrowser
extends Object
implements Terminal


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.itmill.toolkit.terminal.Terminal
Terminal.ErrorEvent, Terminal.ErrorListener
 
Constructor Summary
WebBrowser()
           
 
Method Summary
 String getAddress()
          Get the IP-address of the web browser.
 String getBrowserApplication()
          Get the browser user-agent string.
 String getDefaultTheme()
          There is no default-theme for this terminal type.
 Locale getLocale()
          Get the default locate of the browser.
 int getScreenHeight()
          Get the height of the users display in pixels.
 int getScreenWidth()
          Get the width of the users display in pixels.
 boolean isSecureConnection()
          Is the connection made using HTTPS?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBrowser

public WebBrowser()
Method Detail

getDefaultTheme

public String getDefaultTheme()
There is no default-theme for this terminal type.

Specified by:
getDefaultTheme in interface Terminal
Returns:
Allways returns null.

getScreenHeight

public int getScreenHeight()
Get the height of the users display in pixels.

Specified by:
getScreenHeight in interface Terminal
Returns:
the Height of the terminal window.

getScreenWidth

public int getScreenWidth()
Get the width of the users display in pixels.

Specified by:
getScreenWidth in interface Terminal
Returns:
the Width of the terminal window.

getBrowserApplication

public String getBrowserApplication()
Get the browser user-agent string.

Returns:

getAddress

public String getAddress()
Get the IP-address of the web browser.

Returns:
IP-address in 1.12.123.123 -format

getLocale

public Locale getLocale()
Get the default locate of the browser.


isSecureConnection

public boolean isSecureConnection()
Is the connection made using HTTPS?



Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.