C# Class SpeakFriend.Utilities.Pager

Inheritance: IPager
Mostrar archivo Open project: teamaton/speak-lib

Public Properties

Property Type Description
QueryExpiredRequests bool

Protected Properties

Property Type Description
_currentPage int
_isInSingleItemMode bool
_navigationPagerResultIndex int
_pageSize int

Public Methods

Method Description
FirstPage ( ) : void
GetPages ( int totalToShow ) : List

HasNextPage ( ) : bool
HasPreviousPage ( ) : bool
LastPage ( ) : void
NextPage ( ) : void
NextPage ( int amountOfPages ) : void

Flip forward by a positive number of pages.

Pager ( ) : System
PreviousPage ( ) : void
PreviousPage ( int amountOfPages ) : void

Flip backward by a positive number of pages.

SetItemsPerPage ( int itemsPerPage ) : Pager

Private Methods

Method Description
GetLowerBoundOfPage ( int page ) : int
GetPages ( int startPage, int totalToShow ) : List
GetUpperBoundOfPage ( int page ) : int

Method Details

FirstPage() public method

public FirstPage ( ) : void
return void

GetPages() public method

public GetPages ( int totalToShow ) : List
totalToShow int
return List

HasNextPage() public method

public HasNextPage ( ) : bool
return bool

HasPreviousPage() public method

public HasPreviousPage ( ) : bool
return bool

LastPage() public method

public LastPage ( ) : void
return void

NextPage() public method

public NextPage ( ) : void
return void

NextPage() public method

Flip forward by a positive number of pages.
public NextPage ( int amountOfPages ) : void
amountOfPages int The amount of pages to advance.
return void

Pager() public method

public Pager ( ) : System
return System

PreviousPage() public method

public PreviousPage ( ) : void
return void

PreviousPage() public method

Flip backward by a positive number of pages.
public PreviousPage ( int amountOfPages ) : void
amountOfPages int The amount of page pages to go back.
return void

SetItemsPerPage() public method

public SetItemsPerPage ( int itemsPerPage ) : Pager
itemsPerPage int
return Pager

Property Details

QueryExpiredRequests public_oe property

public bool QueryExpiredRequests
return bool

_currentPage protected_oe property

protected int _currentPage
return int

_isInSingleItemMode protected_oe property

protected bool _isInSingleItemMode
return bool

_navigationPagerResultIndex protected_oe property

Is die
protected int _navigationPagerResultIndex
return int

_pageSize protected_oe property

protected int _pageSize
return int