|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odlabs.wiquery.core.ajax.JQueryAjaxOption
public class JQueryAjaxOption
$Id: JQueryAjaxOptions
Bean storing jQuery Ajax options
Nested Class Summary | |
---|---|
static class |
JQueryAjaxOption.AjaxType
Enumeration of Ajax type |
Constructor Summary | |
---|---|
JQueryAjaxOption()
|
Method Summary | |
---|---|
void |
detach()
|
String |
getContentType()
|
String |
getData()
|
String |
getDataType()
|
CharSequence |
getJavascriptOption()
Method retrieving the javascript representation of this complex option |
String |
getJsonp()
|
JQueryAjaxOption |
getObject()
|
protected Options |
getOptions()
Method retrieving the options |
String |
getPassword()
|
String |
getScriptCharset()
|
int |
getTimeout()
|
JQueryAjaxOption.AjaxType |
getType()
|
String |
getUrl()
|
String |
getUsername()
|
boolean |
isAsync()
|
boolean |
isCache()
|
boolean |
isGlobal()
|
boolean |
isIfModified()
|
boolean |
isProcessData()
|
JQueryAjaxOption |
setAsync(boolean async)
By default, all requests are sent asynchronous (i.e. |
JQueryAjaxOption |
setBeforeSendEvent(JsScope beforeSend)
A pre-callback to modify the XMLHttpRequest object before it is sent. |
JQueryAjaxOption |
setCache(boolean cache)
Set to false it will force the pages that you request to not be cached by the browser. |
JQueryAjaxOption |
setCompleteEvent(JsScope complete)
A function to be called when the request finishes (after success and error callbacks are executed). |
JQueryAjaxOption |
setContentType(String contentType)
When sending data to the server, use this content-type. |
JQueryAjaxOption |
setData(String data)
Data to be sent to the server. |
JQueryAjaxOption |
setDataFilterEvent(JsScope dataFilter)
A function to be used to handle the raw responsed data of XMLHttpRequest. |
JQueryAjaxOption |
setDataType(String dataType)
The type of data that you're expecting back from the server. |
JQueryAjaxOption |
setErrorEvent(JsScope error)
A function to be called if the request fails. |
JQueryAjaxOption |
setGlobal(boolean global)
Whether to trigger global AJAX event handlers for this request. |
JQueryAjaxOption |
setIfModified(boolean ifModified)
Allow the request to be successful only if the response has changed since the last request. |
JQueryAjaxOption |
setJsonp(String jsonp)
Override the callback function name in a jsonp request. |
void |
setObject(JQueryAjaxOption object)
|
JQueryAjaxOption |
setPassword(String password)
A password to be used in response to an HTTP access authentication request. |
JQueryAjaxOption |
setProcessData(boolean processData)
By default, data passed in to the data option as an object (technically, anything other than a string) will be processed and transformed into a query string, fitting to the default content-type "application/x-www-form-urlencoded". |
JQueryAjaxOption |
setScriptCharset(String scriptCharset)
Only for requests with 'jsonp' or 'script' dataType and GET type. |
JQueryAjaxOption |
setSuccessEvent(JsScope success)
A function to be called if the request succeeds. |
JQueryAjaxOption |
setTimeout(int timeout)
Set a local timeout (in milliseconds) for the request. |
JQueryAjaxOption |
setType(JQueryAjaxOption.AjaxType type)
The type of request to make ("POST" or "GET"), default is "GET". |
JQueryAjaxOption |
setUrl(String url)
The URL to request. |
JQueryAjaxOption |
setUsername(String username)
A username to be used in response to an HTTP access authentication request. |
JQueryAjaxOption |
setXhrEvent(JsScope xhr)
Callback for creating the XMLHttpRequest object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JQueryAjaxOption()
Method Detail |
---|
public CharSequence getJavascriptOption()
IComplexOption
getJavascriptOption
in interface IComplexOption
protected Options getOptions()
public JQueryAjaxOption setAsync(boolean async)
async
- public boolean isAsync()
public JQueryAjaxOption setCache(boolean cache)
cache
- public boolean isCache()
public JQueryAjaxOption setContentType(String contentType)
contentType
- public String getContentType()
public JQueryAjaxOption setData(String data)
contentType
- public String getData()
public JQueryAjaxOption setDataType(String dataType)
dataType
- public String getDataType()
public JQueryAjaxOption setGlobal(boolean global)
global
- public boolean isGlobal()
public JQueryAjaxOption setIfModified(boolean ifModified)
ifModified
- public boolean isIfModified()
public JQueryAjaxOption setJsonp(String jsonp)
jsonp
- public String getJsonp()
public JQueryAjaxOption setPassword(String password)
password
- public String getPassword()
public JQueryAjaxOption setProcessData(boolean processData)
processData
- public boolean isProcessData()
public JQueryAjaxOption setScriptCharset(String scriptCharset)
scriptCharset
- public String getScriptCharset()
public JQueryAjaxOption setTimeout(int timeout)
timeout
- public int getTimeout()
public JQueryAjaxOption setType(JQueryAjaxOption.AjaxType type)
type
- public JQueryAjaxOption.AjaxType getType()
public JQueryAjaxOption setUrl(String url)
url
- public String getUrl()
public JQueryAjaxOption setUsername(String username)
username
- public String getUsername()
public JQueryAjaxOption setBeforeSendEvent(JsScope beforeSend)
beforeSend
- public JQueryAjaxOption setCompleteEvent(JsScope complete)
complete
- public JQueryAjaxOption setDataFilterEvent(JsScope dataFilter)
dataFilter
- public JQueryAjaxOption setErrorEvent(JsScope error)
error
- public JQueryAjaxOption setSuccessEvent(JsScope success)
success
- public JQueryAjaxOption setXhrEvent(JsScope xhr)
xhr
- public JQueryAjaxOption getObject()
getObject
in interface org.apache.wicket.model.IModel<JQueryAjaxOption>
public void setObject(JQueryAjaxOption object)
setObject
in interface org.apache.wicket.model.IModel<JQueryAjaxOption>
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |