Class/Object

org.denigma.binding.views

MapCollectionView

Related Docs: object MapCollectionView | package views

Permalink

abstract class MapCollectionView extends OrganizedView with ItemsSeqView

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapCollectionView
  2. ItemsSeqView
  3. CollectionView
  4. BindableView
  5. BubbleView
  6. OrganizedView
  7. BasicView
  8. IDGenerator
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapCollectionView(elem: Element)

    Permalink

Type Members

  1. type ChildView = OrganizedView

    Permalink
    Definition Classes
    OrganizedViewBasicView
  2. type Item = Map[String, Any]

    Permalink
    Definition Classes
    MapCollectionViewCollectionView
  3. type ItemView = BindableView

    Permalink
    Definition Classes
    MapCollectionViewCollectionView
  4. type ParentView = OrganizedView

    Permalink
    Definition Classes
    OrganizedView
  5. type ViewBinder = Binder

    Permalink
    Definition Classes
    BasicView
  6. type ViewElement = Element

    Permalink
    Definition Classes
    BasicView

Abstract Value Members

  1. abstract val items: Rx[Seq[Item]]

    Permalink
    Definition Classes
    ItemsSeqView

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

    Permalink
    Attributes
    protected
    Definition Classes
    BasicView
  5. def addItemView(item: Item, iv: ItemView): ItemView

    Permalink
    Definition Classes
    CollectionView
  6. def addView(view: ChildView): ParentView

    Permalink

    Adds view to children

    Adds view to children

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

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

    Permalink

    Asks parent to provide some future

    Asks parent to provide some future

    Result

    result type that we get

    value

    value that we want

    startWithMe

    takes itself into account

    Definition Classes
    BubbleView
  9. def bindElement(el: Element): Unit

    Permalink

    Binds element attributes

    Binds element attributes

    Attributes
    protected
    Definition Classes
    BasicView
  10. def bindView(): Unit

    Permalink
    Definition Classes
    CollectionViewBindableViewBasicView
  11. def binders: List[ViewBinder]

    Permalink
    Definition Classes
    BindableViewBasicView
  12. def binders_=(value: List[ViewBinder]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BindableView
  13. def className: String

    Permalink
    Definition Classes
    BasicView
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def collectFirst[TOut](partial: PartialFunction[ChildView, TOut])(implicit where: Map[String, ChildView] = this.subviews): Option[TOut]

    Permalink

    Collects data from first child view that satisfies the requirements

    Collects data from first child view that satisfies the requirements

    TOut

    what result to return

    partial

    partial function that collects

    where

    where to sear from, subview by default

    Definition Classes
    OrganizedView
  16. def collectFirstSubView[B](pf: PartialFunction[OrganizedView, B])(implicit where: Seq[ChildView] = this.subviews.values.toSeq): Option[B]

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

    Permalink
    Definition Classes
    OrganizedView
  18. def constructItemView(item: Item, mp: Map[String, Any] = Map.empty)(construct: (Element, Map[String, Any]) ⇒ ItemView): ItemView

    Permalink

    Function to create Item.

    Function to create Item. Often used for default item creation

    item

    item that will be added

    construct

    function that does construction

    Definition Classes
    CollectionView
  19. def copyTemplate(): ViewElement

    Permalink
    Definition Classes
    CollectionView
  20. def createHTML(string: String): Element

    Permalink

    Trick to create an html

    Trick to create an html

    Definition Classes
    OrganizedView
  21. lazy val defaultBinders: List[ViewBinder]

    Permalink
    Attributes
    protected
    Definition Classes
    CollectionViewBindableView
  22. def defaultInjector: InjectorMagnet.Injector

    Permalink
    Definition Classes
    OrganizedView
  23. val elem: Element

    Permalink
    Definition Classes
    MapCollectionViewBasicView
  24. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def extractStart(): Element

    Permalink

    extracts element after which it inserts children

    extracts element after which it inserts children

    Definition Classes
    CollectionView
  27. def finalize(): Unit

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

    Permalink

    Finds a view that

    Finds a view that

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

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

    Permalink

    Finds view if it exists

    Finds view if it exists

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

    Permalink

    Fires an event

    Fires an event

    event

    vieEvent to fire

    startWithMe

    takes itself into account

    Definition Classes
    BubbleView
  32. def fromParents[TResult](func: PartialFunction[ParentView, TResult]): Option[TResult]

    Permalink

    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

    Definition Classes
    OrganizedView
  33. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  34. def getItemView(el: Element): Option[Attr]

    Permalink
    Attributes
    protected
    Definition Classes
    CollectionView
  35. def hasParent: Boolean

    Permalink

    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

    Definition Classes
    OrganizedView
  36. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  37. lazy val id: String

    Permalink

    Id of this view

    Id of this view

    Definition Classes
    BasicView
  38. def ifNoID(el: Element, title: ⇒ String): String

    Permalink

    Makes id for the binding element

    Makes id for the binding element

    el

    html element

    title

    is used if the element does not have an ID

    Definition Classes
    IDGenerator
  39. def ifNoIDOption(el: Element, titleOpt: ⇒ Option[String]): Any

    Permalink
    Definition Classes
    IDGenerator
  40. def inject(viewName: String, el: Element, params: Map[String, Any]): ChildView

    Permalink
    Definition Classes
    OrganizedView
  41. lazy val injector: ViewInjector[OrganizedView]

    Permalink
    Definition Classes
    OrganizedView
  42. def isInside(element: Element, me: Element = this.viewElement): Boolean

    Permalink

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

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

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

    Permalink
    Definition Classes
    Any
  44. def isTopView: Boolean

    Permalink
    Definition Classes
    OrganizedView
  45. val itemViews: Var[Map[Item, ItemView]]

    Permalink
    Definition Classes
    CollectionView
  46. def loadElementInto(el: Element, newInnerHTML: String, uri: String = ""): Unit

    Permalink

    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
  47. def makeDefault(el: Element, props: Map[String, Any] = Map.empty): ChildView

    Permalink
    Definition Classes
    BindableViewBasicView
  48. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  49. def newItemView(item: Item): ItemView

    Permalink
    Definition Classes
    MapCollectionViewCollectionView
  50. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  52. def onInsert(item: Item): ItemView

    Permalink
    Attributes
    protected
    Definition Classes
    CollectionView
  53. def onMove(mv: Moved[Item]): Any

    Permalink
    Attributes
    protected
    Definition Classes
    ItemsSeqView
  54. def onRemove(item: Item): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    CollectionView
  55. var parent: Option[ParentView]

    Permalink
    Definition Classes
    OrganizedView
  56. def propagate(event: ViewEvent): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BubbleView
  57. def propagateFuture(event: PromiseEvent[_, _]): Any

    Permalink

    Propagates future to the top for some reason

    Propagates future to the top for some reason

    event

    event that goes up

    Attributes
    protected
    Definition Classes
    BubbleView
  58. def receive: PartialFunction[ViewEvent, Unit]

    Permalink

    Event subsystem

    Event subsystem

    Definition Classes
    BubbleView
  59. def receiveFuture: PartialFunction[PromiseEvent[_, _], Unit]

    Permalink
    Definition Classes
    BubbleView
  60. def refreshChildView(viewId: String, newElement: Element): Unit

    Permalink

    refreshes child view

    refreshes child view

    Definition Classes
    OrganizedView
  61. def refreshMe(newElement: Element): Unit

    Permalink

    Replaces viewElement of the view and rebinds it

    Replaces viewElement of the view and rebinds it

    Definition Classes
    OrganizedView
  62. def removeItemView(r: Item): Unit

    Permalink
    Definition Classes
    CollectionView
  63. def removeSubViewsFrom(element: Element): Unit

    Permalink

    Removes all subviews that were inside element in the tree

    Removes all subviews that were inside element in the tree

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

    Permalink

    Removes a view from subviews

    Removes a view from subviews

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

    Permalink

    Removes view

    Removes view

    nm

    view name to remove

    Definition Classes
    BasicView
  66. def removeWithView(element: Element): Unit

    Permalink

    Removes view, starts search from the top

    Removes view, starts search from the top

    Definition Classes
    OrganizedView
  67. def replace(newChild: Element, oldChild: Element, switch: Boolean = false): Any

    Permalink

    Replaces elementes

    Replaces elementes

    newChild

    new child

    oldChild

    oldchild

    Attributes
    protected
    Definition Classes
    CollectionView
  68. def replaceHTML(newChild: Element, oldChild: Element, switch: Boolean = false): Any

    Permalink
    Definition Classes
    CollectionView
  69. def subscribeUpdates(): Unit

    Permalink

    This function is very important as it monitors items updates

    This function is very important as it monitors items updates

    Attributes
    protected
    Definition Classes
    ItemsSeqViewCollectionView
  70. implicit var subviews: Map[String, ChildView]

    Permalink
    Definition Classes
    BasicView
  71. def switchInner(el: Element, newInnerHTML: String): Unit

    Permalink

    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
  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  73. def template: Element

    Permalink
    Definition Classes
    CollectionView
  74. var templateDisplay: Dynamic

    Permalink
    Definition Classes
    CollectionView
  75. def template_=(value: Element): Unit

    Permalink
    Definition Classes
    CollectionView
  76. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  77. var topView: OrganizedView

    Permalink
    Definition Classes
    OrganizedView
  78. def unbind(el: Element): Unit

    Permalink
    Definition Classes
    BasicView
  79. def unbindView(): Unit

    Permalink
    Definition Classes
    BasicView
  80. lazy val updates: Rx[SequenceUpdate[Item]]

    Permalink
    Definition Classes
    ItemsSeqView
  81. def viewElement: ViewElement

    Permalink
    Definition Classes
    BasicView
  82. def viewElement_=(value: ViewElement): Unit

    Permalink
    Definition Classes
    BasicView
  83. def viewFrom(el: Element): Option[String]

    Permalink

    * Extracts view

    * Extracts view

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  87. def warnIfNoBinders(asError: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    BindableView
  88. def withBinder(fun: (MapCollectionView.this.type) ⇒ ViewBinder): MapCollectionView.this.type

    Permalink

    Returns myself with some binders

    Returns myself with some binders

    Definition Classes
    BindableView
  89. def withBinders(fun: (MapCollectionView.this.type) ⇒ List[ViewBinder]): MapCollectionView.this.type

    Permalink
    Definition Classes
    BindableView
  90. def withParam(name: String, params: Map[String, Any]): Map[String, Any]

    Permalink

    is overriden in parent views

    is overriden in parent views

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

    Permalink

    prepares view tree for printing

    prepares view tree for printing

    Definition Classes
    OrganizedView

Inherited from ItemsSeqView

Inherited from CollectionView

Inherited from BindableView

Inherited from BubbleView

Inherited from OrganizedView

Inherited from BasicView

Inherited from IDGenerator

Inherited from AnyRef

Inherited from Any

Ungrouped