java.lang.Object
dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.util.HtmlUtil

public final class HtmlUtil extends Object
Author:
Bruno Salmon
  • Constructor Details

    • HtmlUtil

      public HtmlUtil()
  • Method Details

    • removeChildren

      public static <N extends elemental2.dom.Node> N removeChildren(N parent)
    • appendChild

      public static <N extends elemental2.dom.Node> N appendChild(N parent, elemental2.dom.Node child)
    • removeChild

      public static <N extends elemental2.dom.Node> N removeChild(N parent, elemental2.dom.Node child)
    • appendFirstChild

      public static <N extends elemental2.dom.Node> N appendFirstChild(N parent, elemental2.dom.Node child)
    • setChild

      public static <N extends elemental2.dom.Node> N setChild(N parent, elemental2.dom.Node child)
    • setChildren

      public static <N extends elemental2.dom.Node> N setChildren(N parent, Iterable<? extends elemental2.dom.Node> children)
    • setChildren

      public static <N extends elemental2.dom.Node> N setChildren(N parent, elemental2.dom.Node... children)
    • appendChildren

      public static <N extends elemental2.dom.Node> N appendChildren(N parent, Iterable<? extends elemental2.dom.Node> children)
    • appendChildren

      public static <N extends elemental2.dom.Node> N appendChildren(N parent, elemental2.dom.Node... children)
    • removeChildren

      public static <N extends elemental2.dom.Node> N removeChildren(N parent, Iterable<? extends elemental2.dom.Node> children)
    • replaceNode

      public static <N extends elemental2.dom.Node> N replaceNode(elemental2.dom.Node oldNode, N newNode)
    • setBodyContent

      public static elemental2.dom.HTMLBodyElement setBodyContent(elemental2.dom.Node content)
    • removeChildrenUpToScripts

      public static <N extends elemental2.dom.Node> N removeChildrenUpToScripts(N node)
    • setAttribute

      public static <E extends elemental2.dom.Element> E setAttribute(E e, String name, String value)
    • appendAttribute

      public static <E extends elemental2.dom.Element> E appendAttribute(E e, String name, String value, String separator)
    • setPseudoClass

      public static <E extends elemental2.dom.HTMLElement> E setPseudoClass(E e, String pseudoClass)
    • setPseudoClass

      public static <E extends elemental2.dom.HTMLElement> E setPseudoClass(E e, String pseudoClass, boolean present)
    • addPseudoClass

      public static <E extends elemental2.dom.HTMLElement> E addPseudoClass(E e, String pseudoClass)
    • removePseudoClass

      public static <E extends elemental2.dom.HTMLElement> E removePseudoClass(E e, String pseudoClass)
    • setStyle

      public static <E extends elemental2.dom.Element> E setStyle(E e, String style)
    • setStyleAttribute

      public static <N extends elemental2.dom.Node> N setStyleAttribute(N node, String name, Object value)
    • setStyleAttribute

      public static <E extends elemental2.dom.Element> E setStyleAttribute(E e, String name, Object value)
    • appendStyle

      public static <E extends elemental2.dom.Element> E appendStyle(E e, String style)
    • setJsAttribute

      public static void setJsAttribute(Object o, String name, String value)
    • setJsJavaObjectAttribute

      public static void setJsJavaObjectAttribute(Object o, String name, Object value)
    • getJsJavaObjectAttribute

      public static <T> T getJsJavaObjectAttribute(Object o, String name)
    • createElement

      public static <E extends elemental2.dom.Element> E createElement(String tagName)
    • createButtonElement

      public static elemental2.dom.HTMLButtonElement createButtonElement()
    • createLabelElement

      public static elemental2.dom.HTMLLabelElement createLabelElement()
    • createTableElement

      public static elemental2.dom.HTMLTableElement createTableElement()
    • createImageElement

      public static elemental2.dom.HTMLImageElement createImageElement()
    • createDivElement

      public static elemental2.dom.HTMLDivElement createDivElement()
    • createSelectElement

      public static elemental2.dom.HTMLSelectElement createSelectElement()
    • createOptionElement

      public static elemental2.dom.HTMLOptionElement createOptionElement()
    • absolutePosition

      public static <E extends elemental2.dom.HTMLElement> E absolutePosition(E e)
    • createNodeFromHtml

      public static <E extends elemental2.dom.Node> E createNodeFromHtml(String innerHTML)
    • createSpanElement

      public static elemental2.dom.HTMLElement createSpanElement()
    • createInputElement

      public static elemental2.dom.HTMLInputElement createInputElement(String type)
    • createTextInput

      public static elemental2.dom.HTMLInputElement createTextInput()
    • createTextArea

      public static elemental2.dom.HTMLTextAreaElement createTextArea()
    • createRadioButton

      public static elemental2.dom.HTMLInputElement createRadioButton()
    • loadScript

      public static void loadScript(String src, Runnable onLoad)