Package org.odlabs.wiquery.core.javascript

Examples of org.odlabs.wiquery.core.javascript.DefaultChainableStatement


  /**
   * Binds the <code>attr</code> statement.
   */
  public static ChainableStatement attr(String key, String value)
  {
    return new DefaultChainableStatement("attr", JsUtils.quotes(key), JsUtils.quotes(value));
  }
View Full Code Here


  /**
   * Binds the <code>attr</code> statement.
   */
  public static ChainableStatement attr(String key, JsScope computedValue)
  {
    return new DefaultChainableStatement("attr", JsUtils.quotes(key), computedValue.render());
  }
View Full Code Here

  /**
   * Binds the <code>removeAttr</code> statement.
   */
  public static ChainableStatement removeAttr(String key)
  {
    return new DefaultChainableStatement("removeAttr", JsUtils.quotes(key));
  }
View Full Code Here

  /**
   * Binds the <code>addClass</code> statement.
   */
  public static ChainableStatement addClass(String className)
  {
    return new DefaultChainableStatement("addClass", JsUtils.quotes(className));
  }
View Full Code Here

  /**
   * Binds the <code>removeClass</code> statement.
   */
  public static ChainableStatement removeClass(String className)
  {
    return new DefaultChainableStatement("removeClass", JsUtils.quotes(className));
  }
View Full Code Here

  /**
   * Binds the <code>toggleClass</code> statement.
   */
  public static ChainableStatement toggleClass(String className)
  {
    return new DefaultChainableStatement("toggleClass", JsUtils.quotes(className));
  }
View Full Code Here

  /**
   * Binds the <code>html</code> statement.
   */
  public static ChainableStatement html(CharSequence htmlContents)
  {
    return new DefaultChainableStatement("html", JsUtils.quotes(htmlContents));
  }
View Full Code Here

   *            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());
  }
View Full Code Here

   *
   * @return the jQuery code
   */
  public static ChainableStatement blur()
  {
    return new DefaultChainableStatement(StateEvent.BLUR.getEventLabel());
  }
View Full Code Here

   *            Scope to use
   * @return the jQuery code
   */
  public static ChainableStatement blur(JsScope jsScope)
  {
    return new DefaultChainableStatement(StateEvent.BLUR.getEventLabel(), jsScope.render());
  }
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.core.javascript.DefaultChainableStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.