Class

org.denigma.binding.binders

GeneralBinder

Related Doc: package binders

Permalink

class GeneralBinder[View <: BindableView] extends ReactiveBinder with IDGenerator with VisibilityBinder with ClassBinder with PropertyBinder with EventBinder with UpDownBinder[View]

Binders that extracts most of reaactive variables DO NO BE SCARED BY NUMBER OF IMPLICITS, THEY ARE RESOLVED AUTOMATICALLY!

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeneralBinder
  2. UpDownBinder
  3. EventBinder
  4. PropertyBinder
  5. ScalaTagsBinder
  6. ClassBinder
  7. VisibilityBinder
  8. IDGenerator
  9. ReactiveBinder
  10. Binder
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GeneralBinder(view: View, recover: ⇒ Option[ReactiveBinder] = None)(implicit mpMap: MapRxMap[View], mpTag: TagRxMap[View], mpString: StringRxMap[View], mpBool: BooleanRxMap[View], mpDouble: DoubleRxMap[View], mpInt: IntRxMap[View], mpEvent: EventMap[View], mpMouse: MouseEventMap[View], mpText: TextEventMap[View], mpKey: KeyEventMap[View], mpUI: UIEventMap[View], mpWheel: WheelEventMap[View], mpFocus: FocusEventMap[View], mpDrag: DragEventMap[View])

    Permalink

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. val ON: String

    Permalink
    Attributes
    protected
  5. val SET: String

    Permalink
    Attributes
    protected
  6. def allValues: Map[String, Rx[Any]]

    Permalink
    Definition Classes
    PropertyBinder
  7. implicit def any2Bool(value: Any): Boolean

    Permalink
    Definition Classes
    PropertyBinder
  8. implicit def any2Double(value: Any): Double

    Permalink
    Definition Classes
    PropertyBinder
  9. implicit def any2Int(value: Any): Int

    Permalink
    Definition Classes
    PropertyBinder
  10. implicit def any2String(value: Any): String

    Permalink
    Definition Classes
    PropertyBinder
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def bind(el: Element, rxName: String): Unit

    Permalink

    Binds property

    Binds property

    el

    html element

    rxName

    name of Rx

    Definition Classes
    PropertyBinder
  13. def bindAttributes(el: Element, atribs: Map[String, String]): Boolean

    Permalink
    Definition Classes
    GeneralBinderReactiveBinderBinder
  14. def bindClass(el: Element, rxName: String): Unit

    Permalink
    Definition Classes
    ClassBinder
  15. def bindMapItem[T](el: Element, mp: Map[String, Var[T]], attribute: String, key: String)(bind: (Element, Var[T]) ⇒ Unit): Unit

    Permalink

    binds an item of Map with vars

    binds an item of Map with vars

    T

    type parameter for Var

    el

    html element to bind to

    mp

    map with vars

    attribute

    name of the binding attribute (for debugging)

    key

    kay we want to bind to

    bind

    functions that binds

    Attributes
    protected
    Definition Classes
    ReactiveBinder
  16. def bindProperty(el: Element, rxName: String, prop: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    PropertyBinder
  17. def bindStyle(el: Element, rxName: String, prop: String): Unit

    Permalink

    binds Rx variable to a style property

    binds Rx variable to a style property

    rxName

    name of Rx variable

    prop

    style property

    Attributes
    protected
    Definition Classes
    PropertyBinder
  18. lazy val bools: Map[String, Rx[Boolean]]

    Permalink
  19. def cannotFind[T](el: Element, rxName: String, prop: String, mp: Map[String, Rx[T]]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    PropertyBinder
  20. def classIf(el: Element, className: String, cond: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ClassBinder
  21. def classOnEnter(el: Element, className: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ClassBinder
  22. def classOnLeave(el: Element, className: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ClassBinder
  23. def classPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink

    Partial function for class

    Partial function for class

    el

    Html element we bind to

    Attributes
    protected
    Definition Classes
    ClassBinder
  24. def classUnless(el: Element, className: String, cond: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ClassBinder
  25. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def dataAttributesOnly(ats: Map[String, String]): Map[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    ReactiveBinder
  27. lazy val defaultDelay: FiniteDuration

    Permalink
    Definition Classes
    UpDownBinder
  28. lazy val doubles: Map[String, Rx[Double]]

    Permalink
    Definition Classes
    GeneralBinderPropertyBinder
  29. def downPartial(el: Element, ats: Map[String, String]): PartialFunction[(String, String), Unit]

    Permalink
    Definition Classes
    UpDownBinder
  30. def downPartialDelayed(el: Element, bname: String, rxName: String, ats: Map[String, String]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    UpDownBinder
  31. lazy val dragEvents: Map[String, Var[DragEvent]]

    Permalink
    Definition Classes
    GeneralBinderEventBinder
  32. def dragEventsPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  33. def dragFromKey: PartialFunction[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  34. def elementPartial(el: Element, ats: Map[String, String]): PartialFunction[(String, String), Unit]

    Permalink
    Definition Classes
    GeneralBinderReactiveBinder
  35. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  37. lazy val events: Map[String, Var[Event]]

    Permalink
    Definition Classes
    GeneralBinderEventBinder
  38. def eventsPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Definition Classes
    EventBinder
  39. def extractTagRx[T](t: T)(implicit arg0: TagRxMap[T]): Map[String, Rx[scalatags.Text.Tag]]

    Permalink
    Attributes
    protected
    Definition Classes
    ScalaTagsBinder
  40. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  41. lazy val focusEvents: Map[String, Var[FocusEvent]]

    Permalink
    Definition Classes
    GeneralBinderEventBinder
  42. def focusEventsPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  43. def focusFromKey: PartialFunction[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  44. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  45. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  46. def hideIf(element: Element, rxName: String, disp: String): Unit

    Permalink
    Definition Classes
    VisibilityBinder
  47. 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
  48. def ifNoIDOption(el: Element, titleOpt: ⇒ Option[String]): Any

    Permalink
    Definition Classes
    IDGenerator
  49. lazy val ints: Map[String, Rx[Int]]

    Permalink
    Definition Classes
    GeneralBinderPropertyBinder
  50. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  51. def keyboardEventFromKey: PartialFunction[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  52. lazy val keyboardEvents: Map[String, Var[KeyboardEvent]]

    Permalink
    Definition Classes
    GeneralBinderEventBinder
  53. def keyboardEventsPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  54. def mouseEventFromKey: PartialFunction[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  55. lazy val mouseEvents: Map[String, Var[MouseEvent]]

    Permalink
    Definition Classes
    GeneralBinderEventBinder
  56. def mouseEventsPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  57. def mouseWheelFromKey: PartialFunction[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  58. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  59. def noDash(key: String): String

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  60. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  62. def otherEventFromKey: PartialFunction[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  63. def otherEventsPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder
  64. def propertyOnRx[T](el: Element, prop: String, value: Rx[T])(implicit conv: (T) ⇒ Any): Unit

    Permalink

    subscribes property to changes of Rx

    subscribes property to changes of Rx

    Attributes
    protected
    Definition Classes
    PropertyBinder
  65. def propertyPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink

    Partial function that is usually added to bindProperties

    Partial function that is usually added to bindProperties

    el

    html element

    returns

    partial function that will do the binding

    Attributes
    protected
    Definition Classes
    PropertyBinder
  66. def setAttribute[T](e: Element, prop: String, value: T)(implicit conv: (T) ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    PropertyBinder
  67. def setOnPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink

    This function can set value on event

    This function can set value on event

    el

    Element

  68. def showIf(element: Element, rxName: String, disp: String): Unit

    Permalink
    Definition Classes
    VisibilityBinder
  69. lazy val specialAttributes: Map[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    PropertyBinder
  70. lazy val strings: Map[String, Rx[String]]

    Permalink
    Definition Classes
    GeneralBinderPropertyBinderClassBinder
  71. def stylePropertyOnRx[T](el: Element, prop: String, value: Rx[T])(implicit conv: (T) ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    PropertyBinder
  72. def subscribeInputValue[T](el: Element, rxName: String, event: String, mp: Map[String, Rx[T]])(implicit js2var: (Any) ⇒ T, var2js: (T) ⇒ Any): Option[Rx[T]]

    Permalink
    Attributes
    protected
    Definition Classes
    PropertyBinder
  73. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  74. lazy val tags: Map[String, Rx[scalatags.Text.Tag]]

    Permalink
    Definition Classes
    GeneralBinderScalaTagsBinder
  75. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  76. def upPartial(el: Element, atribs: Map[String, String]): PartialFunction[(String, String), Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    UpDownBinder
  77. def varOnEvent[T, TEvent <: Event](el: Element, prop: String, value: Rx[T], event: String)(implicit js2var: (Any) ⇒ T): Unit

    Permalink

    subscribes property to Rx, if Rx is Var then changes Var when specified event fires TODO: write safe version of the function

    subscribes property to Rx, if Rx is Var then changes Var when specified event fires TODO: write safe version of the function

    Attributes
    protected
    Definition Classes
    PropertyBinder
  78. val view: View

    Permalink
    Definition Classes
    GeneralBinderUpDownBinder
  79. def visibilityPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Definition Classes
    VisibilityBinder
  80. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. def warnOnUpdateFailures: Boolean

    Permalink
    Definition Classes
    PropertyBinder
  84. lazy val wheelEvents: Map[String, Var[WheelEvent]]

    Permalink
    Definition Classes
    GeneralBinderEventBinder
  85. def wheelEventsPartial(el: Element): PartialFunction[(String, String), Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    EventBinder

Inherited from UpDownBinder[View]

Inherited from EventBinder

Inherited from PropertyBinder

Inherited from ScalaTagsBinder

Inherited from ClassBinder

Inherited from VisibilityBinder

Inherited from IDGenerator

Inherited from ReactiveBinder

Inherited from Binder

Inherited from AnyRef

Inherited from Any

Ungrouped