public class JQueryCookieOption extends Object implements IComplexOption
Bean storing jQuery cookie options (only the value of cookie won't be stored into the options)
Warning : You must import the CookieJavaScriptResourceReference to enable
the cookie option
| Constructor and Description |
|---|
JQueryCookieOption(String name)
Constructeur
|
| Modifier and Type | Method and Description |
|---|---|
JsStatement |
deleteCookie()
Method to delete the cookie
This will return the element back to its pre-init state.
|
void |
deleteCookie(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to delete the cookie within the ajax request
|
JsStatement |
getCookie()
Method to retrieve the cookie
This will return the element back to its pre-init state.
|
String |
getDomain() |
DateOption |
getExpires() |
CharSequence |
getJavascriptOption()
Method retrieving the javascript representation of this complex option
|
String |
getName() |
protected Options |
getOptions()
Method retrieving the options
|
String |
getPath() |
String |
getValue() |
boolean |
isSecure() |
JsStatement |
setCookie()
Method to set the cookie
This will return the element back to its pre-init state.
|
void |
setCookie(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to set the cookie within the ajax request
|
JQueryCookieOption |
setDomain(String domain)
Set's the domain name (example: server.domain.net)
|
JQueryCookieOption |
setExpires(DateOption expires)
Set's with a Number or a Date the time of validation of the cookie
|
JQueryCookieOption |
setPath(String path)
Set's the path ("/" or "http://server.domain.net" for examples)
|
JQueryCookieOption |
setSecure(boolean secure)
Set's the transaction security status (must we enable the SSL protocol ?)
|
JQueryCookieOption |
setValue(String value)
Set's the value of the cookie
|
public JQueryCookieOption(String name)
name - Name of the cookiepublic CharSequence getJavascriptOption()
getJavascriptOption in interface IComplexOptionIComplexOption.getJavascriptOption()protected Options getOptions()
public JQueryCookieOption setDomain(String domain)
domain - public String getDomain()
public JQueryCookieOption setExpires(DateOption expires)
expires - public DateOption getExpires()
public String getName()
public JQueryCookieOption setPath(String path)
path - public String getPath()
public JQueryCookieOption setSecure(boolean secure)
secure - public boolean isSecure()
public JQueryCookieOption setValue(String value)
value - public String getValue()
public JsStatement deleteCookie()
public void deleteCookie(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement getCookie()
public JsStatement setCookie()
public void setCookie(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - Copyright © 2009-2012. All Rights Reserved.