Package org.springmodules.xt.ajax

Examples of org.springmodules.xt.ajax.AjaxResponseImpl


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


        InsertContentAfterAction action = new InsertContentAfterAction("toInsertAfter", new TaggedText(", Spring Modules user", TaggedText.Tag.SPAN));
        // Disable the event:
        SetAttributeAction disableAction = new SetAttributeAction("insertAfterButton", "onclick", "");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the actions:
        response.addAction(action);
        response.addAction(disableAction);
       
        return response;
    }
View Full Code Here

        InsertContentBeforeAction action = new InsertContentBeforeAction("toInsertBefore", new TaggedText("Hello, ", TaggedText.Tag.SPAN));
        // Disable the event:
        SetAttributeAction disableAction = new SetAttributeAction("insertBeforeButton", "onclick", "");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the actions:
        response.addAction(action);
        response.addAction(disableAction);
       
        return response;
    }
View Full Code Here

        AppendAsFirstContentAction action = new AppendAsFirstContentAction("toAppendAsFirst", new TaggedText("Hello, ", TaggedText.Tag.SPAN));
        // Disable the event:
        SetAttributeAction disableAction = new SetAttributeAction("appendAsFirstButton", "onclick", "");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the actions:
        response.addAction(action);
        response.addAction(disableAction);
       
        return response;
    }
View Full Code Here

        JspComponent jsp = new JspComponent(event.getHttpRequest(), "/includes/include.jsp");
        // Create an ajax action for appending it:
        AppendContentAction action = new AppendContentAction("jsp", jsp);
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

        velocity.setTemplateModel(model);
        // Create an ajax action for appending it:
        AppendContentAction action = new AppendContentAction("velocity", velocity);
       
        // 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 executing a Javascript function:
        ExecuteJavascriptFunctionAction action = new ExecuteJavascriptFunctionAction("showAlert", options);
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
        // Add the action:
        response.addAction(action);
       
        return response;
    }
View Full Code Here

    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

TOP

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

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.