()
| 514 | } |
| 515 | |
| 516 | public void run() { |
| 517 | |
| 518 | |
| 519 | if (scroll == 0) { |
| 520 | if (scroll()) { |
| 521 | if (attachedList != null) { |
| 522 | attachedList.redraw(); |
| 523 | } |
| 524 | } else { |
| 525 | if (timer != null) { |
| 526 | timer.cancel(); |
| 527 | timer = null; |
| 528 | instance = null; |
| 529 | } |
| 530 | } |
| 531 | } else { |
| 532 | scroll--; |
| 533 | } |
| 534 | /* TODO: remove |
| 535 | if (VirtualList.reconnectRedraw) { |
| 536 | VirtualList.reconnectRedraw = false; |
| 537 | try { |
| 538 | attachedList.redraw(); |
| 539 | } catch (Exception e) { |
| 540 | instance = null; |
| 541 | } |
| 542 | } |
| 543 | */ |
| 544 | |
| 545 | } |
| 546 | |
| 547 | public boolean scroll() { |
| 548 | synchronized (this) { |