Class HtmlUtil
java.lang.Object
dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.util.HtmlUtil
- Author:
- Bruno Salmon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends elemental2.dom.HTMLElement>
EabsolutePosition
(E e) static <E extends elemental2.dom.HTMLElement>
EaddPseudoClass
(E e, String pseudoClass) static <E extends elemental2.dom.Element>
EappendAttribute
(E e, String name, String value, String separator) static <N extends elemental2.dom.Node>
NappendChild
(N parent, elemental2.dom.Node child) static <N extends elemental2.dom.Node>
NappendChildren
(N parent, elemental2.dom.Node... children) static <N extends elemental2.dom.Node>
NappendChildren
(N parent, Iterable<? extends elemental2.dom.Node> children) static <N extends elemental2.dom.Node>
NappendFirstChild
(N parent, elemental2.dom.Node child) static <E extends elemental2.dom.Element>
EappendStyle
(E e, String style) static elemental2.dom.HTMLButtonElement
static elemental2.dom.HTMLDivElement
static <E extends elemental2.dom.Element>
EcreateElement
(String tagName) static elemental2.dom.HTMLImageElement
static elemental2.dom.HTMLInputElement
createInputElement
(String type) static elemental2.dom.HTMLLabelElement
static <E extends elemental2.dom.Node>
EcreateNodeFromHtml
(String innerHTML) static elemental2.dom.HTMLOptionElement
static elemental2.dom.HTMLInputElement
static elemental2.dom.HTMLSelectElement
static elemental2.dom.HTMLElement
static elemental2.dom.HTMLTableElement
static elemental2.dom.HTMLTextAreaElement
static elemental2.dom.HTMLInputElement
static <T> T
getJsJavaObjectAttribute
(Object o, String name) static void
loadScript
(String src, Runnable onLoad) static <N extends elemental2.dom.Node>
NremoveChild
(N parent, elemental2.dom.Node child) static <N extends elemental2.dom.Node>
NremoveChildren
(N parent) static <N extends elemental2.dom.Node>
NremoveChildren
(N parent, Iterable<? extends elemental2.dom.Node> children) static <N extends elemental2.dom.Node>
NremoveChildrenUpToScripts
(N node) static <E extends elemental2.dom.HTMLElement>
EremovePseudoClass
(E e, String pseudoClass) static <N extends elemental2.dom.Node>
NreplaceNode
(elemental2.dom.Node oldNode, N newNode) static <E extends elemental2.dom.Element>
EsetAttribute
(E e, String name, String value) static elemental2.dom.HTMLBodyElement
setBodyContent
(elemental2.dom.Node content) static <N extends elemental2.dom.Node>
NsetChild
(N parent, elemental2.dom.Node child) static <N extends elemental2.dom.Node>
NsetChildren
(N parent, elemental2.dom.Node... children) static <N extends elemental2.dom.Node>
NsetChildren
(N parent, Iterable<? extends elemental2.dom.Node> children) static void
setJsAttribute
(Object o, String name, String value) static void
setJsJavaObjectAttribute
(Object o, String name, Object value) static <E extends elemental2.dom.HTMLElement>
EsetPseudoClass
(E e, String pseudoClass) static <E extends elemental2.dom.HTMLElement>
EsetPseudoClass
(E e, String pseudoClass, boolean present) static <E extends elemental2.dom.Element>
Estatic <E extends elemental2.dom.Element>
EsetStyleAttribute
(E e, String name, Object value) static <N extends elemental2.dom.Node>
NsetStyleAttribute
(N node, String name, Object value)
-
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
-
appendAttribute
-
setPseudoClass
-
setPseudoClass
public static <E extends elemental2.dom.HTMLElement> E setPseudoClass(E e, String pseudoClass, boolean present) -
addPseudoClass
-
removePseudoClass
-
setStyle
-
setStyleAttribute
-
setStyleAttribute
-
appendStyle
-
setJsAttribute
-
setJsJavaObjectAttribute
-
getJsJavaObjectAttribute
-
createElement
-
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
-
createSpanElement
public static elemental2.dom.HTMLElement createSpanElement() -
createInputElement
-
createTextInput
public static elemental2.dom.HTMLInputElement createTextInput() -
createTextArea
public static elemental2.dom.HTMLTextAreaElement createTextArea() -
createRadioButton
public static elemental2.dom.HTMLInputElement createRadioButton() -
loadScript
-