Examples of JavaScriptValue


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

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

          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

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

      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

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

* @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

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

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

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

  /**
   * @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

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

* @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

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

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

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

* @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

Examples of org.zkoss.zss.json.JavaScriptValue

    if (_cellpadding != DEFAULT_CELL_PADDING)
      renderer.render("cellPadding", _cellpadding);
   
    String sheetId = getSelectedSheetId();
    String css = getDynamicMediaURI(this, _cssVersion++, "ss_" + this.getUuid() + "_" + sheetId, "css");
    renderer.render("loadcss", new JavaScriptValue("zk.loadCSS('" + css + "', '" + this.getUuid() + "-sheet')"));
    renderer.render("scss", css);

    int maxRows = getMaxrows();
    if (maxRows != DEFAULT_MAX_ROWS) {
      renderer.render("maxRows", maxRows);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.