コード例 #1
0
ファイル: TableArea.java プロジェクト: rPman/luwrain
 private boolean onPageUp(KeyboardEvent event, boolean briefIntroduction) {
   if (noContentCheck()) return true;
   if (hotPointY <= 0) {
     environment.hint(Hints.TABLE_NO_ROWS_ABOVE);
     return true;
   }
   hotPointY -= environment.getAreaVisibleHeight(this);
   if (hotPointY < 0) hotPointY = 0;
   onNewHotPointY(briefIntroduction);
   return true;
 }
コード例 #2
0
ファイル: TableArea.java プロジェクト: rPman/luwrain
 private boolean onPageDown(KeyboardEvent event, boolean briefIntroduction) {
   if (noContentCheck()) return true;
   final int count = model.getRowCount();
   if (hotPointY >= count) {
     environment.hint(Hints.TABLE_NO_ROWS_BELOW);
     return true;
   }
   hotPointY += environment.getAreaVisibleHeight(this);
   if (hotPointY >= count) hotPointY = count;
   onNewHotPointY(briefIntroduction);
   return true;
 }