object Util

Provides a number of methods that make complex Mapper-based view snippets easier to build.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bindFields[T <: Mapper[T]](mapper: T, nsfn: (MappedField[_, T]) ⇒ NodeSeq): (NodeSeq) ⇒ NodeSeq

    Binds all nodes whose names are names of fields on the specified mapper.

    Binds all nodes whose names are names of fields on the specified mapper. This makes it unnecessary to write repetitious bindings like "field1" -> field1.toForm, "field2" -> field2.toform Instead it automates such bindings but you have to pass it a function that will generate a NodeSeq from the field, e.g., (f: MappedField[_,_]) => f.toForm Usage: Pass as a Full Box to the bind overload that takes a nodeFailureXform argument.

  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def eachField[T <: Mapper[T]](mapper: T, fn: (MappedField[_, T]) ⇒ CssSel): (NodeSeq) ⇒ NodeSeq
  8. def eachField[T <: Mapper[T]](mapper: T, fn: (MappedField[_, T]) ⇒ CssSel, filter: (MappedField[_, T]) ⇒ Boolean): (NodeSeq) ⇒ NodeSeq

    Iterates over the fields of the specified mapper.

    Iterates over the fields of the specified mapper. If the node currently being processed by bind has an attribute "fields" then it is taken as a whitespace-delimited list of fields to iterate over; otherwise all form fields are used. The specified function returns a BindParam for doing processing specific to that field. Returns a bind function (NodeSeq=>NodeSeq) that can be used to bind an xml node that should be repeated for each field. Usage: if you want to repeat xml markup for each field, the view should use the "field:" prefix for field-specific nodes. The snippet should bind the containing (repeating) node to the function returned by this method, passing this method the mapper instance whose fields should be used and a function that returns BindParams to process the "field:" prefixed nodes. This method takes an additional filter function to restrict certain fields from being displayed. There is an overload without it too.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped