org.denigma.binding.views

ReactiveView

Related Doc: package views

abstract class ReactiveView extends OrganizedView

View that supports resolving some data from params as well as pattern matching on parents and events

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReactiveView
  2. OrganizedView
  3. BasicView
  4. IView
  5. BasicBinding
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReactiveView()

Type Members

  1. type ChildView = OrganizedView

    Definition Classes
    OrganizedViewBasicView
  2. type ParentView = OrganizedView

    Definition Classes
    OrganizedView

Abstract Value Members

  1. abstract def bindAttributes(el: HTMLElement, ats: Map[String, String]): Unit

    Definition Classes
    BasicBinding
  2. abstract def elem: HTMLElement

    Definition Classes
    BasicView
  3. abstract def makeDefault(el: HTMLElement, props: Map[String, Any] = Map.empty): ChildView

    Works when injectors fails to create a view

    Works when injectors fails to create a view

    el
    returns

    Definition Classes
    BasicView
  4. abstract def params: Map[String, Any]

Concrete 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. var _element: HTMLElement

    Attributes
    protected
    Definition Classes
    BasicView
  5. def addView(view: ChildView): ChildView

    Adds view to children

    Adds view to children

    view
    returns

    Definition Classes
    OrganizedViewBasicView
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def ask[Value, Result](value: Value, startWithMe: Boolean = false): Future[Result]

    Asks parent to provide some future

    Asks parent to provide some future

    Value
    Result
    value
    startWithMe
    returns

  8. def attributesToParams(el: HTMLElement): Map[String, Any]

    Turns data-param attribute into real param NOTE: If you want to pass other params to child views, just override this function

    Turns data-param attribute into real param NOTE: If you want to pass other params to child views, just override this function

    el
    returns

    Attributes
    protected
    Definition Classes
    ReactiveViewBasicView
  9. def bind(el: HTMLElement): Unit

    Binds nodes to the element

    Binds nodes to the element

    el

    Definition Classes
    BasicView
  10. def bindElement(el: HTMLElement): Unit

    Binds element attributes

    Binds element attributes

    el

    Attributes
    protected
    Definition Classes
    BasicView
  11. def bindRx[T](key: String, el: HTMLElement, rx: Rx[T])(assign: (HTMLElement, T) ⇒ Unit): Unit

    Binds value to reactive property

    Binds value to reactive property

    T

    type param

    key

    key to witch to bind to

    el

    html element

    rx

    reactive variable

    assign

    assign function that assigns value to html element

    returns

    Definition Classes
    BasicBinding
  12. def bindVar[T](key: String, el: HTMLElement, v: Var[T])(assign: (HTMLElement, Var[T]) ⇒ Unit): Unit

    Definition Classes
    BasicBinding
  13. def bindView(el: HTMLElement): Unit

    Fires when view was binded by default does the same as bind

    Fires when view was binded by default does the same as bind

    el

    Definition Classes
    BasicViewIView
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def collectFirstSubView[B](pf: PartialFunction[OrganizedView, B])(implicit where: Seq[ChildView] = this.subviews.values.toSeq): Option[B]

    Definition Classes
    OrganizedView
  16. def collectFirstView[B](pf: PartialFunction[OrganizedView, B]): Option[B]

    Definition Classes
    OrganizedView
  17. def createHTML(string: String): HTMLElement

    Trick to create an html

    Trick to create an html

    string
    returns

    Definition Classes
    OrganizedView
  18. def createView(el: HTMLElement, viewAtt: String): ChildView

    Creates view

    Creates view

    el
    viewAtt
    returns

    Attributes
    protected
    Definition Classes
    BasicView
  19. def dataAttributesOnly(ats: Map[String, String]): Map[String, String]

    Attributes
    protected
    Definition Classes
    BasicBinding
  20. implicit def defaultInjector: Injector[OrganizedView]

    Definition Classes
    OrganizedViewBasicView
  21. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def findNearestParentViewName(el: HTMLElement): Option[String]

    Finds a view that

    Finds a view that

    el
    returns

    Definition Classes
    OrganizedView
  25. def findSubView(viewName: String)(implicit where: Map[String, ChildView] = this.subviews): Option[ChildView]

    Definition Classes
    OrganizedView
  26. def findView(viewName: String): Option[ChildView]

    Finds view if it exists

    Finds view if it exists

    viewName
    returns

    Definition Classes
    OrganizedView
  27. def fire(event: BindingEvent, startWithMe: Boolean = false): Unit

    Fires an event

    Fires an event

    event
    startWithMe

  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def hasParent: Boolean

    If this view has any parent.

    If this view has any parent. Usually top view as well as views that are not in dome yet do not have parents

    returns

    Definition Classes
    OrganizedView
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. val id: String

    Id of this view

    Id of this view

    Definition Classes
    BasicViewIViewBasicBinding
  32. def inject(viewName: String, el: HTMLElement, params: Map[String, Any])(implicit injector: Injector[ChildView]): ChildView

    Extracts view by name from element

    Extracts view by name from element

    viewName

    name of the view

    el

    html element

    params

    some other optional params needed to init the view

    returns

    Definition Classes
    OrganizedViewBasicView
  33. def isInside(element: HTMLElement, me: HTMLElement = this.viewElement): Boolean

    checks if this view is inside some html element in the tree

    checks if this view is inside some html element in the tree

    element
    me
    returns

    Definition Classes
    BasicView
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. def isTopView: Boolean

    Definition Classes
    OrganizedView
  36. def loadElementInto(el: HTMLElement, newInnerHTML: String, uri: String = ""): Unit

    Overrides for load element into that includes view switching NOTE it always executes by top view (if this new is not top it redirects to topview)

    Overrides for load element into that includes view switching NOTE it always executes by top view (if this new is not top it redirects to topview)

    el

    element

    newInnerHTML

    new content of the inner html

    uri

    uri (for push state)

    Definition Classes
    OrganizedView
  37. def makeEventHandler[TEV <: Event, TV](el: HTMLElement, par: Rx[TV])(assign: (TEV, Var[TV], HTMLElement) ⇒ Unit): (TEV) ⇒ Unit

    Creates and even handler that can be attached to different listeners

    Creates and even handler that can be attached to different listeners

    TEV

    type of event

    TV

    type of rx

    el

    element

    par

    rx parameter

    assign

    function that assigns var values to some element properties

    returns

    Definition Classes
    BasicBinding
  38. def makeId(el: HTMLElement, title: String): String

    Makes id for the binding element

    Makes id for the binding element

    el

    html element

    title

    title of id

    returns

    Definition Classes
    BasicBinding
  39. def name: String

    Definition Classes
    BasicView
  40. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  41. def nearestParentOf[TResult](func: PartialFunction[ParentView, TResult]): Option[TResult]

    Take nearest parent that satisfy partial function conditions and maps it to arbitary result In other words you can find a parent that satisfy your needs and extract everything you want from it

    Take nearest parent that satisfy partial function conditions and maps it to arbitary result In other words you can find a parent that satisfy your needs and extract everything you want from it

    TResult
    func
    returns

    Definition Classes
    OrganizedView
  42. final def notify(): Unit

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

    Definition Classes
    AnyRef
  44. def otherPartial: PartialFunction[String, Unit]

    Attributes
    protected
    Definition Classes
    BasicBinding
  45. var parent: Option[ParentView]

    Definition Classes
    OrganizedView
  46. def parseHTML(string: String): Option[HTMLElement]

    Definition Classes
    IView
  47. def processUrl(url: String, relativeURI: Boolean = true): String

    Attributes
    protected
    Definition Classes
    BasicBinding
  48. def propagate(event: BindingEvent): Unit

    Attributes
    protected
  49. def propagateFuture(event: PromiseEvent[_, _]): Any

    Propogates future to the top for some reason

    Propogates future to the top for some reason

    event
    returns

    Attributes
    protected
  50. def receive: PartialFunction[BindingEvent, Unit]

    Event subsystem

    Event subsystem

    returns

  51. def receiveFuture: PartialFunction[PromiseEvent[_, _], Unit]

  52. def refreshChildView(viewId: String, newElement: HTMLElement): Unit

    refreshes child view

    refreshes child view

    viewId
    newElement

    Definition Classes
    OrganizedView
  53. def refreshMe(newElement: HTMLElement): Unit

    Replaces viewElement of the view and rebinds it

    Replaces viewElement of the view and rebinds it

    newElement

    Definition Classes
    OrganizedView
  54. def removeSubViewsFrom(element: HTMLElement): Unit

    Removes all subviews that were inside element in the tree

    Removes all subviews that were inside element in the tree

    element

    Definition Classes
    OrganizedView
  55. def removeView(view: ChildView): Unit

    Removes a view from subviews

    Removes a view from subviews

    view

    Definition Classes
    OrganizedViewBasicView
  56. def removeViewByName(nm: String): Unit

    Removes view

    Removes view

    nm

    view name to remove

    Definition Classes
    BasicView
  57. def removeWithView(element: HTMLElement): Unit

    Removes view, starts search from the top

    Removes view, starts search from the top

    element

    Definition Classes
    OrganizedView
  58. def resolveKey[Result](key: String)(fun: PartialFunction[Any, Result]): Result

    Resolves mandatory keys from either this view or parent view

    Resolves mandatory keys from either this view or parent view

    Result
    key
    fun
    returns

  59. def resolveKeyOption[Result](key: String, who: ReactiveView = this)(fun: PartialFunction[Any, Result]): Option[Result]

  60. def resolveMyKey[Result](key: String)(fun: PartialFunction[Any, Result]): Option[Result]

    Attributes
    protected
  61. def stackToString(e: Throwable): String

    Attributes
    protected
    Definition Classes
    BasicView
  62. implicit var subviews: Map[String, ChildView]

    Definition Classes
    BasicView
  63. def switchInner(el: HTMLElement, newInnerHTML: String): Unit

    Changes inner HTML removing redundant views

    Changes inner HTML removing redundant views

    el

    element which inner html will change

    newInnerHTML

    new inner html value

    Definition Classes
    OrganizedViewBasicView
  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  65. def toString(): String

    Definition Classes
    AnyRef → Any
  66. var topView: OrganizedView

    Definition Classes
    OrganizedView
  67. def unbind(el: HTMLElement): Unit

    Definition Classes
    BasicView
  68. def unbindView(): Unit

    Definition Classes
    BasicViewIView
  69. def viewElement: HTMLElement

    Definition Classes
    BasicViewIView
  70. def viewElement_=(value: HTMLElement): Unit

    Definition Classes
    BasicView
  71. def viewFrom(el: HTMLElement): Option[String]

    * Extracts view

    * Extracts view

    el
    returns

    Definition Classes
    BasicView
  72. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. def withParam(name: String, params: Map[String, Any]): Map[String, Any]

    is overriden in parent views

    is overriden in parent views

    name
    params
    returns

    Attributes
    protected
    Definition Classes
    BasicView
  76. def writeTree(level: Int = 0): String

    prepares view tree for printing

    prepares view tree for printing

    level
    returns

    Definition Classes
    OrganizedView

Inherited from OrganizedView

Inherited from BasicView

Inherited from IView

Inherited from BasicBinding

Inherited from AnyRef

Inherited from Any

Ungrouped