Package org.springmodules.xt.ajax

Examples of org.springmodules.xt.ajax.AjaxResponse


    public AjaxResponse showElement(AjaxActionEvent event) {
        // Create an ajax action for showing an element:
        ShowElement action = new ShowElement("toShow");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here


    public AjaxResponse hideElement(AjaxActionEvent event) {
        // Create an ajax action for hiding an element:
        HideElement action = new HideElement("toHide");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

    public AjaxResponse highlightElement(AjaxActionEvent event) {
        // Create an ajax action for highlighting an element:
        Effect action = new Effect("Highlight", "toApplyEffect");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

        // Create an ajax action for making an element puff:
        Effect action = new Effect("Puff", "toApplyEffect");
        action.addOption("duration", "3");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

    public AjaxResponse pulsateElement(AjaxActionEvent event) {
        // Create an ajax action for making pulsate an element:
        Effect action = new Effect("Pulsate", "toApplyEffect");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

    public AjaxResponse shrinkElement(AjaxActionEvent event) {
        // Create an ajax action for shrinking an element:
        Effect action = new Effect("Shrink", "toApplyEffect");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

    public AjaxResponse growElement(AjaxActionEvent event) {
        // Create an ajax action for making grow an element:
        Effect action = new Effect("Grow", "toApplyEffect");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

        // Add the droppable:
        AddDroppable action2 = new AddDroppable("droppable");
        action2.addOption("onDrop", "function(draggable, droppable) { showAlertOnDrop(draggable, droppable); }");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the actions:
        response.addAction(action1);
        response.addAction(action2);
       
        return response;
    }
View Full Code Here

        SelectorMatcher matcher = new SelectorMatcher(Arrays.asList("#changeColorDataRow li"));
        // Action for changing the style attribute to matching elements:
        SetAttributeAction action = new SetAttributeAction(matcher, "style", "color : red");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the actions:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

                return "throw {'message' : 'This is a javascript error!'};";
            }
        };
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the actions:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

TOP

Related Classes of org.springmodules.xt.ajax.AjaxResponse

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.