Examples of El


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

  @Override
  protected void onRender(Element parent, int index) {
    setElement(DOM.createDiv(), parent, index);
    addStyleName("x-form-list");

    input = new El((Element) Document.get().createHiddenInputElement().cast());
    getElement().appendChild(input.dom);
    if (template == null) {
      String html = "<tpl for=\".\"><div class='x-combo-list-item' role='option'>{" + getDisplayField() + "}</div></tpl>";
      template = XTemplate.create(html);
    }
View Full Code Here

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

    scrollBarWidth = XDOM.getScrollBarWidth();

    Element div = DOM.createDiv();

    div.setInnerHTML(bodyHTML.toString());
    scrollEl = new El(El.fly(div).getSubChild(2));
    dataEl = scrollEl.firstChild();
    DOM.appendChild(table.getElement(), DOM.getFirstChild(div));

    if (table.getVerticalLines()) {
      table.addStyleName("my-tbl-vlines");
View Full Code Here

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

    if (item.hasWidgets) {
      for (int i = 0; i < cols; i++) {
        if (values[i] instanceof Widget) {
          Widget w = (Widget) values[i];
          Element text = getTextCellElement(item, i);
          El textEl = El.fly(text);
          textEl.dom.setInnerHTML("");
          textEl.dom.setClassName(widgetStyle);
          textEl.dom.appendChild(w.getElement());
          if (table.isAttached()) {
            ComponentHelper.doAttach(w);
View Full Code Here

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

   * @param height the image height
   * @return the image
   */
  public static AbstractImagePrototype createStyle(String styleName, int width, int height) {
    if (cacheMap == null) {
      el = new El(DOM.createDiv());
      DOM.appendChild(XDOM.getBody(), el.dom);
      el.makePositionable(true);
      el.setLeftTop(-10000, -10000);
      el.setVisibility(false);
      cacheMap = new FastMap<String>();
View Full Code Here

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

   */
  public void setDescription(String description) {
    this.description = description;
    if (c.isRendered()) {
      String id = XDOM.getUniqueId();
      El div = new El(DOM.createDiv());
      div.makePositionable(true);
      div.setLeft(-10000);
      div.setTop(-10000);
      div.setId(id);
      div.setInnerHtml(description);
      XDOM.getBody().appendChild(div.dom);
      c.setAriaState("aria-describedby", id);
    }
  }
View Full Code Here

Examples of org.nutz.el.El

public class El2Test {
  El el;

  @Before
  public void setUp() {
    el = new El();
  }
View Full Code Here

Examples of org.nutz.el.El

    System.out.println("\n" + Strings.dup('=', 100));
   
    Stopwatch sw4 = Stopwatch.run(new Atom() {
      public void run() {
        try {
          El el2pre = new El(elstr);
          context.set("num", 0);
          context.set("z", z);
          for (int i = 0; i < max; i++)
            context.set("num", el2pre.eval(context.set("i", i)));
          System.out.println("Num: " + context.getInt("num"));
        }
        catch (Exception e) {
          throw Lang.wrapThrow(e);
        }
      }
    });
    System.out.println("\n" + Strings.dup('=', 100));
   
    Stopwatch sw5 = Stopwatch.run(new Atom() {
      public void run() {
        try {
          El el2pre = new El(elstr);
          context.set("num", 0);
          context.set("z", z);
          for (int i = 0; i < max; i++)
            context.set("num", el2pre.eval(context.set("i", i)));
          System.out.println("Num: " + context.getInt("num"));
        }
        catch (Exception e) {
          throw Lang.wrapThrow(e);
        }
View Full Code Here

Examples of org.nutz.el.El

  private MappingField entityField;

  public ElFieldMacro(MappingField field, String str) {
    this.entityField = field;
    this.bin = new El(str);
  }
View Full Code Here

Examples of org.nutz.el.El

    if (null != dest) {
      this.dest = new CharSegment(Strings.trim(dest));
      this.exps = new HashMap<String, El>();
      // 预先将每个占位符解析成表达式
      for (String key : this.dest.keys()) {
        this.exps.put(key, new El(key));
      }
    }
  }
View Full Code Here

Examples of org.ocpsoft.rewrite.el.El

   public void process(MethodContext context, RequestAction annotation, HandlerChain chain)
   {

      // create an Operation for executing this method
      Method method = context.getJavaMethod();
      El el = El.retrievalMethod(context.getJavaClass(), method.getName());
      Operation plainOperation = Invoke.binding(el);

      // let subsequent handlers enrich the operation
      context.put(Operation.class, plainOperation);
      chain.proceed();
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.