rangeTop = _mergeMatrix.getTopConnectedRow(newTop, rangeLeft, rangeRight);
rangeBtm = _mergeMatrix.getBottomConnectedRow(newBtm, rangeLeft, rangeRight);
}
final SpreadsheetCtrl spreadsheetCtrl = ((SpreadsheetCtrl) _spreadsheet.getExtraCtrl());
JSONObject mainBlock = spreadsheetCtrl.getRangeAttrs(sheet,
header, SpreadsheetCtrl.CellAttribute.ALL, rangeLeft, rangeTop, rangeRight, rangeBtm);
mainBlock.put("dir", "jump");
json.put("data", mainBlock);
_lastleft = left;
_lastright = right;
_lasttop = top;
_lastbottom = bottom;
_loadedLeft = rangeLeft;
_loadedRight = rangeRight;
_loadedTop = rangeTop;
_loadedRight = rangeBtm;
// prepare top frozen cell
int fzr = _spreadsheet.getRowfreeze();
if (fzr > -1) {
mainBlock.put("topFrozen", spreadsheetCtrl.getRangeAttrs(sheet,
header, SpreadsheetCtrl.CellAttribute.ALL, rangeLeft, 0, rangeRight, fzr));
}
//prepare left frozen cell
int fzc = _spreadsheet.getColumnfreeze();
if (fzc > -1) {
mainBlock.put("leftFrozen", spreadsheetCtrl.getRangeAttrs(sheet,
header, SpreadsheetCtrl.CellAttribute.ALL, 0, rangeTop, fzc, rangeBtm));
}
return json.toString();
}