net.liftweb.mapper.view

ModelView

class ModelView [T <: Mapper[T]] extends AnyRef

A wrapper around a Mapper that provides view-related utilities. Belongs to a parent ModelSnippet.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ModelView
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ModelView (entity: T, snippet: ModelSnippet[T])

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def edit (name: String): TheBindParam

    Returns a BindParam that binds "name" to the field named "name.

    Returns a BindParam that binds "name" to the field named "name." If the field has a Full toForm implementation then that is used; otherwise its asHtml is called.

  9. lazy val editAction : TheBindParam

    Returns a BindParam that contains a link to load and edit this entity

  10. var entity : T

  11. def eq (arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  16. def idString : String

    returns a string that represents the id, or <new> if the entity is a new entity.

    returns a string that represents the id, or <new> if the entity is a new entity. If the entity has been saved then the id is determined as follows: If it is a KeyedMapper then it calls toString on the entity's primaryKeyField. Otherwise it calls toString on a field named "id."

  17. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  18. def load : Unit

    Loads this entity into the snippet so it can be edited

  19. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  20. def newOrEdit (xhtml: NodeSeq): NodeSeq

    This function is used as a snippet in the edit view to provide alternate text depending on whether an existing entity is being edited or a new one is being created.

  21. def notify (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  23. var redirectOnSave : Option[String]

    If Some(string), will redirect to string on a successful save.

    If Some(string), will redirect to string on a successful save. If None, will load the same page. Defaults to Some("list"). This var is used by ModelSnippet.onSave, which is a ModelView=>Unit

  24. def remove : Boolean

    Delete the entity

  25. lazy val removeAction : TheBindParam

    Returns a BindParam that contains a link to delete this entity

  26. def save : Unit

    This method checks whether the entity validates; if so it saves it, and if successful redirects to the location specified by redirectOnSave, if any.

    This method checks whether the entity validates; if so it saves it, and if successful redirects to the location specified by redirectOnSave, if any. If save or validation fails, the appropriate message(s) is/are displayed and no redirect is performed.

  27. val snippet : ModelSnippet[T]

  28. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  29. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any