public class JQueryAjaxOption extends java.lang.Object implements IComplexOption, org.apache.wicket.model.IModel<JQueryAjaxOption>
Bean storing jQuery Ajax options
| Modifier and Type | Class and Description |
|---|---|
static class |
JQueryAjaxOption.AjaxType
Enumeration of Ajax type
|
| Constructor and Description |
|---|
JQueryAjaxOption() |
| Modifier and Type | Method and Description |
|---|---|
void |
detach() |
java.lang.String |
getContentType() |
java.lang.String |
getData() |
java.lang.String |
getDataType() |
java.lang.CharSequence |
getJavascriptOption()
Method retrieving the javascript representation of this complex option
|
java.lang.String |
getJsonp() |
JQueryAjaxOption |
getObject() |
protected Options |
getOptions()
Method retrieving the options
|
java.lang.String |
getPassword() |
java.lang.String |
getScriptCharset() |
int |
getTimeout() |
JQueryAjaxOption.AjaxType |
getType() |
java.lang.String |
getUrl() |
java.lang.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. this is set to true by default).
|
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(java.lang.String contentType)
When sending data to the server, use this content-type.
|
JQueryAjaxOption |
setData(java.lang.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(java.lang.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(java.lang.String jsonp)
Override the callback function name in a jsonp request.
|
void |
setObject(JQueryAjaxOption object) |
JQueryAjaxOption |
setPassword(java.lang.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(java.lang.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(java.lang.String url)
The URL to request.
|
JQueryAjaxOption |
setUsername(java.lang.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.
|
public java.lang.CharSequence getJavascriptOption()
IComplexOptiongetJavascriptOption in interface IComplexOptionprotected Options getOptions()
public JQueryAjaxOption setAsync(boolean async)
async - public boolean isAsync()
public JQueryAjaxOption setCache(boolean cache)
cache - public boolean isCache()
public JQueryAjaxOption setContentType(java.lang.String contentType)
contentType - public java.lang.String getContentType()
public JQueryAjaxOption setData(java.lang.String data)
data - public java.lang.String getData()
public JQueryAjaxOption setDataType(java.lang.String dataType)
dataType - public java.lang.String getDataType()
public JQueryAjaxOption setGlobal(boolean global)
global - public boolean isGlobal()
public JQueryAjaxOption setIfModified(boolean ifModified)
ifModified - public boolean isIfModified()
public JQueryAjaxOption setJsonp(java.lang.String jsonp)
jsonp - public java.lang.String getJsonp()
public JQueryAjaxOption setPassword(java.lang.String password)
password - public java.lang.String getPassword()
public JQueryAjaxOption setProcessData(boolean processData)
processData - public boolean isProcessData()
public JQueryAjaxOption setScriptCharset(java.lang.String scriptCharset)
scriptCharset - public java.lang.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(java.lang.String url)
url - public java.lang.String getUrl()
public JQueryAjaxOption setUsername(java.lang.String username)
username - public java.lang.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.IDetachabledetach in interface org.apache.wicket.model.IModel<JQueryAjaxOption>Copyright © 2018. All Rights Reserved.