Java 类com.google.gwt.dom.client.OListElement 实例源码

项目:gwt-promptly    文件:PromptlyPanel.java   
public final void appendList(ArrayList<String> choices, boolean ordered, String additionalStyle) {
   if (choices == null || choices.size() == 0) {
      return;
   }

   FlowPanel htmlList = new FlowPanel(ordered? OListElement.TAG : UListElement.TAG);

   if (additionalStyle != null && additionalStyle.length() > 0) {
      _promptChar.getElement().setAttribute("style", additionalStyle);
   }

   for (String choice : choices) {
      FlowPanel item = new FlowPanel(LIElement.TAG);
      item.getElement().setInnerText(choice);
      htmlList.add(item);
   }

   appendAndScrollOrFocusAsAppropriate(htmlList);
}
项目:listmaker    文件:OrderedListWidget.java   
public void setId(String id)
{
    ((OListElement) getElement().cast()).setId(id);
}
项目:putnami-web-toolkit    文件:List.java   
@UiConstructor
public List(String tag) {
    super(OListElement.TAG.equals(tag) || UListElement.TAG.equals(tag) ? tag : UListElement.TAG);
    this.setType(this.type);
}
项目:putnami-web-toolkit    文件:Breadcrumb.java   
public Breadcrumb() {
    super(OListElement.TAG);
    this.endConstruct();
}