()
| 1044 | } |
| 1045 | |
| 1046 | private boolean itemPageUp() { |
| 1047 | stickyWindow=false; |
| 1048 | Object o = getFocusedObject(); |
| 1049 | if (o == null) { |
| 1050 | return false; |
| 1051 | } |
| 1052 | |
| 1053 | if (((VirtualElement) o).getVHeight() <= winHeight) { |
| 1054 | //stickyWindow=true; |
| 1055 | return false; |
| 1056 | } |
| 1057 | |
| 1058 | if (!cursorInWindow()) { |
| 1059 | return false; |
| 1060 | } |
| 1061 | |
| 1062 | int remainder = win_top - itemLayoutY[cursor]; |
| 1063 | if (remainder <= 0) { |
| 1064 | return false; |
| 1065 | } |
| 1066 | if (remainder <= winHeight) { |
| 1067 | win_top = itemLayoutY[cursor]; |
| 1068 | return true; |
| 1069 | } |
| 1070 | |
| 1071 | win_top -= winHeight - stringHeight;//-stringHeight; |
| 1072 | return true; |
| 1073 | } |
| 1074 | |
| 1075 | public void pageLeft() { |
| 1076 | if (getItemCount()==0) |
no test coverage detected