()
| 1015 | } |
| 1016 | |
| 1017 | private boolean itemPageDown() { |
| 1018 | stickyWindow = false; |
| 1019 | Object o = getFocusedObject(); |
| 1020 | if (o == null) { |
| 1021 | return false; |
| 1022 | } |
| 1023 | |
| 1024 | if (((VirtualElement) o).getVHeight() <= winHeight) { |
| 1025 | stickyWindow = true; |
| 1026 | return false; |
| 1027 | } |
| 1028 | |
| 1029 | if (!cursorInWindow()) { |
| 1030 | return false; |
| 1031 | } |
| 1032 | |
| 1033 | int remainder = itemLayoutY[cursor + 1] - win_top; |
| 1034 | if (remainder <= winHeight) { |
| 1035 | return false; |
| 1036 | } |
| 1037 | if (remainder <= 2 * winHeight) { |
| 1038 | win_top = remainder - winHeight + win_top + 8; |
| 1039 | return true; |
| 1040 | } |
| 1041 | |
| 1042 | win_top += winHeight - stringHeight;//-stringHeight; |
| 1043 | return true; |
| 1044 | } |
| 1045 | |
| 1046 | private boolean itemPageUp() { |
| 1047 | stickyWindow=false; |
no test coverage detected