Package org.zkoss.zk.ui.sys

Examples of org.zkoss.zk.ui.sys.JavaScriptValue


   * will be remove. And, the method/field defined in original widget will
   * be restored.
   * @since 5.0.0
   */
  protected void smartUpdateWidgetOverride(String name, String script) {
    smartUpdate("override", new Object[] {name, new JavaScriptValue(script)}, true);
  }
View Full Code Here


          final String js = cc.getClientConstraint();
          if (js != null) {
            final char c = js.length() > 0 ? js.charAt(0): (char)0;
            if (c != '\'' && c != '"') {
              smartUpdate("z$al",
                new JavaScriptValue("{constraint:function(){\nreturn "+js+";}}"));
            } else {
              smartUpdate("constraint", js.substring(1, js.length() - 1));
            }
            return;
          }
View Full Code Here

      final StringWriter out = new StringWriter(1024*8);
      final List js = new LinkedList();
      for (Iterator it = comps.iterator(); it.hasNext();) {
        ((ComponentCtrl)it.next()).redraw(out);
        final StringBuffer sb = out.getBuffer();
        js.add(new JavaScriptValue(sb.toString()));
        sb.setLength(0);
      }
      return js;
    } catch (java.io.IOException ex) {
      throw new InternalError();
View Full Code Here

* @author tomyeh
* @since 3.0.0
*/
public class AuAppendChild extends AuResponse {
  public AuAppendChild(Component comp, String content) {
    super("addChd", comp, new Object[] {comp.getUuid(), new JavaScriptValue(content)});
  }
View Full Code Here

public class AuAppendChild extends AuResponse {
  public AuAppendChild(Component comp, String content) {
    super("addChd", comp, new Object[] {comp.getUuid(), new JavaScriptValue(content)});
  }
  public AuAppendChild(Page page, String content) {
    super("addChd", page, new Object[] {page.getUuid(), new JavaScriptValue(content)});
  }
View Full Code Here

  /**
   * @param anchor the reference where the component will be added after.
   */
  public AuInsertAfter(Component anchor, String content) {
    super("addAft", anchor,
      new Object[] {anchor.getUuid(), new JavaScriptValue(content), getRefId(anchor)});
  }
View Full Code Here

* @author tomyeh
* @since 5.0.0
*/
public class AuOuter extends AuResponse {
  public AuOuter(Component comp, String content) {
    super("outer", comp, new Object[] {comp.getUuid(), new JavaScriptValue(content)});
  }
View Full Code Here

public class AuOuter extends AuResponse {
  public AuOuter(Component comp, String content) {
    super("outer", comp, new Object[] {comp.getUuid(), new JavaScriptValue(content)});
  }
  public AuOuter(Page page, String content) {
    super("outer", page, new Object[] {page.getUuid(), new JavaScriptValue(content)});
  }
View Full Code Here

* @author tomyeh
* @since 3.0.0
*/
public class AuInsertBefore extends AuResponse {
  public AuInsertBefore(Component anchor, String content) {
    super("addBfr", anchor, new Object[] {getRefId(anchor), new JavaScriptValue(content)});
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.sys.JavaScriptValue

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.