Packages

c

korolev.internal

ComponentInstance

final class ComponentInstance[F[_], AS, M, CS, P, E] extends AnyRef

Component state holder and effects performer

Performing cycle:

1. prepare() 2. Optionally setState() 3. applyRenderContext() 4. dropObsoleteMisc()

Self Type
ComponentInstance[F, AS, M, CS, P, E]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComponentInstance
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComponentInstance(nodeId: Id, sessionId: QualifiedSessionId, frontend: ClientSideApi[F], eventRegistry: EventRegistry[F], stateManager: StateManager[F], getRenderNum: () ⇒ Int, component: Component[F, CS, P, E], reporter: Reporter)(implicit arg0: Async[F], arg1: Scheduler[F], arg2: StateSerializer[AS], arg3: StateDeserializer[AS], arg4: StateSerializer[CS], arg5: StateDeserializer[CS])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def applyEvent(eventId: EventId): Boolean
  5. def applyRenderContext(parameters: P, rc: StatefulRenderContext[Effect[F, AS, M]], snapshot: Snapshot): Unit
  6. def applyTransition(transition: Transition[CS]): F[Unit]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. val component: Component[F, CS, P, E]
  10. def dropObsoleteMisc(): Unit

    Remove all delays and nested component instances which were not marked during applying render context.

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def handleFormDataProgress(descriptor: String, loaded: Int, total: Int): Unit
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def prepare(): Unit

    Prepares component instance to applying render context.

    Prepares component instance to applying render context. Removes all temporary and obsolete misc. All nested components also will be prepared.

  22. def resolveFile(descriptor: String, files: List[File[LazyBytes[F]]]): Unit
  23. def resolveFormData(descriptor: String, formData: Try[FormData]): Unit
  24. def setEventsSubscription(callback: Function1[E, _]): Unit

    Subscribes to component instance events.

    Subscribes to component instance events. Callback will be invoked on call of access.publish() in the component instance context.

  25. def subscribeStateChange(callback: (Id, Any) ⇒ Unit): () ⇒ Unit

    Subscribe to component instance state changes.

    Subscribe to component instance state changes. Callback will be invoked for every state change.

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped