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 void
addChartWidget(SSheet sheet, SChart chart)
call when spreadsheet try to load a block of cell to client side.void
addPictureWidget(SSheet sheet, SPicture picture)
void
deleteChartWidget(SSheet sheet, String chartId)
void
deletePictureWidget(SSheet sheet, String pictureId)
void
init(Spreadsheet spreadsheet)
Initial a widget loader with a spreadsheetvoid
invalidate()
indicate the spreadsheet is invalidated.void
onColumnChange(SSheet sheet, int left, int right)
void
onResetSparklineAnchor(SSheet sheet, CellRegion region)
void
onRowChange(SSheet sheet, int top, int bottom)
void
onRowColumnChange(SSheet sheet, CellRegion region)
void
onSheetClean(SSheet sheet)
indicate the sheet is dis-selectedvoid
onSheetFreeze(SSheet sheet)
indicate the sheet's freeze panel is changed.void
onSheetSelected(SSheet sheet)
indicate the selected sheet of a spreadsheet is changed.void
updateChartWidget(SSheet sheet, SChart chart)
void
updatePictureWidget(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)
-
-