SingleMountPoint

com.thoughtworks.binding.Binding$.SingleMountPoint
abstract class SingleMountPoint[-Value](upstream: Binding[Value])

A mechanism that mounts the result of a data binding expression of a single value into DOM or other system.

Use this class only if you must override mount or unmount. If you only want to override set, you can use Binding[Unit] { onUpstreamChange(upstream.bind) } instead.

Attributes

Source:
Binding.scala
Graph
Supertypes
trait Binding[Unit]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

protected def set(value: Value): Unit

Attributes

Source:
Binding.scala

Concrete methods

protected def mount(): Unit

Attributes

Source:
Binding.scala
protected def unmount(): Unit

Attributes

Source:
Binding.scala

Inherited methods

override protected def addChangedListener(listener: ChangedListener[Unit]): Unit

Attributes

Definition Classes
MountPoint -> Binding
Inherited from:
MountPoint (hidden)
Source:
Binding.scala
final def flatMap[B](f: Unit => Binding[B]): Binding[B]

Attributes

Inherited from:
Binding
Source:
Binding.scala
final def map[B](f: Unit => B): Binding[B]

Attributes

Inherited from:
Binding
Source:
Binding.scala
override protected def removeChangedListener(listener: ChangedListener[Unit]): Unit

Attributes

Definition Classes
MountPoint -> Binding
Inherited from:
MountPoint (hidden)
Source:
Binding.scala
final def unwatch(): Unit

Disable automatic recalculation.

Disable automatic recalculation.

Attributes

Note:

This method is recursive, which means that the dependencies of this Binding will be unwatched as well.

Inherited from:
Binding
Source:
Binding.scala
override protected def value: Unit

Returns the current value of this Binding

Returns the current value of this Binding

Attributes

Note:

This method must not be invoked inside a @dom method body or a Binding { ... } block..

Definition Classes
MountPoint -> Binding
Inherited from:
MountPoint (hidden)
Source:
Binding.scala
final def watch(): Unit

Enable automatic recalculation.

Enable automatic recalculation.

You may invoke this method more than once. Then, when you want to disable automatic recalculation, you must invoke unwatch same times as the number of calls to this method.

Attributes

Note:

This method is recursive, which means that the dependencies of this Binding will be watched as well.

Inherited from:
Binding
Source:
Binding.scala