(int index)
| 693 | } |
| 694 | |
| 695 | public void moveCursorTo(int index){ |
| 696 | int count = getItemCount(); |
| 697 | if (count == 0) |
| 698 | return; |
| 699 | if (index <= 0) |
| 700 | index = 0; |
| 701 | else if (index >= count) |
| 702 | index = count - 1; |
| 703 | VirtualElement item = getItemRef(index); |
| 704 | if (item != null && item.isSelectable()) |
| 705 | cursor = index; |
| 706 | |
| 707 | stickyWindow=true; |
| 708 | redraw(); |
| 709 | //setRotator(); |
| 710 | } |
| 711 | |
| 712 | protected synchronized void fitCursorByTop() { |
| 713 | if (cursor >= itemLayoutY.length) |
no test coverage detected