Sheet sheet = spreadsheet.getSelectedSheet();
int index = book.getSheetIndex(sheet);
if (index < book.getNumberOfSheets() - 1) {
int newIdx = index + 1;
book.setSheetOrder(name, newIdx);
SpreadsheetCtrl ctrl = (SpreadsheetCtrl) spreadsheet.getExtraCtrl();
ctrl.getWidgetHandler().invaliate();
return newIdx;
}
}
return -1;
}