StdUiCalculation

org.terminal21.client.components.StdUiCalculation
trait StdUiCalculation[OUT](name: String, dataUi: UiElement & HasStyle)(using session: ConnectedSession, executor: FiberExecutor) extends Calculation[OUT], UiComponent

Creates a standard UI for a calculation which may take time. While the calculation runs, the UI is grayed out, including the dataUi component. When the calculation completes, it allows for updating the dataUi component.

Type parameters

OUT

the return value of the calculation.

Attributes

Graph
Supertypes
trait UiComponent
trait UiElement
trait Calculation[OUT]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def onError(t: Throwable): Unit

Attributes

Definition Classes
override protected def whenResultsNotReady(): Unit

Attributes

Definition Classes
override protected def whenResultsReady(results: OUT): Unit

Attributes

Definition Classes

Inherited methods

def addChildren(e: UiElement*): A

Attributes

Inherited from:
HasChildren
protected def calculation(): OUT

Attributes

Inherited from:
Calculation
def key: String

Attributes

Inherited from:
UiElement
def reCalculate(): Fiber[OUT]

Attributes

Inherited from:
Calculation
def render()(using session: ConnectedSession): Unit

Attributes

Inherited from:
UiElement
def run(): Fiber[OUT]

Attributes

Inherited from:
Calculation
def withChildren(cn: UiElement*): A

Attributes

Inherited from:
HasChildren

Concrete fields

val badge: Badge
var children: Seq[UiElement]
val header: Box
val recalc: Button