Package org.apache.wicket.ajax

Examples of org.apache.wicket.ajax.AbstractAjaxTimerBehavior


        {
          checkUsability(component, true);

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


        {
          checkUsability(component);

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

    wrap.setOutputMarkupId( true );
    add( wrap );
   

    // Refresh the view every second...
    add( new AbstractAjaxTimerBehavior(Duration.seconds(1))
    {
      Random rand = new Random();
     
      @Override
      protected void onTimer(final AjaxRequestTarget target)
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

    wrap.setOutputMarkupId(true);
    add(wrap);


    // Refresh the view every second...
    add(new AbstractAjaxTimerBehavior(Duration.seconds(1))
    {
      Random rand = new Random();

      @Override
      protected void onTimer(final AjaxRequestTarget target)
View Full Code Here

        GOverlay overlay = createOverlay("Amsterdam", new GLatLng(52.37649, 4.888573), "pin.gif", "shadow.png");

        map.addOverlay(overlay);

        map.add(new AbstractAjaxTimerBehavior(Duration.seconds(5))
        {
            private static final long serialVersionUID = 1L;
            private int i = 1;

            @Override
View Full Code Here

                    resetButtons(form, target);
                    return;
                }

                cancel.setDefaultModelObject(jobid);
                this.add(new AbstractAjaxTimerBehavior(Duration.seconds(3)) {
                   protected void onTimer(AjaxRequestTarget target) {
                       Importer importer = ImporterWebUtils.importer();
                       Task<ImportContext> t = importer.getTask(jobid);

                       if (t.isDone()) {
View Full Code Here

   
                final AjaxLink self = this;
   
                // create a timer to update the table and reload the page when
                // necessary
                taskTable.add(new AbstractAjaxTimerBehavior(Duration.milliseconds(500)) {
                    @Override
                    protected void onTimer(AjaxRequestTarget target) {
                        Task<ImportContext> job = importer().getTask(jobid);
                        if (job == null || job.isDone()) {
                            // remove the timer
View Full Code Here

   
    mapContainer.add(characterList);
   
   
   
    add(new AbstractAjaxTimerBehavior(Duration.seconds(GameState.getTickInterval())) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onTimer(AjaxRequestTarget target) {
        target.addComponent(mapContainer);
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.