Package io.keikai.ui.sys
Interface WidgetLoader
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultBookWidgetLoader
A controller interface to add/remove widget into/from spreadsheet
- Author:
- Dennis.Chen
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChartWidget(SSheet sheet, SChart chart) call when spreadsheet try to load a block of cell to client side.voidaddPictureWidget(SSheet sheet, SPicture picture) voiddeleteChartWidget(SSheet sheet, String chartId) voiddeletePictureWidget(SSheet sheet, String pictureId) voidinit(Spreadsheet spreadsheet) Initial a widget loader with a spreadsheetvoidindicate the spreadsheet is invalidated.voidonColumnChange(SSheet sheet, int left, int right) voidonResetSparklineAnchor(SSheet sheet, CellRegion region) voidonRowChange(SSheet sheet, int top, int bottom) voidonRowColumnChange(SSheet sheet, CellRegion region) voidonSheetClean(SSheet sheet) indicate the sheet is dis-selectedvoidonSheetFreeze(SSheet sheet) indicate the sheet's freeze panel is changed.voidonSheetSelected(SSheet sheet) indicate the selected sheet of a spreadsheet is changed.voidupdateChartWidget(SSheet sheet, SChart chart) voidupdatePictureWidget(SSheet sheet, SPicture picture)
-
Method Details
-
init
Initial a widget loader with a spreadsheet- Parameters:
spreadsheet-
-
invalidate
void invalidate()indicate the spreadsheet is invalidated. -
onSheetSelected
indicate the selected sheet of a spreadsheet is changed.- Parameters:
sheet-
-
onSheetClean
indicate the sheet is dis-selected- Parameters:
sheet-
-
onSheetFreeze
indicate the sheet's freeze panel is changed.- Parameters:
sheet-
-
addChartWidget
call when spreadsheet try to load a block of cell to client side. handler should take care this method and load corresponding widgets, which in the block , to client side. this method will be invoked by spreadsheet, you should not call this method directly. -
deleteChartWidget
-
updateChartWidget
-
addPictureWidget
-
deletePictureWidget
-
updatePictureWidget
-
onColumnChange
-
onRowChange
-
onRowColumnChange
-
onResetSparklineAnchor
-