Class/Object

org.denigma.binding.views

OrganizedView

Related Docs: object OrganizedView | package views

Permalink

abstract class OrganizedView extends BasicView

An abstract hirercial view that provides methods to work with hirercy

Linear Supertypes
BasicView, IDGenerator, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OrganizedView
  2. BasicView
  3. IDGenerator
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OrganizedView()

    Permalink

Type Members

  1. type ChildView = OrganizedView

    Permalink
    Definition Classes
    OrganizedViewBasicView
  2. type ParentView = OrganizedView

    Permalink
  3. type ViewBinder = Binder

    Permalink
    Definition Classes
    BasicView
  4. type ViewElement = Element

    Permalink
    Definition Classes
    BasicView

Abstract Value Members

  1. abstract def binders: List[ViewBinder]

    Permalink
    Definition Classes
    BasicView
  2. abstract def elem: ViewElement

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

    Permalink
    Definition Classes
    BasicView

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 addView(view: ChildView): ParentView

    Permalink

    Adds view to children

    Adds view to children

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

    Permalink
    Definition Classes
    Any
  7. def bindElement(el: Element): Unit

    Permalink

    Binds element attributes

    Binds element attributes

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

    Permalink
    Definition Classes
    BasicView
  9. def className: String

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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

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

    Permalink
  13. def collectFirstView[B](pf: PartialFunction[OrganizedView, B]): Option[B]

    Permalink
  14. def createHTML(string: String): Element

    Permalink

    Trick to create an html

  15. def defaultInjector: InjectorMagnet.Injector

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink

    Finds a view that

  20. def findSubView(viewName: String)(implicit where: Map[String, ChildView] = this.subviews): Option[ChildView]

    Permalink
  21. def findView(viewName: String): Option[ChildView]

    Permalink

    Finds view if it exists

  22. 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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. 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

  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. val id: String

    Permalink

    Id of this view

    Id of this view

    Definition Classes
    BasicView
  27. 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
  28. def ifNoIDOption(el: Element, titleOpt: ⇒ Option[String]): Any

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

    Permalink
  30. lazy val injector: ViewInjector[OrganizedView]

    Permalink
  31. 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
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. def isTopView: Boolean

    Permalink
  34. 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)

  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  38. var parent: Option[ParentView]

    Permalink
  39. def refreshChildView(viewId: String, newElement: Element): Unit

    Permalink

    refreshes child view

  40. def refreshMe(newElement: Element): Unit

    Permalink

    Replaces viewElement of the view and rebinds it

  41. def removeSubViewsFrom(element: Element): Unit

    Permalink

    Removes all subviews that were inside element in the tree

  42. def removeView(view: ChildView): Unit

    Permalink

    Removes a view from subviews

    Removes a view from subviews

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

    Permalink

    Removes view

    Removes view

    nm

    view name to remove

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

    Permalink

    Removes view, starts search from the top

  45. implicit var subviews: Map[String, ChildView]

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

    Permalink
    Definition Classes
    AnyRef
  48. def toString(): String

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

    Permalink
  50. def unbind(el: Element): Unit

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

    Permalink
    Definition Classes
    BasicView
  52. def viewElement: ViewElement

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

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

    Permalink

    * Extracts view

    * Extracts view

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. 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
  59. def writeTree(level: Int = 0): String

    Permalink

    prepares view tree for printing

Inherited from BasicView

Inherited from IDGenerator

Inherited from AnyRef

Inherited from Any

Ungrouped