Examples of AjaxSelfUpdatingTimerBehavior


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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

          {
            checkUsability(component);

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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

                            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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

          {
            checkUsability(component);

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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

        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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

    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

Examples of org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior

            }
        };
        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
Copyright © 2018 www.massapi.com. 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.