Package com.wiquery.plugin.antilia.link

Examples of com.wiquery.plugin.antilia.link.AjaxTextLinkPanel


      ActionsPanel actions  = new ActionsPanel("actions");     
      add(actions);
     
      actions.addItem(effectSpeedPanel = new EffectSpeedPanel(actions.newChildId(), EffectSpeed.SLOW));
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Toggle") {
       
        private static final long serialVersionUID = 1L;

      public void onClick(AjaxRequestTarget target) {
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Toggle(effectSpeedPanel.getSpeed())).render(true)).toString());
        };       
      });

      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Show") {
       
        private static final long serialVersionUID = 1L;

      public void onClick(AjaxRequestTarget target) {
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Show(effectSpeedPanel.getSpeed())).render(true)).toString());
        };       
      });
     
     
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "Hide"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Hide(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });
     
     
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "FadeIn"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new FadeIn(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });   
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "FadeOut"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new FadeOut(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "SlideDown"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new SlideDown(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });

      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "SlideUp"){
       
        private static final long serialVersionUID = 1L;
      @Override
        public void onClick(AjaxRequestTarget target) {       
View Full Code Here


      ActionsPanel actions  = new ActionsPanel("actions");     
      add(actions);
     
      actions.addItem(effectSpeedPanel = new EffectSpeedPanel(actions.newChildId(), EffectSpeed.SLOW));
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Toggle") {
       
        private static final long serialVersionUID = 1L;

      public void onClick(AjaxRequestTarget target) {
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Toggle()).render(true)).toString());
        };       
      });

      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(),"Show") {
       
        private static final long serialVersionUID = 1L;

      public void onClick(AjaxRequestTarget target) {
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Show(effectSpeedPanel.getSpeed())).render(true)).toString());
        };       
      });
     
     
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "Hide"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new Hide(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });
     
     
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "FadeIn"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new FadeIn(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });   
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "FadeOut"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new FadeOut(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });
     
      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "SlideDown"){
       
        private static final long serialVersionUID = 1L;

      @Override
        public void onClick(AjaxRequestTarget target) {       
        target.appendJavascript(new StringBuffer(new JsStatement().$(effects).chain(new SlideDown(effectSpeedPanel.getSpeed())).render(true)).toString());
        }
     
      });

      actions.addItem(new AjaxTextLinkPanel(actions.newChildId(), "SlideUp"){
       
        private static final long serialVersionUID = 1L;
      @Override
        public void onClick(AjaxRequestTarget target) {       
View Full Code Here

TOP

Related Classes of com.wiquery.plugin.antilia.link.AjaxTextLinkPanel

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.