Package org.apache.wicket.protocol.http

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


        }

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

    final MultiLineLabel clientInfo = new MultiLineLabel("clientinfo", new AbstractReadOnlyModel<String>()
    {
      @Override
      public String getObject()
      {
        ClientProperties properties = getClientProperties();
        return properties.toString();
      }
    });
    clientInfo.setOutputMarkupPlaceholderTag(true);
    clientInfo.setVisible(false);

    IModel<String> clientTimeModel = new AbstractReadOnlyModel<String>()
    {
      @Override
      public String getObject()
      {
        ClientProperties properties = getClientProperties();
        TimeZone timeZone = properties.getTimeZone();
        if (timeZone != null)
        {
          Calendar cal = Calendar.getInstance(timeZone);
          Locale locale = getLocale();
          DateFormat dateFormat = DateFormat.getTimeInstance(DateFormat.LONG, locale);
View Full Code Here

   */
  private ClientProperties getClientProperties()
  {
    RequestCycleSettings requestCycleSettings = getApplication().getRequestCycleSettings();
    boolean gatherExtendedBrowserInfo = requestCycleSettings.getGatherExtendedBrowserInfo();
    ClientProperties properties = null;
    try
    {
      requestCycleSettings.setGatherExtendedBrowserInfo(false);
      WebClientInfo clientInfo = (WebClientInfo) getSession().getClientInfo();
      properties = clientInfo.getProperties();
View Full Code Here

     *
     * @param headerResponse the current {@link IHeaderResponse}
     */
    protected void contributeIE8Dependencies(IHeaderResponse headerResponse) {
        WebClientInfo clientInfo = WebSession.get().getClientInfo();
        ClientProperties properties = clientInfo.getProperties();
        if (properties.isBrowserInternetExplorer() && properties.getBrowserVersionMajor() < 9) {
            headerResponse.render(JavaScriptHeaderItem.forReference(RespondJavaScriptReference.instance()));
            headerResponse.render(JavaScriptHeaderItem.forReference(Html5ShivJavaScriptReference.instance()));
        }
    }
View Full Code Here

        {
          clientInfo = new WebClientInfo(requestCycle);
          getSession().setClientInfo(clientInfo);
        }

        ClientProperties properties = clientInfo.getProperties();
        propertiesBean.merge(properties);

        afterSubmit();
      }
    };
View Full Code Here

      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
    else
    {
      ClientProperties properties = clientInfo.getProperties();
      properties.setJavaEnabled(false);
    }

    continueToOriginalDestination();
  }
View Full Code Here

      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

        {
          clientInfo = new WebClientInfo(requestCycle);
          getSession().setClientInfo(clientInfo);
        }

        ClientProperties properties = clientInfo.getProperties();
        propertiesBean.merge(properties);

        afterSubmit();
      }
    };
View Full Code Here

      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
    else
    {
      ClientProperties properties = clientInfo.getProperties();
      properties.setJavaEnabled(false);
    }

    continueToOriginalDestination();
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.ClientProperties

Copyright © 2018 www.massapicom. 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.