kreuzberg

package kreuzberg

Members list

Packages

package kreuzberg.dom

Type members

Classlikes

Provided context for assembling operations.

Provided context for assembling operations.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Empty

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class Assembly(html: Html, handlers: Vector[EventBinding], subscriptions: Vector[Subscribeable[_]], headless: Vector[HeadlessComponent])

Return result of an Component.assemble operation, will be built into the Tree

Return result of an Component.assemble operation, will be built into the Tree

Value parameters

handlers

Event Handlers

headless

Headless children

html

HTML Code with embedded Components

subscriptions

Component Subscriptions

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class Channel[T]

A Channel is something where you can send data to and can subscribe in event bindings. They are allowed to be singletons. They are identified using their ID. There is only one channel of the same id allowed within an Engine.

A Channel is something where you can send data to and can subscribe in event bindings. They are allowed to be singletons. They are identified using their ID. There is only one channel of the same id allowed within an Engine.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Channel

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Channel.type
trait Component extends Identified

The base for all UI components.

The base for all UI components.

In practice you should use ComponentBase or SimpleComponentBase

Attributes

Supertypes
trait Identified
class Object
trait Matchable
class Any
Known subtypes

Simple base trait for Components.

Simple base trait for Components.

Attributes

Supertypes
trait Component
trait Identified
trait ComponentDsl
trait ContextDsl
class Object
trait Matchable
class Any
Show all
trait ComponentDsl extends ContextDsl

Attributes

Supertypes
trait ContextDsl
class Object
trait Matchable
class Any
Known subtypes
Self type
trait ContextDsl

Common Methods for building Component-Implementations

Common Methods for building Component-Implementations

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class Effect[T](fn: ExecutionContext => Future[T])

Wraps an Effect so that it is lazy

Wraps an Effect so that it is lazy

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Effect.type
sealed trait EventBinding

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SourceSink[E]
object EventBinding

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait EventSink[-E]

Sink of an EventBinding

Sink of an EventBinding

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ChannelSink[E]
class ExecuteCode[E]
class ModelChange[E, M]
class PreTransformer[E, F]
class SetProperty[D, S]
object EventSink

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
EventSink.type

DSL Methods which apply a sink

DSL Methods which apply a sink

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EventSource[E]
object Assembled
class ChannelSource[E]
class Js[E]
class OrSource[E]
class PostTransformer[E, O]
class Timer
trait EventTransformer[I, O]
class AddEffect[I, E]
class AddState[I, S]
class And[I]
class Chained[I, X, O]
class Collect[I, O]
class Empty[I]
class Map[I, O]
class Tapped[I]
class TryUnpack1[E]
class TryUnpack2[I, E]
Show all
sealed trait EventSource[+E] extends EventTransformable[E]

A Source of an EventBinding.

A Source of an EventBinding.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
object Assembled
class ChannelSource[E]
class Js[E]
class OrSource[E]
class PostTransformer[E, O]
class Timer
Show all
object EventSource

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EventSource[E]
object Assembled
class ChannelSource[E]
class Js[E]
class OrSource[E]
class PostTransformer[E, O]
class Timer
trait EventTransformer[I, O]
class AddEffect[I, E]
class AddState[I, S]
class And[I]
class Chained[I, X, O]
class Collect[I, O]
class Empty[I]
class Map[I, O]
class Tapped[I]
class TryUnpack1[E]
class TryUnpack2[I, E]
Show all

Methods which chain event sources.

Methods which chain event sources.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EventSource[E]
object Assembled
class ChannelSource[E]
class Js[E]
class OrSource[E]
class PostTransformer[E, O]
class Timer
trait EventTransformer[I, O]
class AddEffect[I, E]
class AddState[I, S]
class And[I]
class Chained[I, X, O]
class Collect[I, O]
class Empty[I]
class Map[I, O]
class Tapped[I]
class TryUnpack1[E]
class TryUnpack2[I, E]
Show all
sealed trait EventTransformer[-I, +O] extends EventTransformable[O]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
class AddEffect[I, E]
class AddState[I, S]
class And[I]
class Chained[I, X, O]
class Collect[I, O]
class Empty[I]
class Map[I, O]
class Tapped[I]
class TryUnpack1[E]
class TryUnpack2[I, E]
Show all

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExtensibleServiceRepository(instances: Map[String, Any]) extends ServiceRepository

Service Repository where it's possible to add services.

Service Repository where it's possible to add services.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class FlatHtml(parts: Array[FlatHtmlElement])

Flattened HTML generated from a component for faster rerendering.

Flattened HTML generated from a component for faster rerendering.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object FlatHtml

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
FlatHtml.type

