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]
- Alphabetic
- By Inheritance
- ComponentInstance
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- 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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applyEvent(eventId: EventId): Boolean
- def applyRenderContext(parameters: P, rc: StatefulRenderContext[Effect[F, AS, M]], snapshot: Snapshot): Unit
- def applyTransition(transition: Transition[CS]): F[Unit]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val component: Component[F, CS, P, E]
-
def
dropObsoleteMisc(): Unit
Remove all delays and nested component instances which were not marked during applying render context.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handleFormDataProgress(descriptor: String, loaded: Int, total: Int): Unit
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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.
- def resolveFile(descriptor: String, files: List[File[LazyBytes[F]]]): Unit
- def resolveFormData(descriptor: String, formData: Try[FormData]): Unit
-
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. -
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )