/** Binds the <code>css</code> statement. */ public static ChainableStatement css(String name, String value) { return new DefaultChainableStatement("css", JsUtils.quotes(name), JsUtils.quotes(value)); }
/** * Method to set the cookie This will return the element back to its pre-init state. * * @return the associated JsStatement */ public JsStatement setCookie() { return new JsStatement() .$() .chain( "cookie", JsUtils.quotes(getName()), JsUtils.quotes(getValue()), getJavascriptOption()); }
/** * Method to delete the cookie This will return the element back to its pre-init state. * * @return the associated JsStatement */ public JsStatement deleteCookie() { return new JsStatement() .$() .chain("cookie", JsUtils.quotes(getName()), "null", getJavascriptOption()); }
/** * Method to retrieve the cookie This will return the element back to its pre-init state. * * @return the associated JsStatement */ public JsStatement getCookie() { return new JsStatement().$().chain("cookie", JsUtils.quotes(getName())); }
@Override public CharSequence[] statementArgs() { String firstArg = JsUtils.implode(eventLabels); String callback = this.callback().render().toString(); return new String[] {firstArg, callback}; }