Package org.wicketstuff.jquery.block

Examples of org.wicketstuff.jquery.block.BlockOptions


  public Page4Block() {

    WebMarkupContainer body = new WebMarkupContainer( "demo" );
    add( body );
   
    BlockOptions options = new BlockOptions();
    options.setMessage( "Hello!!!" );
   

    body.add( new BlockingAjaxLink<Void>( "ajaxlink", "hello!" ) {
      @Override
      public void doClick(AjaxRequestTarget target) {
        try {
          Thread.sleep( 3000 );
        }
        catch (InterruptedException e) {
          e.printStackTrace();
        }
        info( "Clicked link: "+this.toString() );
        target.addChildren( getPage(), FeedbackPanel.class );
      }
    });
   
    body.add( new BlockingAjaxLink<Void>( "block2", "hello!" ) {
      @Override
      public void doClick(AjaxRequestTarget target) {
        try {
          Thread.sleep( 3000 );
        }
        catch (InterruptedException e) {
          e.printStackTrace();
        }
        info( "Clicked link: "+this.toString() );
        target.addChildren( getPage(), FeedbackPanel.class );
      }
     
      public CharSequence getBlockElementsSelector() {
        return "div.blockMe";
      }
    });
   
    BlockOptions opts = new BlockOptions();
    opts.setFadeIn( 5000 );
    opts.setFadeOut( 0 );
   
    body.add( new BlockingAjaxLink<Void>( "block3", opts ) {
      @Override
      public void doClick(AjaxRequestTarget target) {
        try {
View Full Code Here


  {

    WebMarkupContainer body = new WebMarkupContainer("demo");
    add(body);

    BlockOptions options = new BlockOptions();
    options.setMessage("Hello!!!");


    body.add(new BlockingAjaxLink<Void>("ajaxlink", "hello!")
    {
      @Override
      public void doClick(AjaxRequestTarget target)
      {
        try
        {
          Thread.sleep(3000);
        }
        catch (InterruptedException e)
        {
          e.printStackTrace();
        }
        info("Clicked link: " + this.toString());
        target.addChildren(getPage(), FeedbackPanel.class);
      }
    });

    body.add(new BlockingAjaxLink<Void>("block2", "hello!")
    {
      @Override
      public void doClick(AjaxRequestTarget target)
      {
        try
        {
          Thread.sleep(3000);
        }
        catch (InterruptedException e)
        {
          e.printStackTrace();
        }
        info("Clicked link: " + this.toString());
        target.addChildren(getPage(), FeedbackPanel.class);
      }

      @Override
      public CharSequence getBlockElementsSelector()
      {
        return "div.blockMe";
      }
    });

    BlockOptions opts = new BlockOptions();
    opts.setFadeIn(5000);
    opts.setFadeOut(0);

    body.add(new BlockingAjaxLink<Void>("block3", opts)
    {
      @Override
      public void doClick(AjaxRequestTarget target)
View Full Code Here

TOP

Related Classes of org.wicketstuff.jquery.block.BlockOptions

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.