Пример #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));
 }
Пример #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());
 }
Пример #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());
 }
Пример #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()));
 }
Пример #5
0
 @Override
 public CharSequence[] statementArgs() {
   String firstArg = JsUtils.implode(eventLabels);
   String callback = this.callback().render().toString();
   return new String[] {firstArg, callback};
 }