use of elemental.html.LIElement in project che by eclipse.
the class Elements method createLiElement.
public static LIElement createLiElement(String... classNames) {
LIElement elem = getDocument().createLIElement();
addClassesToElement(elem, classNames);
return elem;
}
use of elemental.html.LIElement in project che by eclipse.
the class EmptyEditorsPanel method render.
private void render(String title, Map<String, Action> actions) {
this.title.setInnerText(title);
container.removeAllChildren();
Element listElement = Elements.createElement("ul", new String[] { style.list() });
for (Map.Entry<String, Action> pair : actions.entrySet()) {
LIElement liElement = Elements.createLiElement();
liElement.appendChild(renderAction(pair.getKey(), pair.getValue()));
listElement.appendChild(liElement);
}
container.appendChild((com.google.gwt.dom.client.Node) listElement);
}
Aggregations