Class WebInitializeEvent

    • Constructor Detail

      • 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.
    • Method Detail

      • 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.