diode

Circuit

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Cursor = (M) ⇒ AnyRef

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

  3. type Listener = () ⇒ Unit

Abstract Value Members

  1. abstract def actionHandler: HandlerFunction

    Attributes
    protected
  2. abstract val model: M

    Attributes
    protected

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addProcessor(processor: ActionProcessor): Unit

    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.

    processor

  7. def apply(action: AnyRef): Unit

    Definition Classes
    Dispatcher
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Combines multiple ActionHandlers into a single partial function

    Combines multiple ActionHandlers into a single partial function

    handlers
    returns

  11. def dispatch(action: AnyRef): Unit

    Dispatch the action, call change listeners when completed

    Dispatch the action, call change listeners when completed

    action

    Action to dispatch

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

    Perform actual dispatching, without calling change listeners

    Perform actual dispatching, without calling change listeners

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

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

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

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

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

    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

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

    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

  19. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

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

    Removes a previously added ActionProcessor from the action processing chain.

    Removes a previously added ActionProcessor from the action processing chain.

    processor

  25. def subscribe(listener: () ⇒ Unit, cursor: (M) ⇒ AnyRef = m => m): () ⇒ Unit

    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

  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
    @throws( ... )
  31. def zoom[T](get: (M) ⇒ T): ModelR[T]

    Zoom into the model using the get function

    Zoom into the model using the get function

    T
    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

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

    Zoom into the model using get and set functions

    Zoom into the model using get and set functions

    T
    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