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); }
public void setId(String id) { ((OListElement) getElement().cast()).setId(id); }
@UiConstructor public List(String tag) { super(OListElement.TAG.equals(tag) || UListElement.TAG.equals(tag) ? tag : UListElement.TAG); this.setType(this.type); }
public Breadcrumb() { super(OListElement.TAG); this.endConstruct(); }