Package org.apache.wicket.ajax

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior


  public SimpleTestPanel(String name)
  {
    super(name);

    Label ajaxLabel = new Label("linja1", new PropertyModel(this, "count"));
    timer = new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2));

    ajaxLabel.add(timer);
    baseSpan.add(ajaxLabel);
  }
View Full Code Here


        {
          if (b instanceof AjaxSelfUpdatingTimerBehavior)
          {
            log.debug("Triggering AjaxSelfUpdatingTimerBehavior: " +
              component.getClassRelativePath());
            AjaxSelfUpdatingTimerBehavior abstractAjaxBehaviour = (AjaxSelfUpdatingTimerBehavior)b;
            executeBehavior(abstractAjaxBehaviour);
          }
        }
        return CONTINUE_TRAVERSAL;
      }
View Full Code Here

          {
            checkUsability(component);

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

                            complete = true;
                        }                   
                    }.start();
                   
                    // poll and update the progress every 5 seconds
                    progress.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
                    IModel model = new AbstractReadOnlyModel() {
                        public Object getObject() {
                            if(complete) {
                                if(errorMessage != null) {
                                    setResponsePage(new ErrorPage(errorMessage));
View Full Code Here

          {
            checkUsability(component);

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

        {
          if (b instanceof AjaxSelfUpdatingTimerBehavior)
          {
            log.debug("Triggering AjaxSelfUpdatingTimerBehavior: " +
              component.getClassRelativePath());
            AjaxSelfUpdatingTimerBehavior abstractAjaxBehaviour = (AjaxSelfUpdatingTimerBehavior)b;
            executeBehavior(abstractAjaxBehaviour);
          }
        }
        return CONTINUE_TRAVERSAL;
      }
View Full Code Here

        startComponentInPage(progressBar);

        assertEquals(model.getObject(), progressBar.value());

        AjaxSelfUpdatingTimerBehavior updatingTimerBehavior = progressBar.getBehaviors(AjaxSelfUpdatingTimerBehavior.class).get(0);
        tester().executeBehavior(updatingTimerBehavior);
        assertEquals(Integer.valueOf(model.getObject() + 1), progressBar.value());
    }
View Full Code Here

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

    columns.add(pageSizeColumn);

    BrowserTable browserTable = new BrowserTable(id, columns, provider);
    browserTable.setOutputMarkupId(true);

    browserTable.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));

    return browserTable;
  }
View Full Code Here

            }
        };
        add(savedSearchesView);

        // execute one time
        add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(0.1)) {

            @Override
            protected void onPostProcessTarget(AjaxRequestTarget target) {
                updateSSCounts(target);
                isInitialized = true;
                stop();
            }
        });

        // execute forever
        add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(60)) {

            @Override
            protected void onPostProcessTarget(AjaxRequestTarget target) {
                // update count of all queries
                updateSSCounts(target);
View Full Code Here

TOP

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

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.