@JsOverlay public final void restoreGroup() { this.__currentElement = (Element) this.__groupStack.pop(); //Clearing canvas will make the poped group invalid, currentElement is set to the root group node. if (this.__currentElement == null) { this.__currentElement = (Element) this.__root.childNodes.item(1); } }
@Override public void removeContributor() { // Use of removeChild() instead of remove() for IE compatibility purposes for (int i = container.childNodes.getLength() - 1; i > 0; i--) { container.removeChild(container.childNodes.item(i)); } }
@JsOverlay public final void restoreGroup() { this.__currentElement = (Element) this.__groupStack.pop(); //Clearing canvas will make the poped group invalid, currentElement is set to the root group node. if (this.__currentElement == null) { this.__currentElement = (Element) this.__root.childNodes.item(1); } }
public static void closeAllMenus() { NodeList<Element> elementsByName = document.body.querySelectorAll(".dropdown"); for (int i = 0; i < elementsByName.length; i++) { HTMLElement item = Js.uncheckedCast(elementsByName.item(i)); close(item); } }
public static void closeAllMenus() { NodeList<Element> elementsByName = document.body.querySelectorAll(".dropdown"); for (int i = 0; i < elementsByName.length; i++) { HTMLElement item = Js.uncheckedCast(elementsByName.item(i)); close(item); } }
public void addMenus(final HTMLElement element) { if (actionsMenu == null) { actionsMenu = (HTMLDivElement) document.createElement("div"); actionsMenu.classList.add("form-group"); if (actions.hasChildNodes()) { actions.insertBefore(actionsMenu, actions.childNodes.item(0)); } else { actions.appendChild(actionsMenu); } } actionsMenu.appendChild(element); }
public void addMenus(final HTMLElement element) { if (actionsMenu == null) { actionsMenu = (HTMLDivElement) document.createElement("div"); actionsMenu.classList.add("form-group"); if (actions.hasChildNodes()) { actions.insertBefore(actionsMenu, actions.childNodes.item(0)); } else { actions.appendChild(actionsMenu); } } actionsMenu.appendChild(element); }