Package io.keikaiex.ui.widget
Class DefaultBookWidgetLoader
- java.lang.Object
-
- io.keikaiex.ui.widget.DefaultBookWidgetLoader
-
- All Implemented Interfaces:
WidgetLoader,Serializable
public class DefaultBookWidgetLoader extends Object implements WidgetLoader
- Author:
- Dennis.Chen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultBookWidgetLoader()
-
Method Summary
All Methods Instance Methods Concrete 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.protected WidgetnewChartWidget(SSheet sheet, SChart chart, String panel, int zindex)protected List<Widget>newChartWidgetGroup(SSheet sheet, SChart chart, int zindex)protected WidgetnewImageWidget(SSheet sheet, SPicture picture, org.zkoss.image.Image image, String panel, int zindex)protected List<Widget>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)
-
-
-
Method Detail
-
init
public void init(Spreadsheet spreadsheet)
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
public void onSheetClean(SSheet sheet)
Description copied from interface:WidgetLoaderindicate the sheet is dis-selected- Specified by:
onSheetCleanin interfaceWidgetLoader
-
onSheetSelected
public void onSheetSelected(SSheet sheet)
Description copied from interface:WidgetLoaderindicate the selected sheet of a spreadsheet is changed.- Specified by:
onSheetSelectedin interfaceWidgetLoader
-
onSheetFreeze
public void onSheetFreeze(SSheet sheet)
Description copied from interface:WidgetLoaderindicate the sheet's freeze panel is changed.- Specified by:
onSheetFreezein interfaceWidgetLoader
-
onColumnChange
public void onColumnChange(SSheet sheet, int left, int right)
- Specified by:
onColumnChangein interfaceWidgetLoader
-
onRowChange
public void onRowChange(SSheet sheet, int top, int bottom)
- Specified by:
onRowChangein interfaceWidgetLoader
-
onResetSparklineAnchor
public void onResetSparklineAnchor(SSheet sheet, CellRegion region)
- Specified by:
onResetSparklineAnchorin interfaceWidgetLoader
-
onRowColumnChange
public void onRowColumnChange(SSheet sheet, CellRegion region)
- Specified by:
onRowColumnChangein interfaceWidgetLoader
-
addChartWidget
public void addChartWidget(SSheet sheet, SChart chart)
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
public void addPictureWidget(SSheet sheet, SPicture picture)
- Specified by:
addPictureWidgetin interfaceWidgetLoader
-
deletePictureWidget
public void deletePictureWidget(SSheet sheet, String pictureId)
- Specified by:
deletePictureWidgetin interfaceWidgetLoader
-
updatePictureWidget
public void updatePictureWidget(SSheet sheet, SPicture picture)
- Specified by:
updatePictureWidgetin interfaceWidgetLoader
-
newImageWidgetGroup
protected List<Widget> newImageWidgetGroup(SSheet sheet, SPicture picture, int zindex)
-
newImageWidget
protected Widget newImageWidget(SSheet sheet, SPicture picture, org.zkoss.image.Image image, String panel, int zindex)
-
newChartWidgetGroup
protected List<Widget> newChartWidgetGroup(SSheet sheet, SChart chart, int zindex) throws IOException
- Throws:
IOException
-
newChartWidget
protected Widget newChartWidget(SSheet sheet, SChart chart, String panel, int zindex)
-
updateChartWidget
public void updateChartWidget(SSheet sheet, SChart chart)
- Specified by:
updateChartWidgetin interfaceWidgetLoader
-
deleteChartWidget
public void deleteChartWidget(SSheet sheet, String chartId)
- Specified by:
deleteChartWidgetin interfaceWidgetLoader
-
-