Trait

com.raquo.dombuilder.jsdom.simple

SimpleElement

Related Doc: package simple

Permalink

trait SimpleElement[+Ref <: Element] extends Element[SimpleN, Ref, Node] with EventfulNode[SimpleN, Ref, Element, Node, Event, JsCallback] with ParentNode[SimpleN, Ref, Node] with ChildNode[SimpleN, Ref, Node] with SimpleN

Linear Supertypes
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
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleElement
  2. SimpleN
  3. ChildNode
  4. Modifier
  5. ParentNode
  6. EventfulNode
  7. Element
  8. Node
  9. Element
  10. Node
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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

Abstract Value Members

  1. abstract 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
    Node
  2. abstract val tag: Tag[Any]

    Permalink
    Definition Classes
    Element

Concrete 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. def removeChild(child: BaseChildNode)(implicit treeApi: TreeApi[SimpleN, Node]): Boolean

    Permalink

    returns

    Whether child was successfully removed

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

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

    Permalink
    Definition Classes
    ParentNode
  29. 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
  30. 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
  31. 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
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. 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 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