Package org.apache.wicket.request

Examples of org.apache.wicket.request.ClientInfo


   *
   * @return The client's time zone or null
   */
  private TimeZone getClientTimeZone()
  {
    ClientInfo info = Session.get().getClientInfo();
    if (info instanceof WebClientInfo)
    {
      return ((WebClientInfo)info).getProperties().getTimeZone();
    }
    return null;
View Full Code Here


   *
   * @return The client's time zone or null
   */
  protected TimeZone getClientTimeZone()
  {
    ClientInfo info = Session.get().getClientInfo();
    if (info instanceof WebClientInfo)
    {
      return ((WebClientInfo)info).getProperties().getTimeZone();
    }
    return null;
View Full Code Here

      {
        ClientPropertiesBean propertiesBean = getModelObject();

        WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
        WebSession session = (WebSession)getSession();
        ClientInfo clientInfo = session.getClientInfo();

        if (clientInfo == null)
        {
          clientInfo = new WebClientInfo(requestCycle);
          getSession().setClientInfo(clientInfo);
View Full Code Here

    }
    setContinueTo(to);
    initComps();
    WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
    WebSession session = (WebSession)getSession();
    ClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
View Full Code Here

   *
   * @return The client's time zone or null
   */
  protected TimeZone getClientTimeZone()
  {
    ClientInfo info = Session.get().getClientInfo();
    if (info instanceof WebClientInfo)
    {
      return ((WebClientInfo)info).getProperties().getTimeZone();
    }
    return null;
View Full Code Here

   *
   * @return The client's time zone or null
   */
  protected TimeZone getClientTimeZone()
  {
    ClientInfo info = Session.get().getClientInfo();
    if (info instanceof WebClientInfo)
    {
      return ((WebClientInfo)info).getProperties().getTimeZone();
    }
    return null;
View Full Code Here

  @Override
  protected void onBeforeRender() {
    /* IE5/6 can't do li:hover, so we need some javascript, see below */

    if (!browserDetected) {
      ClientInfo ci = WebSession.get().getClientInfo();
      if (ci instanceof WebClientInfo) {
        ClientProperties properties = ((WebClientInfo)ci).getProperties();
        if (properties.isBrowserInternetExplorer()) {
          if (properties.getBrowserVersionMajor() < 7)
            browserIsIe56 = true;
View Full Code Here

   *
   * @return The client's time zone or null
   */
  protected TimeZone getClientTimeZone()
  {
    ClientInfo info = Session.get().getClientInfo();
    if (info instanceof WebClientInfo)
    {
      return ((WebClientInfo)info).getProperties().getTimeZone();
    }
    return null;
View Full Code Here

    }
    setContinueTo(to);
    initComps();
    WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
    WebSession session = (WebSession)getSession();
    ClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
View Full Code Here

    {
      ClientPropertiesBean propertiesBean = (ClientPropertiesBean)getModelObject();

      WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
      WebSession session = (WebSession)getSession();
      ClientInfo clientInfo = session.getClientInfo();

      if (clientInfo == null)
      {
        clientInfo = new WebClientInfo(requestCycle);
        getSession().setClientInfo(clientInfo);
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.ClientInfo

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.