Class

net.liftweb.mapper.view

ModelView

Related Doc: package view

Permalink

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

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

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

Instance Constructors

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

    Permalink

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def edit(name: String): CssSel

    Permalink

    Returns a CssSel that binds the contents of an element with class ".<name>" to the field named name.

    Returns a CssSel that binds the contents of an element with class ".<name>" to the field named name. If the field has a Full toForm implementation then that is used; otherwise its asHtml is called.

  7. lazy val editAction: CssSel

    Permalink

    Returns a CssSel that binds a link to ".edit" to load and edit this entity

  8. var entity: T

    Permalink
  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. def idString: String

    Permalink

    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."

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def load: Unit

    Permalink

    Loads this entity into the snippet so it can be edited

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def newOrEdit: CssSel

    Permalink

    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.

  19. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  21. var redirectOnSave: Option[String]

    Permalink

    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

  22. def remove: Boolean

    Permalink

    Delete the entity

  23. lazy val removeAction: CssSel

    Permalink

    Returns a CssSel that binds a link to ".remove" that contains a link to delete this entity

  24. def save: Unit

    Permalink

    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.

  25. val snippet: ModelSnippet[T]

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped