Class

net.liftweb.mapper.view

SortedMapperPaginatorSnippet

Related Doc: package view

Permalink

class SortedMapperPaginatorSnippet[T <: Mapper[T]] extends SortedMapperPaginator[T] with SortedPaginatorSnippet[T, MappedField[_, T]]

Convenience class that combines SortedMapperPaginator and SortedPaginatorSnippet.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SortedMapperPaginatorSnippet
  2. SortedPaginatorSnippet
  3. PaginatorSnippet
  4. SortedMapperPaginator
  5. SortedPaginator
  6. MapperPaginator
  7. Paginator
  8. Loggable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SortedMapperPaginatorSnippet(meta: MetaMapper[T], initialSort: MappedField[_, T], headers: (String, MappedField[_, T])*)

    Permalink

    meta

    The singleton of the Mapper class you're paginating

    initialSort

    The field to sort by initially

    headers

    Pairs of column labels and MappedFields.

Type Members

  1. type SortState = (Int, Boolean)

    Permalink

    Pair of (column index, ascending)

    Pair of (column index, ascending)

    Definition Classes
    SortedPaginator

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

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

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

    Permalink
    Definition Classes
    Any
  7. def ascendingParam: String

    Permalink

    The URL query parameter to specify the sort direction

    The URL query parameter to specify the sort direction

    Definition Classes
    SortedPaginatorSnippet
  8. def clone(): AnyRef

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

    Permalink

    QueryParams to use always

    QueryParams to use always

    Definition Classes
    MapperPaginator
  10. def count: Long

    Permalink

    The total number of items

    The total number of items

    Definition Classes
    MapperPaginatorPaginator
  11. def curPage: Int

    Permalink

    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

    Permalink

    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

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

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

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

    Permalink

    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

    Permalink

    The "first page" link text

    The "first page" link text

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

    Permalink

    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(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. val headers: List[(String, MappedField[_, T])]

    Permalink

    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
    SortedMapperPaginatorSortedPaginator
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def itemsPerPage: Int

    Permalink

    How many items to put on each page

    How many items to put on each page

    Definition Classes
    Paginator
  24. def lastXml: NodeSeq

    Permalink

    The "last page" link text

    The "last page" link text

    Definition Classes
    PaginatorSnippet
  25. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Loggable
  26. val meta: MetaMapper[T]

    Permalink

    The singleton of the Mapper class you're paginating

    The singleton of the Mapper class you're paginating

    Definition Classes
    MapperPaginator
  27. def navPrefix: String

    Permalink

    The template prefix for general navigation components

    The template prefix for general navigation components

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

    Permalink
    Definition Classes
    AnyRef
  29. def nextXml: NodeSeq

    Permalink

    The "next page" link text

    The "next page" link text

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def numPages: Int

    Permalink

    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
  33. def offsetParam: String

    Permalink

    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
  34. def page: List[T]

    Permalink

    The items displayed on the current page

    The items displayed on the current page

    Definition Classes
    SortedMapperPaginatorMapperPaginatorPaginator
  35. def pageUrl(offset: Long): String

    Permalink

    Overrides pageUrl and delegates to sortedPageUrl using the current sort

    Overrides pageUrl and delegates to sortedPageUrl using the current sort

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

    Permalink

    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
  37. def pagesXml(pages: Seq[Int])(sep: NodeSeq): NodeSeq

    Permalink

    Generates links to multiple pages with arbitrary XML delimiting them.

    Generates links to multiple pages with arbitrary XML delimiting them.

    Definition Classes
    PaginatorSnippet
  38. def paginate: CssSel

    Permalink

    This method binds template HTML based according to the specified configuration.

    This method binds template HTML based according to the specified configuration. You can reference this as a snippet method directly in your template; or you can call it directly as part of your binding code.

    In addition to the classes bound in PaginatorSnippet, for each header in the headers list, this will bind elements with that class name and put a link in them with their contents.

    For example, with a list of headers List("foo", "bar"), this would bind the .foo element's contents to contain a link to a page that renders that column sorted, as well as the .bar element's contents to contain a link to a page that renders that column sorted.

    Definition Classes
    SortedPaginatorSnippetPaginatorSnippet
  39. def prevXml: NodeSeq

    Permalink

    The "previous page" link text

    The "previous page" link text

    Definition Classes
    PaginatorSnippet
  40. def recordsFrom: String

    Permalink

    How to display the page's starting record

    How to display the page's starting record

    Definition Classes
    PaginatorSnippet
  41. def recordsTo: String

    Permalink

    How to display the page's ending record

    How to display the page's ending record

    Definition Classes
    PaginatorSnippet
  42. def sort: SortState

    Permalink

    Overrides sort, giving the URL query parameters precedence

    Overrides sort, giving the URL query parameters precedence

    Definition Classes
    SortedPaginatorSnippetSortedPaginator
  43. def sortParam: String

    Permalink

    The URL query parameter to specify the sort column

    The URL query parameter to specify the sort column

    Definition Classes
    SortedPaginatorSnippet
  44. def sortPrefix: String

    Permalink

    The prefix to bind the sorting column headers

    The prefix to bind the sorting column headers

    Definition Classes
    SortedPaginatorSnippet
  45. def sort_=(s: SortState): Unit

    Permalink

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

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

    Definition Classes
    SortedPaginator
  46. def sortedBy(column: Int): SortState

    Permalink

    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
  47. def sortedPageUrl(offset: Long, sort: (Int, Boolean)): String

    Permalink

    Calculates the page url taking sorting into account.

    Calculates the page url taking sorting into account.

    Definition Classes
    SortedPaginatorSnippet
  48. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

    Permalink

    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.

    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 SortedPaginatorSnippet[T, MappedField[_, T]]

Inherited from PaginatorSnippet[T]

Inherited from SortedMapperPaginator[T]

Inherited from SortedPaginator[T, MappedField[_, T]]

Inherited from MapperPaginator[T]

Inherited from Paginator[T]

Inherited from Loggable

Inherited from AnyRef

Inherited from Any

Ungrouped