Default implementation of ChainableStatement.
42434445464748
/** * Binds the <code>attr</code> statement. */ public static ChainableStatement attr(String key, String value) { return new DefaultChainableStatement("attr", JsUtils.quotes(key), JsUtils.quotes(value)); }
50515253545556
/** * Binds the <code>attr</code> statement. */ public static ChainableStatement attr(String key, JsScope computedValue) { return new DefaultChainableStatement("attr", JsUtils.quotes(key), computedValue.render()); }
58596061626364
/** * Binds the <code>removeAttr</code> statement. */ public static ChainableStatement removeAttr(String key) { return new DefaultChainableStatement("removeAttr", JsUtils.quotes(key)); }
66676869707172
/** * Binds the <code>addClass</code> statement. */ public static ChainableStatement addClass(String className) { return new DefaultChainableStatement("addClass", JsUtils.quotes(className)); }
74757677787980
/** * Binds the <code>removeClass</code> statement. */ public static ChainableStatement removeClass(String className) { return new DefaultChainableStatement("removeClass", JsUtils.quotes(className)); }
82838485868788
/** * Binds the <code>toggleClass</code> statement. */ public static ChainableStatement toggleClass(String className) { return new DefaultChainableStatement("toggleClass", JsUtils.quotes(className)); }
90919293949596
/** * Binds the <code>html</code> statement. */ public static ChainableStatement html(CharSequence htmlContents) { return new DefaultChainableStatement("html", JsUtils.quotes(htmlContents)); }
5152535455565758
* Scope to use * @return the jQuery code */ public static ChainableStatement bind(EventLabel eventLabel, JsScope jsScope) { return new DefaultChainableStatement("bind", JsUtils.quotes(eventLabel.getEventLabel()), jsScope.render()); }
62636465666768
* * @return the jQuery code */ public static ChainableStatement blur() { return new DefaultChainableStatement(StateEvent.BLUR.getEventLabel()); }
* Scope to use * @return the jQuery code */ public static ChainableStatement blur(JsScope jsScope) { return new DefaultChainableStatement(StateEvent.BLUR.getEventLabel(), jsScope.render()); }