TreeNode

kreuzberg.engine.common.TreeNode
See theTreeNode companion object
case class TreeNode(component: HeadlessOrComponent, html: Html, children: Vector[TreeNode], handlers: Vector[EventBinding], subscriptions: Vector[Identifier])

A Tree Representation of a component.

Value parameters

children

children nodes

component

Kreuzberg Service / Component

handlers

Event bindings

html

HTML representation

subscriptions

subscribed models

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def allReferencedComponentIds: Iterator[Identifier]

All referenced component ids.

All referenced component ids.

Attributes

def allSubscriptions: Iterator[(Identifier, Identifier)]

All subscriptions of this tree, modelId to component id.

All subscriptions of this tree, modelId to component id.

Attributes

def foreach(f: TreeNode => Unit): Unit
def id: Identifier

Returns the event identifier.

Returns the event identifier.

Attributes

def iterator: Iterator[TreeNode]
def render(): String

Renders the tree node.

Renders the tree node.

Attributes

def renderTo(sb: StringBuilder): Unit

Render into a StringBuilder.

Render into a StringBuilder.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val flatHtml: FlatHtml