abstract class ActionHandler[M, T] extends AnyRef
Base class for all action handlers.
- Alphabetic
- By Inheritance
- ActionHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Abstract Value Members
-
abstract
def
handle: PartialFunction[Any, ActionResult[M]]
Override this function to handle dispatched actions.
Override this function to handle dispatched actions.
- Attributes
- protected
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
effectOnly(effect: Effect): ActionResult[M]
Helper function to create an
EffectOnly
result with the provided effect. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handleAction(model: M, action: Any): Option[ActionResult[M]]
Handles the incoming action by updating current model and calling the real
handle
function -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val liftedHandler: (Any) ⇒ Option[ActionResult[M]]
- val modelRW: ModelRW[M, T]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
noChange: ActionResult[M]
Helper function when the action does no model changes or effects.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
runAfter[A](delay: FiniteDuration)(f: ⇒ A)(implicit arg0: ActionType[A], runner: RunAfter, ec: ExecutionContext): Effect
Helper function to create a delayed effect.
Helper function to create a delayed effect.
- delay
How much to delay the effect.
- f
Result of the effect
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updated(newValue: T, effect: Effect): ActionResult[M]
Helper function to create a
ModelUpdateEffect
result from a new value and an effect. -
def
updated(newValue: T): ActionResult[M]
Helper function to create a
ModelUpdate
result from a new value. -
def
updatedSilent(newValue: T, effect: Effect): ActionResult[M]
Helper function to create a
ModelUpdateSilentEffect
result from a new value and an effect.Helper function to create a
ModelUpdateSilentEffect
result from a new value and an effect. Being silent, the update prevents any calls to listeners. -
def
updatedSilent(newValue: T): ActionResult[M]
Helper function to create a
ModelUpdateSilent
result from a new value.Helper function to create a
ModelUpdateSilent
result from a new value. Being silent, the update prevents any calls to listeners. -
def
value: T
Helper function that returns the current value from the model.
-
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
- @throws( ... ) @native()