PageRenderTime 18ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/java/com/googlecode/struts2yuiplugin/components/XHRComponent.java

http://struts2yuiplugin.googlecode.com/
Java | 33 lines | 12 code | 6 blank | 15 comment | 0 complexity | cc127734d3cb4d312c9bdeaa48009943 MD5 | raw file
 1package com.googlecode.struts2yuiplugin.components;
 2
 3import org.apache.struts2.views.annotations.StrutsTagAttribute;
 4
 5/**
 6 * Properties common to components that perform XHR operations
 7 */
 8public interface XHRComponent {
 9
10    /**
11     * An alterative javascript callback function for the YUI Connection Manager response
12     */
13    @StrutsTagAttribute(description = "An alternative javascript callback for the YUI Connection Manager's response", required = false)
14    void setCallback(String callback);
15    
16    /**
17     * The ID Of the form to include in the request
18     */
19    @StrutsTagAttribute(description = "The ID of the form to include in the request", required = false)
20    void setFormId(String formId);
21
22    /**
23     * If optional the href to send the request to.  I not provided, the form's action will used
24     */
25    @StrutsTagAttribute(description = "The URL to make the request to if not than the form's action", required = false, rtexprvalue = true)
26    void setHref(String href);
27
28    /**
29     * HTTP method to use when HREF is specified. Default is GET
30     */
31    @StrutsTagAttribute(description = "The HTTP method to use", required = false, defaultValue = "GET")
32    void setMethod(String method);
33}