org.denigma.binding.views

BindableView

Related Docs: object BindableView | package views

trait BindableView extends ReactiveView

View that can have binders attached to it

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

Type Members

  1. type Binder = BasicBinding

  2. type ChildView = OrganizedView

    Definition Classes
    OrganizedViewBasicView
  3. type ParentView = OrganizedView

    Definition Classes
    OrganizedView

Abstract Value Members

  1. abstract def activateMacro(): Unit

    is used to fill in all variables extracted by macro usually it is just this.extractEverything(this)

  2. abstract def attachBinders(): Unit

    Attributes
    protected
  3. abstract def elem: HTMLElement

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

    Definition Classes
    ReactiveView

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

    Definition Classes
    ReactiveView
  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 bindAttributes(el: HTMLElement, ats: Map[String, String]): Unit

    Definition Classes
    BindableViewBasicBinding
  11. def bindElement(el: HTMLElement): Unit

    Binds element attributes

    Binds element attributes

    el

    Attributes
    protected
    Definition Classes
    BasicView
  12. 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
  13. def bindVar[T](key: String, el: HTMLElement, v: Var[T])(assign: (HTMLElement, Var[T]) ⇒ Unit): Unit

    Definition Classes
    BasicBinding
  14. 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
    BindableViewBasicViewIView
  15. var binders: List[Binder]

  16. def clone(): AnyRef

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

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

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

    Trick to create an html

    Trick to create an html

    string
    returns

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

    Creates view

    Creates view

    el
    viewAtt
    returns

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

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

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

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

    Definition Classes
    AnyRef → Any
  25. def extractors: SeqView[BasicBinding with Extractor, Seq[_]]

  26. def finalize(): Unit

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

    Finds a view that

    Finds a view that

    el
    returns

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

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

    Finds view if it exists

    Finds view if it exists

    viewName
    returns

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

    Fires an event

    Fires an event

    event
    startWithMe

    Definition Classes
    ReactiveView
  31. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  32. 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
  33. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  34. val id: String

    Id of this view

    Id of this view

    Definition Classes
    BasicViewIViewBasicBinding
  35. 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
  36. 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
  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. def isTopView: Boolean

    Definition Classes
    OrganizedView
  39. 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
  40. 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
    BindableViewBasicView
  41. 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
  42. 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
  43. def name: String

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

    Definition Classes
    AnyRef
  45. 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
  46. final def notify(): Unit

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    ReactiveView
  53. 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
    Definition Classes
    ReactiveView
  54. def receive: PartialFunction[BindingEvent, Unit]

    Event subsystem

    Event subsystem

    returns

    Definition Classes
    ReactiveView
  55. def receiveFuture: PartialFunction[PromiseEvent[_, _], Unit]

    Definition Classes
    ReactiveView
  56. def refreshChildView(viewId: String, newElement: HTMLElement): Unit

    refreshes child view

    refreshes child view

    viewId
    newElement

    Definition Classes
    OrganizedView
  57. 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
  58. 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
  59. def removeView(view: ChildView): Unit

    Removes a view from subviews

    Removes a view from subviews

    view

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

    Removes view

    Removes view

    nm

    view name to remove

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

    Removes view, starts search from the top

    Removes view, starts search from the top

    element

    Definition Classes
    OrganizedView
  62. 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

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

    Definition Classes
    ReactiveView
  64. def resolveMyKey[Result](key: String)(fun: PartialFunction[Any, Result]): Option[Result]

    Attributes
    protected
    Definition Classes
    ReactiveView
  65. def stackToString(e: Throwable): String

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

    Definition Classes
    BasicView
  67. 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
  68. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  69. def toString(): String

    Definition Classes
    AnyRef → Any
  70. var topView: OrganizedView

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

    Definition Classes
    BindableViewBasicView
  72. def unbindView(): Unit

    Definition Classes
    BasicViewIView
  73. def viewElement: HTMLElement

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

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

    * Extracts view

    * Extracts view

    el
    returns

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. def withBinders(binder: Binder*): BindableView.this.type

  80. def withBinders(bns: List[Binder]): BindableView.this.type

  81. 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
  82. def writeTree(level: Int = 0): String

    prepares view tree for printing

    prepares view tree for printing

    level
    returns

    Definition Classes
    OrganizedView

Inherited from ReactiveView

Inherited from OrganizedView

Inherited from BasicView

Inherited from IView

Inherited from BasicBinding

Inherited from AnyRef

Inherited from Any

Ungrouped