Package org.odlabs.wiquery.core.javascript

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


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


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

   *
   * @return the jQuery code
   */
  public static ChainableStatement submit()
  {
    return new DefaultChainableStatement(FormEvent.SUBMIT.getEventLabel());
  }
View Full Code Here

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

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

      {
        args[index] = scope.render();
        index++;
      }

      return new DefaultChainableStatement("toggle", args);
    }

    return toggle(jsScope, jsScope2);
  }
View Full Code Here

   *            Event
   * @return the jQuery code
   */
  public static ChainableStatement trigger(EventLabel eventLabel)
  {
    return new DefaultChainableStatement("trigger", JsUtils.quotes(eventLabel.getEventLabel()));
  }
View Full Code Here

   *            Data for the scope
   * @return the jQuery code
   */
  public static ChainableStatement trigger(EventLabel eventLabel, CharSequence... data)
  {
    return new DefaultChainableStatement("trigger", JsUtils.quotes(eventLabel.getEventLabel()),
      JsUtils.array(data));
  }
View Full Code Here

   *            Event
   * @return the jQuery code
   */
  public static ChainableStatement triggerHandler(EventLabel eventLabel)
  {
    return new DefaultChainableStatement("triggerHandler", JsUtils.quotes(eventLabel
      .getEventLabel()));
  }
View Full Code Here

   *            Data for the scope
   * @return the jQuery code
   */
  public static ChainableStatement triggerHandler(EventLabel eventLabel, CharSequence... data)
  {
    return new DefaultChainableStatement("triggerHandler", JsUtils.quotes(eventLabel
      .getEventLabel()), JsUtils.array(data));
  }
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.