Context

trait Context[T <: Txn[T]] extends Disposable[T]
Companion:
object
trait Disposable[T]
class Object
trait Matchable
class Any
trait Headless[T]
trait ContextMixin[T]
class ContextImpl[T]

Value members

Abstract methods

def attr: Attr[T]
def getProperty[A](control: Control, key: String)(implicit tx: T): Option[A]
def initGraph(g: Graph)(implicit tx: T): Unit

Prepares graph expansion by copying control properties over for subsequent look-up through getProperty.

Prepares graph expansion by copying control properties over for subsequent look-up through getProperty.

def nested[A](it: Expanded[T, _])(body: => A)(implicit tx: T): (A, Disposable[T])

Creates a temporary nested context into which all visit calls are redirected, thus a compound Disposable can be returned.

Creates a temporary nested context into which all visit calls are redirected, thus a compound Disposable can be returned.

def reactTo[A](event: EventLike[T, A])(fun: T => A => Unit)(implicit tx: T): Disposable[T]

Installs a reaction to an event. Depending on the type of context, this will simply call event.changed.react with the given fun (when the context is for an Act or Control or Widget), or in will register the event as used (when the context is for an ex-obj).

Installs a reaction to an event. Depending on the type of context, this will simply call event.changed.react with the given fun (when the context is for an Act or Control or Widget), or in will register the event as used (when the context is for an ex-obj).

def selfOption(implicit tx: T): Option[Obj[T]]
def visit[U <: Disposable[T]](ref: AnyRef, init: => U)(implicit tx: T): U

Inherited methods

def dispose()(implicit tx: T): Unit
Inherited from:
Disposable

Implicits

Implicits

implicit def cursor: Cursor[T]
implicit def targets: ITargets[T]
implicit def undoManager: UndoManager[T]
implicit def workspace: Workspace[T]