Ejemplo n.º 1
0
 /** Binds the <code>css</code> statement. */
 public static ChainableStatement css(String name, String value) {
   return new DefaultChainableStatement("css", JsUtils.quotes(name), JsUtils.quotes(value));
 }
Ejemplo n.º 2
0
 /**
  * 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());
 }
Ejemplo n.º 3
0
 /**
  * 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());
 }
Ejemplo n.º 4
0
 /**
  * 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()));
 }
Ejemplo n.º 5
0
 @Override
 public CharSequence[] statementArgs() {
   String firstArg = JsUtils.implode(eventLabels);
   String callback = this.callback().render().toString();
   return new String[] {firstArg, callback};
 }