Package io.keikaiex.ui.widget
Class DefaultBookWidgetLoader
java.lang.Object
io.keikaiex.ui.widget.DefaultBookWidgetLoader
- All Implemented Interfaces:
WidgetLoader,Serializable
- Author:
- Dennis.Chen
- See Also:
-
Constructor Summary
Constructors -
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.protected WidgetnewChartWidget(SSheet sheet, SChart chart, String panel, int zindex) newChartWidgetGroup(SSheet sheet, SChart chart, int zindex) protected WidgetnewImageWidget(SSheet sheet, SPicture picture, org.zkoss.image.Image image, String panel, int zindex) newImageWidgetGroup(SSheet sheet, SPicture picture, int zindex) 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)
-
Constructor Details
-
DefaultBookWidgetLoader
public DefaultBookWidgetLoader()
-
-
Method Details
-
init
Description copied from interface:WidgetLoaderInitial a widget loader with a spreadsheet- Specified by:
initin interfaceWidgetLoader
-
invalidate
public void invalidate()Description copied from interface:WidgetLoaderindicate the spreadsheet is invalidated.- Specified by:
invalidatein interfaceWidgetLoader
-
onSheetClean
Description copied from interface:WidgetLoaderindicate the sheet is dis-selected- Specified by:
onSheetCleanin interfaceWidgetLoader
-
onSheetSelected
Description copied from interface:WidgetLoaderindicate the selected sheet of a spreadsheet is changed.- Specified by:
onSheetSelectedin interfaceWidgetLoader
-
onSheetFreeze
Description copied from interface:WidgetLoaderindicate the sheet's freeze panel is changed.- Specified by:
onSheetFreezein interfaceWidgetLoader
-
onColumnChange
- Specified by:
onColumnChangein interfaceWidgetLoader
-
onRowChange
- Specified by:
onRowChangein interfaceWidgetLoader
-
onResetSparklineAnchor
- Specified by:
onResetSparklineAnchorin interfaceWidgetLoader
-
onRowColumnChange
- Specified by:
onRowColumnChangein interfaceWidgetLoader
-
addChartWidget
Description copied from interface:WidgetLoadercall 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.- Specified by:
addChartWidgetin interfaceWidgetLoader
-
addPictureWidget
- Specified by:
addPictureWidgetin interfaceWidgetLoader
-
deletePictureWidget
- Specified by:
deletePictureWidgetin interfaceWidgetLoader
-
updatePictureWidget
- Specified by:
updatePictureWidgetin interfaceWidgetLoader
-
newImageWidgetGroup
-
newImageWidget
-
newChartWidgetGroup
protected List<Widget> newChartWidgetGroup(SSheet sheet, SChart chart, int zindex) throws IOException - Throws:
IOException
-
newChartWidget
-
updateChartWidget
- Specified by:
updateChartWidgetin interfaceWidgetLoader
-
deleteChartWidget
- Specified by:
deleteChartWidgetin interfaceWidgetLoader
-