Package com.microstrategy.web.objects
Interface Scrollable
-
- All Known Subinterfaces:
UserEntitiesBean,UserEntitiesBrowserBean,UserEntitiesSelectorBean,UserGroupBean,WebUserGroup
public interface ScrollableGeneric interface representing scrollable collection.- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static intFIRST_BLOCKConstant for first blockstatic intNEXT_BLOCKConstant for next blockstatic intPREVIOUS_BLOCKConstant for previous block
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBlockPosition()Returns current block's positionintgetBlockSize()Returns the size of current block.voidgotoBlock(int blockIndex)Goto a certain block.booleanhasNextBlock()Returns whether there is another block following this block.booleanhasPreviousBlock()Returns whether there is another block before this block.voidsetBlockSize(int value)Sets the block size.
-
-
-
Field Detail
-
NEXT_BLOCK
static final int NEXT_BLOCK
Constant for next block- See Also:
- Constant Field Values
-
PREVIOUS_BLOCK
static final int PREVIOUS_BLOCK
Constant for previous block- See Also:
- Constant Field Values
-
FIRST_BLOCK
static final int FIRST_BLOCK
Constant for first block- See Also:
- Constant Field Values
-
-
Method Detail
-
getBlockSize
int getBlockSize()
Returns the size of current block.- Returns:
- int
-
setBlockSize
void setBlockSize(int value) throws MSTRCheckedExceptionSets the block size. Each time when this method is called, the current block will reset to the first block.- Parameters:
value- int the new block size- Throws:
MSTRCheckedException- Thrown when error happens during setting this value.
-
gotoBlock
void gotoBlock(int blockIndex) throws MSTRCheckedException, java.lang.IllegalArgumentExceptionGoto a certain block.- Parameters:
blockIndex- int When the value is negative number, it represents the named blockFIRST_BLOCK,NEXT_BLOCK,PREVIOUS_BLOCK. When it is non-negative number, it indicates the 0-based absolute block index.- Throws:
MSTRCheckedException- Thrown if an error happended during the action.java.lang.IllegalArgumentException- Thrown if the input argument is not a valid value.
-
hasNextBlock
boolean hasNextBlock() throws MSTRCheckedExceptionReturns whether there is another block following this block.- Returns:
- boolean Returns
truewhen there is another block following. Returnsfalsewhen this is the last block. - Throws:
MSTRCheckedException- Thrown if an error happened during this action.
-
hasPreviousBlock
boolean hasPreviousBlock() throws MSTRCheckedExceptionReturns whether there is another block before this block.- Returns:
- boolean Returns
truewhen there is another block before this one. Returnsfalsewhen this is the first block. - Throws:
MSTRCheckedException- Thrown if an error happened during this action.
-
getBlockPosition
int getBlockPosition() throws MSTRCheckedExceptionReturns current block's position- Returns:
- int The 1-based block position.
- Throws:
MSTRCheckedException- Thrown when an error happened during the action.
-
-