Trait

net.liftweb.mapper.view

ModelSnippet

Related Doc: package view

Permalink

trait ModelSnippet[T <: Mapper[T]] extends StatefulSnippet

A snippet that can list and edit items of a particular Mapper class This trait can help reduce boilerplate in the common scenario where you want a snippet class to provide list and edit snippets for a specific Mapper class.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ModelSnippet
  2. StatefulSnippet
  3. DispatchSnippet
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type DispatchIt = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Permalink
    Definition Classes
    DispatchSnippet
  2. class ModelView extends view.ModelView[T]

    Permalink

Abstract Value Members

  1. abstract def edit(ns: NodeSeq): NodeSeq

    Permalink

    The edit snippet

  2. abstract def list(ns: NodeSeq): NodeSeq

    Permalink

    The list snippet

  3. abstract val view: view.ModelView[T]

    Permalink

    The instance of ModelView that wraps the currently loaded entity

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. def addName(name: String): Unit

    Permalink
    Definition Classes
    StatefulSnippet
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def dispatch: DispatchIt

    Permalink
    Definition Classes
    ModelSnippetDispatchSnippet
  8. def editAction(e: T): CssSel

    Permalink

    A ".edit" CssSel

  9. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def link(to: String, func: () ⇒ Any, body: NodeSeq, attrs: http.SHtml.ElemAttr*): Elem

    Permalink

    create an anchor tag around a body

    create an anchor tag around a body

    to

    - the target

    func

    - the function to invoke when the link is clicked

    body

    - the NodeSeq to wrap in the anchor tag

    attrs

    - the (optional) attributes for the HTML element

    Definition Classes
    StatefulSnippet
  16. def load(entity: T): Unit

    Permalink
  17. def names: Set[String]

    Permalink
    Definition Classes
    StatefulSnippet
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. var onSave: (view.ModelView[T]) ⇒ Unit

    Permalink

    Action when save is successful.

    Action when save is successful. Defaults to using the ModelView's redirectOnSave

  22. def redirectTo(where: String): Nothing

    Permalink

    Redirect to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

    Redirect to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

    Definition Classes
    StatefulSnippet
  23. def registerThisSnippet(): Unit

    Permalink
    Definition Classes
    StatefulSnippet
  24. def removeAction(e: T): CssSel

    Permalink

    A ".remove" CssSel

  25. def seeOther(where: String): Nothing

    Permalink

    See Other to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

    See Other to another page, but make sure this StatefulSnippet is registered on that page so the state continues on the new page

    Definition Classes
    StatefulSnippet
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def unregisterThisSnippet(): Unit

    Permalink
    Definition Classes
    StatefulSnippet
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StatefulSnippet

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped