Trait

diode

Circuit

Related Doc: package diode

Permalink

trait Circuit[M <: AnyRef] extends Dispatcher

Linear Supertypes
Dispatcher, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Circuit
  2. Dispatcher
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type Cursor = (M) ⇒ AnyRef

    Permalink
  2. type HandlerFunction = PartialFunction[AnyRef, ActionResult[M]]

    Permalink
  3. type Listener = () ⇒ Unit

    Permalink

Abstract Value Members

  1. abstract def actionHandler: HandlerFunction

    Permalink
    Attributes
    protected
  2. abstract val model: M

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addProcessor(processor: ActionProcessor): Unit

    Permalink

    Adds a new ActionProcessor to the action processing chain.

    Adds a new ActionProcessor to the action processing chain. The processor is called for every dispatched action.

  5. def apply(action: AnyRef): Unit

    Permalink
    Definition Classes
    Dispatcher
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def combineHandlers(handlers: ActionHandler[M, _]*): HandlerFunction

    Permalink

    Combines multiple ActionHandlers into a single partial function

  9. def dispatch(action: AnyRef): Unit

    Permalink

    Dispatch the action, call change listeners when completed

    Dispatch the action, call change listeners when completed

    action

    Action to dispatch

    Definition Classes
    CircuitDispatcher
  10. def dispatchBase(action: AnyRef): Unit

    Permalink

    Perform actual dispatching, without calling change listeners

    Perform actual dispatching, without calling change listeners

    Attributes
    protected
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def handleError(msg: String): Unit

    Permalink

    Handle a non-fatal error, such as dispatching an action with no action handler.

    Handle a non-fatal error, such as dispatching an action with no action handler.

    msg

    Error message

  16. def handleFatal(action: AnyRef, e: Throwable): Unit

    Permalink

    Handle a fatal error.

    Handle a fatal error. Override this function to do something with exceptions that occur while dispatching actions.

    action

    Action that caused the exception

    e

    Exception that was thrown

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def removeProcessor(processor: ActionProcessor): Unit

    Permalink

    Removes a previously added ActionProcessor from the action processing chain.

  23. def subscribe(listener: Listener, cursor: Cursor = m => m): () ⇒ Unit

    Permalink

    Subscribes to listen to changes in the model.

    Subscribes to listen to changes in the model. By providing a cursor you can limit what part of the model must change for your listener to be called. If omitted, all changes result in a call.

    listener

    Function to be called when model is updated

    cursor

    Cursor function returning the part of the model you are interested in. By default this is the root model, which means your listener is called on any change in the model.

    returns

    A function to unsubscribe your listener

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def zoom[T](get: (M) ⇒ T): ModelR[T]

    Permalink

    Zoom into the model using the get function

    Zoom into the model using the get function

    get

    Function that returns the part of the model you are interested in

    returns

    A ModelR[T] giving you read-only access to part of the model

  30. def zoomRW[T](get: (M) ⇒ T)(set: (M, T) ⇒ M): ModelRW[M, T]

    Permalink

    Zoom into the model using get and set functions

    Zoom into the model using get and set functions

    get

    Function that returns the part of the model you are interested in

    set

    Function that updates the part of the model you are interested in

    returns

    A ModelRW[T] giving you read/update access to part of the model

Inherited from Dispatcher

Inherited from AnyRef

Inherited from Any

Ungrouped