Helper for Building FlatHtml instances

Helper for Building FlatHtml instances

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait FlatHtmlElement

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Part
class PlaceHolder

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class HeadlessAssembly(handlers: Vector[EventBinding], subscriptions: Vector[Subscribeable[_]], children: Vector[HeadlessComponent])

Assembled service.

Assembled service.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

A Headless is like a component, but without an HTML-Representation. However it can define EventHandlers and Subscriptions.

A Headless is like a component, but without an HTML-Representation. However it can define EventHandlers and Subscriptions.

Attributes

Supertypes
trait Identified
class Object
trait Matchable
class Any
Known subtypes

Base trait for services.

Base trait for services.

Attributes

Supertypes
trait ContextDsl
trait Identified
class Object
trait Matchable
class Any
Show all
trait Html

Abstract HTML Code which can contain other HTML Snippets and embedded Components.

Abstract HTML Code which can contain other HTML Snippets and embedded Components.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SimpleHtml
object Html

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Html.type
trait Identified

Some object which has an identifier.

Some object which has an identifier.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Identifier

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Identifier.type

Builds identifiers.

Builds identifiers.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Default

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class JsEvent[T](componentId: Option[Identifier], name: String, fn: ScalaJsEvent => T, capture: Boolean)

A JavaScript DOM Event

A JavaScript DOM Event

Value parameters

capture

if true, the event will be captured.

componentId

the component ID, if not given, it's a window event.

fn

initial transformation function (executed directly in event handler, es needed e.g. for Transformation Events)

name

name of the event

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
JsEvent.type
object Logger

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type
final class Model[T] extends Subscribeable[T], Identified

A Model is something which holds a value and can be subscribed to. In contrast to channels, models carry a current value and are subscribed by components. They are allowed to be singletons. They are identified using their ID. There is only one model of the same id allowed within an Engine.

A Model is something which holds a value and can be subscribed to. In contrast to channels, models carry a current value and are subscribed by components. They are allowed to be singletons. They are identified using their ID. There is only one model of the same id allowed within an Engine.

Attributes

Companion
object
Supertypes
trait Identified
trait Subscribeable[T]
class Object
trait Matchable
class Any
object Model

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Model.type

Provides values for models.

Provides values for models.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait RuntimeState[S]

Encapsulates a runtime state field.

Encapsulates a runtime state field.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class And[S1, S2]
class Collect[S]
class Const[S]
trait JsRuntimeStateBase[D, S]
class JsProperty[D, S]
class JsRuntimeState[D, S]
class Mapping[S1, S2]
Show all
object RuntimeState

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

A Type class which provides names for services.

A Type class which provides names for services.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class ServiceNotFoundException(serviceName: String) extends RuntimeException

Exception thrown if a service is not found.

Exception thrown if a service is not found.

Attributes

Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Contains unique services identified by their Name.

Contains unique services identified by their Name.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

A Component base which uses a more imperative AssemblerContext for collecting event handlers and model subscriptions.

A Component base which uses a more imperative AssemblerContext for collecting event handlers and model subscriptions.

Attributes

Supertypes
trait Component
trait Identified
trait ComponentDsl
trait ContextDsl
class Object
trait Matchable
class Any
Show all
class SimpleContext(underlying: AssemblerContext) extends AssemblerContext

A simple of AssemblerContext which also collects event bindings / event subscriptions

A simple of AssemblerContext which also collects event bindings / event subscriptions

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all

Helpers for building imperative Components using SimpleContext

Helpers for building imperative Components using SimpleContext

Attributes

Supertypes
trait ComponentDsl
trait ContextDsl
class Object
trait Matchable
class Any
Known subtypes
Self type
case class SimpleHtml(tag: String, attributes: Vector[(String, Option[String])], children: Vector[SimpleHtmlNode], comment: String) extends Html, SimpleHtmlNode

Trivial implementation of Html. Note: just implemented enough to get it barely working.

Trivial implementation of Html. Note: just implemented enough to get it barely working.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Html
class Object
trait Matchable
class Any
Show all
sealed trait SimpleHtmlNode

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SimpleHtml
class Raw
class Text
class Wrapper

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Subscribeable[+T]

Something which can be subscribed.

Something which can be subscribed.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Model[T]
class Constant[T]
class Mapped[U, T]
object Subscribeable

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait UpdateResult

Result of an update operation of a component.

Result of an update operation of a component.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Append
class Build
class Prepend
object UpdateResult

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

Something which can be embedded into HTML.

Something which can be embedded into HTML.

Attributes

opaque type Identifier

Identifier for identifying things.

Identifier for identifying things.

Attributes