net.liftweb.mapper.view

ModelSnippet

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

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

Abstract Value Members

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

    The edit snippet

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

    The list snippet

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

    The instance of ModelView that wraps the currently loaded entity

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addName(name: String): Unit

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

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Definition Classes
    ModelSnippetDispatchSnippet
  10. def editAction(e: T): util.Helpers.TheBindParam

    An "edit" BindParam

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

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

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

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

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

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

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

    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
  18. def load(entity: T): Unit

  19. def names: Set[String]

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

    Definition Classes
    AnyRef
  21. final def notify(): Unit

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

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

    Action when save is successful.

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

  24. def redirectTo(where: String): Nothing

    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
  25. def registerThisSnippet(): Unit

    Definition Classes
    StatefulSnippet
  26. def removeAction(e: T): util.Helpers.TheBindParam

    A "remove" BindParam

  27. def seeOther(where: String): Nothing

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

    Definition Classes
    AnyRef
  29. def toString(): String

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

    Definition Classes
    StatefulSnippet
  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StatefulSnippet

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped