com.guiseframework.platform.web
Class WebInitializeEvent
java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
com.guiseframework.event.AbstractGuiseEvent
com.guiseframework.platform.AbstractPlatformEvent
com.guiseframework.platform.web.AbstractWebPlatformEvent
com.guiseframework.platform.web.WebInitializeEvent
- All Implemented Interfaces:
- com.globalmentor.event.Event, GuiseEvent, PlatformEvent, PlatformMessage, WebPlatformEvent, WebPlatformMessage, java.io.Serializable
public class WebInitializeEvent
- extends AbstractWebPlatformEvent
A web platform event indicating that initialization should occur.
- Author:
- Garret Wilson
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
WebInitializeEvent(DepictContext context,
int hour,
int utcOffset,
int utcOffset01,
int utcOffset06,
java.lang.String language,
int colorDepth,
int screenWidth,
int screenHeight,
int browserWidth,
int browserHeight,
java.lang.String javascriptVersion,
boolean javaEnabled,
java.net.URI referrerURI)
Constructor. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.globalmentor.event.Event |
getSource |
WebInitializeEvent
public WebInitializeEvent(DepictContext context,
int hour,
int utcOffset,
int utcOffset01,
int utcOffset06,
java.lang.String language,
int colorDepth,
int screenWidth,
int screenHeight,
int browserWidth,
int browserHeight,
java.lang.String javascriptVersion,
boolean javaEnabled,
java.net.URI referrerURI)
- Constructor.
- Parameters:
context - The context in which this control event was produced.hour - The hour of the browser.
//TODO del @param timezone The time zone offset from GMT.utcOffset - The current offset, in milliseconds, from UTC.utcOffset01 - The offset, in milliseconds, from UTC in January of the current year.utcOffset06 - The offset, in milliseconds, from UTC in June of the current year.language - The user language.colorDepth - The user color depth.screenWidth - The width of the screen.screenHeight - The height of the screen.browserWidth - The width of the browser.browserHeight - The height of the browser.javascriptVersion - The version of JavaScript supported by the client, or null if JavaScript is not supported.javaEnabled - Whether Java is enabled for the user.referrerURI - The referring URI of the document, or null if there is no referrer.
- Throws:
java.lang.NullPointerException - if the given context and/or language is null.
getHour
public int getHour()
- Returns:
- The hour of the browser.
getUTCOffset
public int getUTCOffset()
- Returns:
- The current offset, in milliseconds, from UTC.
getUTCOffset01
public int getUTCOffset01()
- Returns:
- The offset, in milliseconds, from UTC in January of the current year.
getUTCOffset06
public int getUTCOffset06()
- Returns:
- The offset, in milliseconds, from UTC in June of the current year.
getLanguage
public java.lang.String getLanguage()
- Returns:
- The user language.
getColorDepth
public int getColorDepth()
- Returns:
- The user color depth.
getScreenWidth
public int getScreenWidth()
- Returns:
- The width of the screen.
getScreenHeight
public int getScreenHeight()
- Returns:
- The height of the screen.
getBrowserWidth
public int getBrowserWidth()
- Returns:
- The width of the browser.
getBrowserHeight
public int getBrowserHeight()
- Returns:
- The height of the browser.
getJavaScriptVersion
public java.lang.String getJavaScriptVersion()
- Returns:
- The version of JavaScript supported by the client, or
null if JavaScript is not supported.
isJavaEnabled
public boolean isJavaEnabled()
- Returns:
- Whether Java is enabled for the user.
getReferrerURI
public java.net.URI getReferrerURI()
- Returns:
- The referring URI of the document, or
null if there is no referrer.
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.