Package com.extjs.gxt.ui.client.core

Examples of com.extjs.gxt.ui.client.core.Template


  TaskButton(Window win, Element parent) {
    this.win = win;
    setText(win.getHeading());
    setIconStyle(win.getIconStyle());
    template = new Template(getButtonTemplate());

    render(parent);
  }
View Full Code Here


      StringBuffer sb = new StringBuffer();
      sb.append("<div class='x-grid3-summary-row' style='{tstyle}'>");
      sb.append("<table class='x-grid3-summary-table' border='0' cellspacing='0' cellpadding='0' style='{tstyle}'>");
      sb.append("<tbody><tr>{cells}</tr></tbody>");
      sb.append("</table></div>");
      rowTpl = new Template(sb.toString());
      rowTpl.compile();
    }

    if (cellTpl == null) {
      StringBuffer sb = new StringBuffer();
      sb.append("<td class='x-grid3-col x-grid3-cell x-grid3-td-{id} {css}' style='{style}'>");
      sb.append("<div class='x-grid3-cell-inner x-grid3-col-{id}' unselectable='on'>{value}</div>");
      sb.append("</td>");
      cellTpl = new Template(sb.toString());
      cellTpl.compile();
    }
  }
View Full Code Here

      if (buttonTemplate == null) {
        StringBuffer sb = new StringBuffer();
        sb.append("<table border=0 cellpadding=0 cellspacing=0 class='{2}-wrap'><tbody><tr>");
        sb.append("<td class={2}-left><i>&#160;</i></td><td class='x-btn-center'><em unselectable=on><button class={2}-text type={1}>{0}</button></em></td><td class={2}-right><i>&#160;</i></td>");
        sb.append("</tr></tbody></table>");
        buttonTemplate = new Template(sb.toString());
      }
      template = buttonTemplate;
    }

    setElement(template.create(text != null ? text : "", getType(), baseStyle), target, index);
View Full Code Here

    setMenuAlign("bl-tl");

    startMenu = new StartMenu();
    setMenu(startMenu);

    template = new Template(getButtonTemplate());
  }
View Full Code Here

  TaskButton(Window win, Element parent) {
    this.win = win;
    setText(Format.ellipse(win.getHeadingHtml(), 26));
    setIcon(win.getIcon());
    template = new Template(getButtonTemplate());

    render(parent);
  }
View Full Code Here

    StringBuffer sb = new StringBuffer();
    sb.append("<div class='{cls}-wrap'><div class='{cls}-inner'><div class='{cls}-bar'>");
    sb.append("<div class='{cls}-text'><div>&#160;</div></div></div>");
    sb.append("<div class='{cls}-text {cls}-text-back'><div>&#160;</div></div></div></div>");
 
    Template t = new Template(sb.toString());
    setElement(t.create(new Params("cls", baseStyle)), target, index);
 
    final El inner = el().firstChild();
    progressBar = inner.firstChild();
    textTopElem = progressBar.firstChild();
    textBackElem = inner.childNode(1);
View Full Code Here

      sb.append("<div class='x-form-item {5}' tabIndex='-1'>");
      sb.append("<label for={0} style='{2};{7}' class=x-form-item-label>{1}{4}</label>");
      sb.append("<div class='x-form-element' id='x-form-el-{0}' style='{3}'>");
      sb.append("</div><div class='{6}'></div>");
      sb.append("</div>");
      fieldTemplate = new Template(sb.toString());
      fieldTemplate.compile();
    }

  }
View Full Code Here

      StringBuffer sb = new StringBuffer();
      sb.append("<li class='{style}' id={id} role='tab'><a class=x-tab-strip-close onclick='return false;' role='presentation'></a>");
      sb.append("<a class='x-tab-right' role='tab'><em class='x-tab-left'>");
      sb.append("<span class='x-tab-strip-inner'><span class='x-tab-strip-text {textStyle} {iconStyle}'>{text}</span></span>");
      sb.append("</em></a></li>");
      itemTemplate = new Template(sb.toString());
      itemTemplate.compile();
    }

    renderAll();
View Full Code Here

   * Sets the view's template.
   *
   * @param html the HTML fragment
   */
  public void setTemplate(String html) {
    setTemplate(new Template(html));
  }
View Full Code Here

        Event.ONCLICK | Event.ONDBLCLICK | Event.MOUSEEVENTS | Event.KEYEVENTS);
  }

  protected void renderAll() {
    if (template == null) {
      template = new Template(defaultTemplate);
    }

    StringBuffer sb = new StringBuffer();
    for (DataViewItem item : getItems()) {
      sb.append(bulkRenderItem(item));
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.core.Template

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.