Examples of ResizableAjaxBehavior


Examples of org.odlabs.wiquery.ui.resizable.ResizableAjaxBehavior

      add(size);
      size.setOutputMarkupId(true);
      size.setEscapeModelStrings(false);
     
      WebMarkupContainer resizable = new WebMarkupContainer("resizable");
      ResizableAjaxBehavior ajaxBehavior = new ResizableAjaxBehavior(){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onResize(int height, int width, AjaxRequestTarget ajaxRequestTarget) {
        ResizablePanel.this.height = height;
        ResizablePanel.this.width = width;
        ajaxRequestTarget.addComponent(ResizablePanel.this.get("size"));
        }
      };     
     
      ajaxBehavior.getResizableBehavior()
               .setGhost(true)
               .setAnimate(true)
               .setAutoHide(true);
     
      resizable.add(ajaxBehavior);
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.