Trait/Object

com.raquo.dombuilder.generic.nodes

ChildNode

Related Docs: object ChildNode | package nodes

Permalink

trait ChildNode[N, +Ref <: BaseRef, BaseRef] extends Node[N, Ref, BaseRef] with Modifier[N with ParentNode[N, BaseRef, BaseRef]]

This trait represents a Node that can have a parent. All nodes except Root extend this trait.

Self Type
ChildNode[N, Ref, BaseRef] with N
Linear Supertypes
Modifier[N with ParentNode[N, BaseRef, BaseRef]], Node[N, Ref, BaseRef], domtypes.generic.nodes.Node, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChildNode
  2. Modifier
  3. Node
  4. Node
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type BaseChildNode = N with ChildNode[N, BaseRef, BaseRef]

    Permalink
    Definition Classes
    Node
  2. type BaseElement = N with Element[N, BaseRef, BaseRef]

    Permalink
    Definition Classes
    Node
  3. type BaseNode = N with Node[N, BaseRef, BaseRef]

    Permalink
    Definition Classes
    Node
  4. type BaseParentNode = N with ParentNode[N, BaseRef, BaseRef]

    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 treeApi: TreeApi[N, BaseRef]

    Permalink

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. def apply(parentNode: (ChildNode.this)#BaseParentNode): Unit

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def isDescendantOf(parent: (ChildNode.this)#BaseParentNode): Boolean

    Permalink
    Annotations
    @inline()
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def maybeParent: Option[(ChildNode.this)#BaseParentNode]

    Permalink
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def setParent(maybeNextParent: Option[(ChildNode.this)#BaseParentNode]): Unit

    Permalink

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

  19. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def willSetParent(maybeNextParent: Option[(ChildNode.this)#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

    Annotations
    @inline()

Inherited from Modifier[N with ParentNode[N, BaseRef, BaseRef]]

Inherited from Node[N, Ref, BaseRef]

Inherited from domtypes.generic.nodes.Node

Inherited from AnyRef

Inherited from Any

Ungrouped