Examples of ClientProperties


Examples of org.apache.wicket.protocol.http.ClientProperties

    String hostname = requestParameters.getParameterValue("hostname").toString("N/A");

    WebClientInfo clientInfo = new WebClientInfo(requestCycle);
    Session.get().setClientInfo(clientInfo);

    ClientProperties properties = clientInfo.getProperties();
    properties.setNavigatorAppCodeName(navigatorAppCodeName);
    properties.setNavigatorAppName(navigatorAppName);
    properties.setNavigatorAppVersion(navigatorAppVersion);
    properties.setCookiesEnabled(navigatorCookieEnabled);
    properties.setJavaEnabled(navigatorJavaEnabled);
    properties.setNavigatorLanguage(navigatorLanguage);
    properties.setNavigatorPlatform(navigatorPlatform);
    properties.setNavigatorUserAgent(navigatorUserAgent);
    properties.setScreenWidth(screenWidth);
    properties.setScreenHeight(screenHeight);
    properties.setScreenColorDepth(screenColorDepth);
    properties.setUtcOffset(utcOffset);
    properties.setUtcDSTOffset(utcDSTOffset);
    properties.setBrowserWidth(browserWidth);
    properties.setBrowserHeight(browserHeight);
    properties.setHostname(hostname);

    onClientInfo(target, clientInfo);
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.ClientProperties

      }
      else
      {
        clientInfo = new WebClientInfo(requestCycle);
      }
      ClientProperties clientProperties = clientInfo.getProperties();
      if (clientProperties.isBrowserInternetExplorer() && clientProperties.getBrowserVersionMajor() < 9)
      {
        name = getVersion1();
      }

      requestCycle.setMetaData(KEY, name);
View Full Code Here

Examples of org.apache.wicket.protocol.http.ClientProperties

            response.render(JavaScriptReferenceHeaderItem.forUrl(applicationJs));
        }

        // TODO mgrigorov Remove before merge to master
        WebClientInfo clientInfo = WebSession.get().getClientInfo();
        ClientProperties properties = clientInfo.getProperties();
        if (!(properties.isBrowserInternetExplorer() && properties.getBrowserVersionMajor() < 9)) {
            // use BootLint for any browser but IE 6-8
            response.render(JavaScriptHeaderItem.forReference(BootlintJavaScriptReference.INSTANCE));
        }
    }
View Full Code Here

Examples of org.apache.wicket.protocol.http.ClientProperties

      }
      else
      {
        clientInfo = new WebClientInfo(requestCycle);
      }
      ClientProperties clientProperties = clientInfo.getProperties();
      if (clientProperties.isBrowserInternetExplorer() && clientProperties.getBrowserVersionMajor() < 9)
      {
        name = getVersion1();
      }

      requestCycle.setMetaData(KEY, name);
View Full Code Here

Examples of org.apache.wicket.protocol.http.ClientProperties

        }

        if (clientInfo instanceof WebClientInfo)
        {
          WebClientInfo info = (WebClientInfo)clientInfo;
          ClientProperties properties = info.getProperties();
          propertiesBean.merge(properties);
        }
        else
        {
          warnNotUsingWebClientInfo(clientInfo);
View Full Code Here

Examples of org.apache.wicket.protocol.http.ClientProperties

      getSession().setClientInfo(clientInfo);
    }
    else if (clientInfo instanceof WebClientInfo)
    {
      WebClientInfo info = (WebClientInfo)clientInfo;
      ClientProperties properties = info.getProperties();
      properties.setJavaEnabled(false);
    }
    else
    {
      warnNotUsingWebClientInfo(clientInfo);
    }
View Full Code Here

Examples of org.apache.wicket.protocol.http.ClientProperties

      }
      else
      {
        clientInfo = new WebClientInfo(requestCycle);
      }
      ClientProperties clientProperties = clientInfo.getProperties();
      if (clientProperties.isBrowserInternetExplorer() && clientProperties.getBrowserVersionMajor() < 9)
      {
        name = getVersion1();
      }

      requestCycle.setMetaData(KEY, name);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.