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.
- Alphabetic
- By Inheritance
- ModelSnippet
- StatefulSnippet
- DispatchSnippet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
DispatchIt = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
- Definition Classes
- DispatchSnippet
- class ModelView extends view.ModelView[T]
Abstract Value Members
-
abstract
def
edit(ns: NodeSeq): NodeSeq
The edit snippet
-
abstract
def
list(ns: NodeSeq): NodeSeq
The list snippet
-
abstract
val
view: view.ModelView[T]
The instance of ModelView that wraps the currently loaded entity
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addName(name: String): Unit
- Definition Classes
- StatefulSnippet
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dispatch: DispatchIt
- Definition Classes
- ModelSnippet → DispatchSnippet
-
def
editAction(e: T): CssSel
A ".edit" CssSel
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- def load(entity: T): Unit
-
def
names: Set[String]
- Definition Classes
- StatefulSnippet
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
onSave: (view.ModelView[T]) ⇒ Unit
Action when save is successful.
Action when save is successful. Defaults to using the ModelView's redirectOnSave
-
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
-
def
registerThisSnippet(): Unit
- Definition Classes
- StatefulSnippet
-
def
removeAction(e: T): CssSel
A ".remove" CssSel
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unregisterThisSnippet(): Unit
- Definition Classes
- StatefulSnippet
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )