Package org.apache.wicket.request

Examples of org.apache.wicket.request.ClientInfo


   *
   * @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


    String to = parameters.get("cto").toString();
    setContinueTo(to);
    initComps();
    RequestCycle requestCycle = 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

      {
        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

  }

  // shortcut to the client properties:
  protected ClientProperties getClientProperties() {
    if (clientProperties == null) {
      ClientInfo clientInfo = WebSession.get().getClientInfo();

      if (clientInfo == null || !(clientInfo instanceof WebClientInfo)) {
        clientInfo = new WebClientInfo((WebRequestCycle) getRequestCycle());
        WebSession.get().setClientInfo(clientInfo);
      }
View Full Code Here

    String to = Strings.toString(parameters.get("cto"));
    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

    String to = Strings.toString(parameters.get("cto"));
    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

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.