Package io.keikai.ui.sys
Interface WidgetLoader
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultBookWidgetLoader
public interface WidgetLoader extends Serializable
A controller interface to add/remove widget into/from spreadsheet- Author:
- Dennis.Chen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChartWidget(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 spreadsheetvoidinvalidate()indicate 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 Detail
-
init
void init(Spreadsheet spreadsheet)
Initial a widget loader with a spreadsheet- Parameters:
spreadsheet-
-
invalidate
void invalidate()
indicate the spreadsheet is invalidated.
-
onSheetSelected
void onSheetSelected(SSheet sheet)
indicate the selected sheet of a spreadsheet is changed.- Parameters:
sheet-
-
onSheetClean
void onSheetClean(SSheet sheet)
indicate the sheet is dis-selected- Parameters:
sheet-
-
onSheetFreeze
void onSheetFreeze(SSheet sheet)
indicate the sheet's freeze panel is changed.- Parameters:
sheet-
-
addChartWidget
void addChartWidget(SSheet sheet, SChart chart)
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.
-
onColumnChange
void onColumnChange(SSheet sheet, int left, int right)
-
onRowChange
void onRowChange(SSheet sheet, int top, int bottom)
-
onRowColumnChange
void onRowColumnChange(SSheet sheet, CellRegion region)
-
onResetSparklineAnchor
void onResetSparklineAnchor(SSheet sheet, CellRegion region)
-
-