Package ru.yandex.strictweb.scriptjava.base.custom

Examples of ru.yandex.strictweb.scriptjava.base.custom.SelectNodeBuilder


    boolean b = !true && !false;
  }
 
  NodeBuilder drawForm() {
    final NodeBuilder log = $DIV();
    SelectNodeBuilder select = $SELECT();
   
    TableNodeBuilder b = $TABLE();
   
    select.onChange(new CommonDelegate<Boolean, SelectNodeBuilder>() {
      public Boolean delegate(SelectNodeBuilder s) {
        selected = EnumTest.valueOf(s.valueAsStr());
        Date d = new Date();
        log.add($B(d.getHours()+":"+d.getMinutes()+":"+d.getSeconds()))
          .text(" " + selected.getTitle()).BR();
        return true;
      }
    });
   
    for(EnumTest e : EnumTest.values()) {
      select.add($OPTION(e, e.getTitle()));
    }
   
    return $DIV()
    .add(EL("h2").text(name))
    .add($BTN("Press me!", new CommonDelegate<Boolean, NodeBuilder>() {
View Full Code Here


    return new TableInnerNodeBuilder("thead");
  }

    @MayBeExcluded
  public static final SelectNodeBuilder $SELECT() {
    return new SelectNodeBuilder();
  }
View Full Code Here

TOP

Related Classes of ru.yandex.strictweb.scriptjava.base.custom.SelectNodeBuilder

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.