BBjGrid::setPaging
Description
Sets whether the BBjGrid
can be scrolled by paging buttons (
and
).
Syntax
| Return Value | Method |
|---|---|
|
void |
setPaging(boolean paging) |
Parameters
| Parameter | Description |
|---|---|
|
page |
Specifies whether the grid can be scrolled by paging buttons. By default,
|
Return Value
None.
Remarks
This feature is only supported in the GUI client.
By default, paging is disabled.
If paging is enabled, the page up button appears at the right edge of the column header area, immediately above the vertical scroll bar, and the page down button appears at the intersection of the vertical and horizontal scroll bars. Because the paging buttons interact with the scroll bars, enabling paging automatically enables both scroll bars. However, while the page up button depends on column headers, enabling paging does not automatically create column headers; they must be explicitly enabled to show the page up button.
The default paging amount is calculated as BBjGrid::getVisibleRows()-1. To select a specific paging amount, use BBjGrid::setPagingAmount.
If the current row is the top row, clicking the page up button scrolls up by the current paging amount. If the current row is not the top row, clicking the page up button moves to the top row without scrolling.
If the current row is the bottom row, clicking the page down button scrolls down by the current paging amount. If the current row is not the bottom row, clicking the page down button moves to the bottom row without scrolling.
Example
|
See Also
Methods of BBjGrid – Grid Scrolling
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.