Class

com.raquo.dombuilder.jsdom.simple

SimpleHtmlElement

Related Doc: package simple

Permalink

class SimpleHtmlElement[+Ref <: Element] extends SimpleElement[Ref]

Linear Supertypes
SimpleElement[Ref], SimpleN, ChildNode[SimpleN, Ref, Node], Modifier[SimpleN with ParentNode[SimpleN, Node, Node]], ParentNode[SimpleN, Ref, Node], EventfulNode[SimpleN, Ref, Element, Node, Event, JsCallback], Element[SimpleN, Ref, Node], Node[SimpleN, Ref, Node], Element, Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleHtmlElement
  2. SimpleElement
  3. SimpleN
  4. ChildNode
  5. Modifier
  6. ParentNode
  7. EventfulNode
  8. Element
  9. Node
  10. Element
  11. Node
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleHtmlElement(tag: SimpleHtmlTag[Ref])

    Permalink

Type Members

  1. type BaseCallback = JsCallback[Event]

    Permalink
    Definition Classes
    EventfulNode
  2. type BaseChildNode = SimpleN with ChildNode[SimpleN, Node, Node]

    Permalink
    Definition Classes
    Node
  3. type BaseElement = SimpleN with Element[SimpleN, Node, Node]

    Permalink
    Definition Classes
    Node
  4. type BaseEventPropSetter = _EventPropSetter[_]

    Permalink
    Definition Classes
    EventfulNode
  5. type BaseNode = SimpleN with Node[SimpleN, Node, Node]

    Permalink
    Definition Classes
    Node
  6. type BaseParentNode = SimpleN with ParentNode[SimpleN, Node, Node]

    Permalink
    Definition Classes
    Node

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var _maybeEventListeners: Option[Buffer[BaseEventPropSetter]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    EventfulNode
  5. def addEventListener[Ev <: Event](eventPropSetter: _EventPropSetter[Ev])(implicit eventApi: _EventApi): Boolean

    Permalink

    returns

    Whether listener was added (false if such a listener has already been present)

    Definition Classes
    EventfulNode
  6. def appendChild(child: BaseChildNode)(implicit treeApi: TreeApi[SimpleN, Node]): Boolean

    Permalink

    returns

    Whether child was successfully appended

    Definition Classes
    ParentNode
  7. def apply(parentNode: BaseParentNode): Unit

    Permalink
    Definition Classes
    ChildNode → Modifier
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def indexOfChild(child: BaseChildNode): Int

    Permalink
    Definition Classes
    ParentNode
  16. def indexOfEventListener[Ev <: Event](eventPropSetter: _EventPropSetter[Ev]): Int

    Permalink
    Definition Classes
    EventfulNode
  17. def insertChild(child: BaseChildNode, atIndex: Int)(implicit treeApi: TreeApi[SimpleN, Node]): Boolean

    Permalink

    returns

    Whether child was successfully inserted

    Definition Classes
    ParentNode
  18. def isDescendantOf(parent: BaseParentNode): Boolean

    Permalink
    Definition Classes
    ChildNode
    Annotations
    @inline()
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def maybeChildren: Option[Buffer[BaseChildNode]]

    Permalink
    Definition Classes
    ParentNode
    Annotations
    @inline()
  21. def maybeEventListeners: Option[Buffer[BaseEventPropSetter]]

    Permalink
    Definition Classes
    EventfulNode
    Annotations
    @inline()
  22. def maybeParent: Option[BaseParentNode]

    Permalink
    Definition Classes
    ChildNode
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val ref: Ref

    Permalink

    Reference to the real DOM node which this Node represents.

    Reference to the real DOM node which this Node represents.

    Definition Classes
    SimpleHtmlElementNode
  27. def removeChild(child: BaseChildNode)(implicit treeApi: TreeApi[SimpleN, Node]): Boolean

    Permalink

    returns

    Whether child was successfully removed

    Definition Classes
    ParentNode
  28. def removeEventListener[Ev <: Event](eventPropSetter: _EventPropSetter[Ev])(implicit eventApi: _EventApi): Boolean

    Permalink
    Definition Classes
    EventfulNode
  29. def replaceAllChildren(newChildren: Iterable[BaseChildNode])(implicit treeApi: TreeApi[SimpleN, Node]): Unit

    Permalink
    Definition Classes
    ParentNode
  30. def replaceChild(oldChild: BaseChildNode, newChild: BaseChildNode)(implicit treeApi: TreeApi[SimpleN, Node]): Boolean

    Permalink

    Note: Does nothing if oldChild was not found in parent's children, or if oldChild==newChild

    Note: Does nothing if oldChild was not found in parent's children, or if oldChild==newChild

    returns

    Whether child was replaced

    Definition Classes
    ParentNode
  31. def replaceChildren(fromIndex: Int, toIndex: Int, newChildren: Iterable[BaseChildNode])(implicit treeApi: TreeApi[SimpleN, Node]): Boolean

    Permalink

    Note: Does nothing if fromIndex or toIndex are out of bounds or if fromIndex>toIndex

    Note: Does nothing if fromIndex or toIndex are out of bounds or if fromIndex>toIndex

    returns

    Whether children were replaced

    Definition Classes
    ParentNode
  32. def setParent(maybeNextParent: Option[BaseParentNode]): Unit

    Permalink

    Note: Make sure to call willSetParent before calling this method manually

    Note: Make sure to call willSetParent before calling this method manually

    Definition Classes
    ChildNode
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. val tag: SimpleHtmlTag[Ref]

    Permalink
    Definition Classes
    SimpleHtmlElement → Element
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. val treeApi: JsTreeApi[SimpleN]

    Permalink
    Definition Classes
    SimpleElementChildNode
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def willSetParent(maybeNextParent: Option[BaseParentNode]): Unit

    Permalink

    This is called as a notification, BEFORE changes to the real DOM or to the Scala DOM tree are applied.

    This is called as a notification, BEFORE changes to the real DOM or to the Scala DOM tree are applied. - Corollary: When this is called, this node's maybeParent reference has not been updated yet.

    Default implementation is a noop. You can override this to implement DOM lifecycle hooks similar to React's componentWillUnmount.

    Note: This method is NOT automatically called inside setParent because setParent is called AFTER the real DOM was modified. Therefore, IF you call setParent directly, you need to also call willSetParent before that, if you plan to implement that method. However, if you only call setParent indirectly, via the methods defined in ParentNode, those methods take care of calling willSetParent for you.

    maybeNextParent

    None means this node is about to be detached form its parent

    Definition Classes
    ChildNode
    Annotations
    @inline()

Inherited from SimpleElement[Ref]

Inherited from SimpleN

Inherited from ChildNode[SimpleN, Ref, Node]

Inherited from Modifier[SimpleN with ParentNode[SimpleN, Node, Node]]

Inherited from ParentNode[SimpleN, Ref, Node]

Inherited from EventfulNode[SimpleN, Ref, Element, Node, Event, JsCallback]

Inherited from Element[SimpleN, Ref, Node]

Inherited from Node[SimpleN, Ref, Node]

Inherited from Element

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped