Package org.apache.wicket.ajax

Examples of org.apache.wicket.ajax.AbstractAjaxTimerBehavior


    add(prague);
    add(london);

    // add the timer behavior to the page and make it update all
    // other components as well
    add(new AbstractAjaxTimerBehavior(Duration.seconds(1))
    {
      /**
       * @see org.apache.wicket.ajax.AbstractAjaxTimerBehavior#onTimer(org.apache.wicket.ajax.AjaxRequestTarget)
       */
      protected void onTimer(AjaxRequestTarget target)
View Full Code Here


        removeOnlineUser(getUserId(), WebSession.get().getId());
        log.debug("WebSocketBehavior::onClose");
      }
    });
    //load preselected content
    add(areaBehavior = new AbstractAjaxTimerBehavior(Duration.ONE_SECOND) {
      private static final long serialVersionUID = -1551197896975384329L;

      @Override
      protected void onTimer(AjaxRequestTarget target) {
        OmUrlFragment area = WebSession.get().getArea();
View Full Code Here

    public InstallStep() {
      super(paramsStep4);
     
      add(desc.setOutputMarkupId(true));
      // Timer //
      container.add(timer = new AbstractAjaxTimerBehavior(Duration.ONE_SECOND) {
        private static final long serialVersionUID = 1L;

        @Override
        protected void onTimer(AjaxRequestTarget target) {
          if (!started) {
View Full Code Here

        removeOnlineUser(getUserId(), WebSession.get().getId());
        log.debug("WebSocketBehavior::onClose");
      }
    });
    //load preselected content
    add(areaBehavior = new AbstractAjaxTimerBehavior(Duration.ONE_SECOND) {
      private static final long serialVersionUID = -1551197896975384329L;

      @Override
      protected void onTimer(AjaxRequestTarget target) {
        OmUrlFragment area = WebSession.get().getArea();
View Full Code Here

    public InstallStep() {
      super(paramsStep4);
     
      add(desc.setOutputMarkupId(true));
      // Timer //
      container.add(timer = new AbstractAjaxTimerBehavior(Duration.ONE_SECOND) {
        private static final long serialVersionUID = 1L;

        @Override
        protected void onTimer(AjaxRequestTarget target) {
          if (!started) {
View Full Code Here

        {
          checkUsability(component, true);

          log.debug("Triggering AjaxSelfUpdatingTimerBehavior: " +
            component.getClassRelativePath());
          AbstractAjaxTimerBehavior timer = (AbstractAjaxTimerBehavior)b;
          if (!timer.isStopped())
          {
            executeBehavior(timer);
          }
        }
      }
View Full Code Here

        {
          if (b instanceof AbstractAjaxTimerBehavior)
          {
            log.debug("Triggering AjaxSelfUpdatingTimerBehavior: " +
              component.getClassRelativePath());
            AbstractAjaxTimerBehavior timer = (AbstractAjaxTimerBehavior)b;
            if (!timer.isStopped())
            {
              executeBehavior(timer);
            }
          }
        }
View Full Code Here

    add(prague);
    add(london);

    // add the timer behavior to the page and make it update all
    // other components as well
    add(new AbstractAjaxTimerBehavior(Duration.seconds(1))
    {
      /**
       * @see org.apache.wicket.ajax.AbstractAjaxTimerBehavior#onTimer(org.apache.wicket.ajax.AjaxRequestTarget)
       */
      protected void onTimer(AjaxRequestTarget target)
View Full Code Here

        List<AbstractAjaxTimerBehavior> behaviors = component.getBehaviors(AbstractAjaxTimerBehavior.class);
        for (IBehavior b : behaviors)
        {
          log.debug("Triggering AjaxSelfUpdatingTimerBehavior: " +
            component.getClassRelativePath());
          AbstractAjaxTimerBehavior timer = (AbstractAjaxTimerBehavior)b;
          if (!timer.isStopped())
          {
            executeBehavior(timer);
          }
        }
      }
View Full Code Here

    add(prague);
    add(london);

    // add the timer behavior to the page and make it update all
    // other components as well
    add(new AbstractAjaxTimerBehavior(Duration.seconds(1))
    {
      /**
       * @see org.apache.wicket.ajax.AbstractAjaxTimerBehavior#onTimer(org.apache.wicket.ajax.AjaxRequestTarget)
       */
      protected void onTimer(AjaxRequestTarget target)
View Full Code Here

TOP

Related Classes of org.apache.wicket.ajax.AbstractAjaxTimerBehavior

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.