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
protected def updateUi(dataUi: UiElement & HasStyle[_]): Unit
override protected def whenResultsNotReady(): Unit

Attributes

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

Attributes

Definition Classes

Inherited methods

protected def calculation(): OUT

Attributes

Inherited from:
Calculation
override def flat: Seq[UiElement]

Attributes

Definition Classes
Inherited from:
UiComponent
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 renderChanges()(using session: ConnectedSession): Unit

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Renders any changes for this element and it's children (if any). The element must previously have been added to the session.

Attributes

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

Attributes

Inherited from:
Calculation

Concrete fields

lazy val badge: Badge
lazy val recalc: Button
lazy override val rendered: Seq[UiElement]