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. Hide All
  2. Show all
  1. ItemsList
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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)

    Attributes
    abstract

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

    Adds a new, unsaved item

  7. var added : List[T]

    The list of items pending to be added to the database

  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. var ascending : Boolean

    The sort direction

  10. def clone (): AnyRef

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

    The list of items that correspond to items in the database

  12. def eq (arg0: AnyRef): Boolean

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

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

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

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

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

    Attributes
    final
    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. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    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: net.liftweb.mapper.MappedField[_, T]): Unit

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

    The field to sort by, if any

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

  30. var sortNullFirst : Boolean

    Whether the sorting algorithm should put null first or last

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

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any