if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenChanged(update,startRow,startCol,startRow,startCol); } } }
int startRow = getRow(lastPos);  int startCol = getCol(lastPos);  if (listeners != null) {  int size = listeners.size();  for (int i = 0; i < size; i++) {  ScreenListener target =  (ScreenListener) listeners.elementAt(i);  target.onScreenChanged(update, startRow, startCol, startRow, startCol);  }  }  }
   private synchronized void fireCursorChanged(int update) {      int startRow = getRow(lastPos);      int startCol = getCol(lastPos);      if (listeners != null) {         int size = listeners.size();         for (int i = 0; i < size; i++) {            ScreenListener target =                    (ScreenListener)listeners.elementAt(i);            target.onScreenChanged(update,startRow,startCol,startRow,startCol);         }      }   }