com.microstrategy.web.objects.Scrollable |
![]() |
Generic interface representing scrollable collection.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FIRST_BLOCK | Constant for first block | |||||||||
int | NEXT_BLOCK | Constant for next block | |||||||||
int | PREVIOUS_BLOCK | Constant for previous block |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getBlockPosition()
Returns current block's position
| ||||||||||
abstract int |
getBlockSize()
Returns the size of current block.
| ||||||||||
abstract void |
gotoBlock(int blockIndex)
Goto a certain block.
| ||||||||||
abstract boolean |
hasNextBlock()
Returns whether there is another block following this block.
| ||||||||||
abstract boolean |
hasPreviousBlock()
Returns whether there is another block before this block.
| ||||||||||
abstract void |
setBlockSize(int value)
Sets the block size.
|
Constant for first block
Constant for next block
Constant for previous block
Returns current block's position
MSTRCheckedException | Thrown when an error happened during the action. |
---|
Returns the size of current block.
Goto a certain block.
blockIndex | int When the value is negative number, it represents the named block FIRST_BLOCK ,
NEXT_BLOCK , PREVIOUS_BLOCK . When it is non-negative number, it indicates the 0-based absolute
block index. |
---|
MSTRCheckedException | Thrown if an error happended during the action. |
---|---|
IllegalArgumentException | Thrown if the input argument is not a valid value. |
Returns whether there is another block following this block.
true
when there is another block following. Returns false
when this is the last block.
MSTRCheckedException | Thrown if an error happened during this action. |
---|
Returns whether there is another block before this block.
true
when there is another block before this one. Returns false
when this is the first block.
MSTRCheckedException | Thrown if an error happened during this action. |
---|
Sets the block size. Each time when this method is called, the current block will reset to the first block.
value | int the new block size |
---|
MSTRCheckedException | Thrown when error happens during setting this value. |
---|