net.liftweb.mapper.view

ItemsList

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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ItemsList
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    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: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Any
  6. def add: Unit

    Adds a new, unsaved item

  7. var added: List[T]

    The list of items pending to be added to the database

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. var ascending: Boolean

    The sort direction

  10. def clone(): AnyRef

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

    The list of items that correspond to items in the database

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

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

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

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

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

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

    Definition Classes
    Any
  18. def items: Seq[T]

    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)

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

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def refresh: Unit

    Reloads the contents of 'current' from the database

  23. def reload: Unit

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

  24. def remove(i: T): Unit

    Marks an item pending for removal

  25. var removed: List[T]

    The list of items to be deleted from current

  26. def save: Unit

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

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

  28. var sortField: Option[MappedField[_, T]]

    The field to sort by, if any

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

  30. var sortNullFirst: Boolean

    Whether the sorting algorithm should put null first or last

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped