moveTo

public final void moveTo(int sourceIndex, int destinationIndex)

Moves a page from one position to another.

Parameters

sourceIndex

The 0-based index of the page to move.

destinationIndex

The 0-based index of the destination position.

Throws

Thrown when either index is out of range.

Thrown when the operation fails.