Package org.apache.wicket.ajax

Examples of org.apache.wicket.ajax.AbstractAjaxTimerBehavior


        final MultiLineLabel statusLabel = new MultiLineLabel("status",
                new PropertyModel(this, "message"));
        statusLabel.setOutputMarkupId(true);
        final Label tickerLabel =new Label("ticker",new PropertyModel(this,"ticker"));
        tickerLabel.setOutputMarkupId(true);
        add(new AbstractAjaxTimerBehavior(Duration.seconds(3))
        {
            protected void onTimer(AjaxRequestTarget target)
            {
                setMessage(deployer.getMessage());
                target.addComponent(tickerLabel);
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

      }
    });
    add(jsPlaceholder);

    add(new AjaxProofContainer("ajaxProofPlaceholder"));
    add(new AbstractAjaxTimerBehavior(Duration.seconds(4))
    {
      private static final long serialVersionUID = 1L;

      @Override
      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( queueDIV );
   
   
   
    // Refresh the view every second...
    add(new AbstractAjaxTimerBehavior(Duration.seconds(1))
    {
      @Override
      protected void onTimer(AjaxRequestTarget target)
      {
        target.addComponent( info );
View Full Code Here

            }
           
        });

        // comment this out if you need to hack on the HTML of a live page
        info.add(new AbstractAjaxTimerBehavior(Duration.milliseconds(500)) {

            @Override
            protected void onTimer(AjaxRequestTarget target) {
                FeatureTypeImporter importer = getImporter();
               
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

    final ProgressbarWebMarkupContainer progressbar = new ProgressbarWebMarkupContainer(
        "progressbar");
    progressbar.add(JQBehaviors.draggable());
    add(progressbar);

    add(new AbstractAjaxTimerBehavior(Duration.seconds(1)) {
      @Override
      protected void onTimer(AjaxRequestTarget target) {
        progressbar.value(target, counter);
        counter++;
        if (counter > 100)
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

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.