net.liftweb.http

SortedPaginatorSnippet

trait SortedPaginatorSnippet[T, C] extends SortedPaginator[T, C] with PaginatorSnippet[T]

This trait adds snippet functionality for sorted paginators. You can place bind points in your template for column headers, and it turns them into links That you can click to sort by that column. Simply write, e.g., <th><sort:name/></th><th><sort:email/></th> etc.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SortedPaginatorSnippet
  2. PaginatorSnippet
  3. SortedPaginator
  4. Paginator
  5. Loggable
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Type Members

  1. type SortState = (Int, Boolean)

    Pair of (column index, ascending)

    Pair of (column index, ascending)

    Definition Classes
    SortedPaginator

Abstract Value Members

  1. abstract def count: Long

    The total number of items

    The total number of items

    Definition Classes
    Paginator
  2. abstract def headers: List[(String, C)]

    The sort headers: pairs of column labels, and column identifier objects of type C.

    The sort headers: pairs of column labels, and column identifier objects of type C.

    Definition Classes
    SortedPaginator
  3. abstract def page: Seq[T]

    The items displayed on the current page

    The items displayed on the current page

    Definition Classes
    Paginator

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. var _first: Long

    Attributes
    protected
    Definition Classes
    PaginatorSnippet
  7. var _sort: (Int, Boolean)

    Attributes
    protected
    Definition Classes
    SortedPaginator
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def ascendingParam: String

    The URL query parameter to specify the sort direction

  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def curPage: Int

    Calculates the current page number, based on the value of 'first.

    Calculates the current page number, based on the value of 'first.'

    Definition Classes
    Paginator
  12. def currentXml: NodeSeq

    The status displayed when using <nav:records/> in the template.

    The status displayed when using <nav:records/> in the template.

    Definition Classes
    PaginatorSnippet
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def first: Long

    Overrides the super's implementation so the first record can be overridden by a URL query parameter.

    Overrides the super's implementation so the first record can be overridden by a URL query parameter.

    Definition Classes
    PaginatorSnippetPaginator
  17. def firstXml: NodeSeq

    The "first page" link text

    The "first page" link text

    Definition Classes
    PaginatorSnippet
  18. def first_=(f: Long): Unit

    Sets the default starting record of the page (URL query parameters take precedence over this)

    Sets the default starting record of the page (URL query parameters take precedence over this)

    Definition Classes
    PaginatorSnippet
  19. final def getClass(): java.lang.Class[_]

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

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

    Definition Classes
    Any
  22. def itemsPerPage: Int

    How many items to put on each page

    How many items to put on each page

    Definition Classes
    Paginator
  23. def lastXml: NodeSeq

    The "last page" link text

    The "last page" link text

    Definition Classes
    PaginatorSnippet
  24. val logger: Logger

    Attributes
    protected
    Definition Classes
    Loggable
  25. def navPrefix: String

    The template prefix for general navigation components

    The template prefix for general navigation components

    Definition Classes
    PaginatorSnippet
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. def nextXml: NodeSeq

    The "next page" link text

    The "next page" link text

    Definition Classes
    PaginatorSnippet
  28. final def notify(): Unit

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

    Definition Classes
    AnyRef
  30. def numPages: Int

    Calculates the number of pages the items will be spread across

    Calculates the number of pages the items will be spread across

    Definition Classes
    Paginator
  31. def offsetParam: String

    The URL query parameter to propagate the record the page should start at

    The URL query parameter to propagate the record the page should start at

    Definition Classes
    PaginatorSnippet
  32. def pageUrl(offset: Long): String

    Overrides pageUrl and delegates to sortedPageUrl using the current sort

    Overrides pageUrl and delegates to sortedPageUrl using the current sort

    Definition Classes
    SortedPaginatorSnippetPaginatorSnippet
  33. def pageXml(newFirst: Long, ns: NodeSeq): NodeSeq

    Returns XML that links to a page starting at the given record offset, if the offset is valid and not the current one.

    Returns XML that links to a page starting at the given record offset, if the offset is valid and not the current one.

    ns

    The link text, if the offset is valid and not the current offset; or, if that is not the case, the static unlinked text to display

    Definition Classes
    PaginatorSnippet
  34. def pagesXml(pages: Seq[Int], sep: NodeSeq): NodeSeq

    Generates links to multiple pages with arbitrary XML delimiting them.

    Generates links to multiple pages with arbitrary XML delimiting them.

    Definition Classes
    PaginatorSnippet
  35. def paginate(xhtml: NodeSeq): NodeSeq

    This is the snippet method, which you can reference in your template or call directly.

    This is the snippet method, which you can reference in your template or call directly.

    Definition Classes
    SortedPaginatorSnippetPaginatorSnippet
  36. def prevXml: NodeSeq

    The "previous page" link text

    The "previous page" link text

    Definition Classes
    PaginatorSnippet
  37. def recordsFrom: String

    How to display the page's starting record

    How to display the page's starting record

    Definition Classes
    PaginatorSnippet
  38. def recordsTo: String

    How to display the page's ending record

    How to display the page's ending record

    Definition Classes
    PaginatorSnippet
  39. def sort: (Int, Boolean)

    Overrides sort, giving the URL query parameters precedence

    Overrides sort, giving the URL query parameters precedence

    Definition Classes
    SortedPaginatorSnippetSortedPaginator
  40. def sortParam: String

    The URL query parameter to specify the sort column

  41. def sortPrefix: String

    The prefix to bind the sorting column headers

  42. def sort_=(s: (Int, Boolean)): Unit

    Set the current sort state: Pair of (column index, ascending?)

    Set the current sort state: Pair of (column index, ascending?)

    Definition Classes
    SortedPaginator
  43. def sortedBy(column: Int): (Int, Boolean)

    Returns a new SortState based on a column index.

    Returns a new SortState based on a column index. If the paginator is already sorted by that column, it toggles the direction; otherwise the direction is ascending. Note that this method does not alter the sort state in the paginator; it only calculates the direction toggle. Example usage: sortedPaginator.sort = sortedPaginator.sortedBy(columns.indexOf(clickedColumn))

    Definition Classes
    SortedPaginator
  44. def sortedPageUrl(offset: Long, sort: (Int, Boolean)): String

    Calculates the page url taking sorting into account.

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

    Definition Classes
    AnyRef
  46. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. def zoomedPages: List[Int]

    Returns a list of page numbers to be displayed in 'zoomed' mode, i.

    Returns a list of page numbers to be displayed in 'zoomed' mode, i.e., as the page numbers get further from the current page, they are more sparse.

    Definition Classes
    Paginator

Inherited from PaginatorSnippet[T]

Inherited from SortedPaginator[T, C]

Inherited from Paginator[T]

Inherited from Loggable

Inherited from AnyRef

Inherited from Any