Trait

net.liftweb.mapper.view

ItemsList

Related Doc: package view

Permalink

trait ItemsList[T <: Mapper[T]] extends AnyRef

Keeps track of pending adds to and removes from a list of mappers. Supports in-memory sorting by a field. Usage: override metaMapper with a MetaMapper instance, call sortBy to specify the field to sort by. If it is already sorted by that field it will sort descending, otherwise ascending. Call save to actualize changes.

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

Abstract Value Members

  1. abstract def metaMapper: T with MetaMapper[T]

    Permalink

    The MetaMapper that provides create and findAll functionality etc.

    The MetaMapper that provides create and findAll functionality etc. Must itself be a T (the mapper type it represents)

Concrete 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. def add: Unit

    Permalink

    Adds a new, unsaved item

  5. var added: List[T]

    Permalink

    The list of items pending to be added to the database

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. var ascending: Boolean

    Permalink

    The sort direction

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. var current: List[T]

    Permalink

    The list of items that correspond to items in the database

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  16. def items: Seq[T]

    Permalink

    Returns the items (current + added - removed), sorted.

    Returns the items (current + added - removed), sorted. Sorting sorts strings case-insensitive, as well as Ordered and java.lang.Comparable. Anything else where both values are nonnull are sorted via their toString method (case sensitive)

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

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. def refresh: Unit

    Permalink

    Reloads the contents of 'current' from the database

  21. def reload: Unit

    Permalink

    Reset the ItemsList from the database: calls refresh, and 'added' and 'removed' are cleared.

  22. def remove(i: T): Unit

    Permalink

    Marks an item pending for removal

  23. var removed: List[T]

    Permalink

    The list of items to be deleted from current

  24. def save: Unit

    Permalink

    Sends to the database: added is saved removed is deleted (current - removed) is saved

  25. def sortBy(field: MappedField[_, T]): Unit

    Permalink
  26. var sortField: Option[MappedField[_, T]]

    Permalink

    The field to sort by, if any

  27. def sortFn(field: MappedField[_, T]): () ⇒ Unit

    Permalink
  28. var sortNullFirst: Boolean

    Permalink

    Whether the sorting algorithm should put null first or last

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped