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 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.protected Widget
newChartWidget(SSheet sheet, SChart chart, String panel, int zindex)
protected List<Widget>
newChartWidgetGroup(SSheet sheet, SChart chart, int zindex)
protected Widget
newImageWidget(SSheet sheet, SPicture picture, org.zkoss.image.Image image, String panel, int zindex)
protected List<Widget>
newImageWidgetGroup(SSheet sheet, SPicture picture, int zindex)
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
public void init(Spreadsheet spreadsheet)
Description copied from interface:WidgetLoader
Initial a widget loader with a spreadsheet- Specified by:
init
in interfaceWidgetLoader
-
invalidate
public void invalidate()
Description copied from interface:WidgetLoader
indicate the spreadsheet is invalidated.- Specified by:
invalidate
in interfaceWidgetLoader
-
onSheetClean
public void onSheetClean(SSheet sheet)
Description copied from interface:WidgetLoader
indicate the sheet is dis-selected- Specified by:
onSheetClean
in interfaceWidgetLoader
-
onSheetSelected
public void onSheetSelected(SSheet sheet)
Description copied from interface:WidgetLoader
indicate the selected sheet of a spreadsheet is changed.- Specified by:
onSheetSelected
in interfaceWidgetLoader
-
onSheetFreeze
public void onSheetFreeze(SSheet sheet)
Description copied from interface:WidgetLoader
indicate the sheet's freeze panel is changed.- Specified by:
onSheetFreeze
in interfaceWidgetLoader
-
onColumnChange
public void onColumnChange(SSheet sheet, int left, int right)
- Specified by:
onColumnChange
in interfaceWidgetLoader
-
onRowChange
public void onRowChange(SSheet sheet, int top, int bottom)
- Specified by:
onRowChange
in interfaceWidgetLoader
-
onResetSparklineAnchor
public void onResetSparklineAnchor(SSheet sheet, CellRegion region)
- Specified by:
onResetSparklineAnchor
in interfaceWidgetLoader
-
onRowColumnChange
public void onRowColumnChange(SSheet sheet, CellRegion region)
- Specified by:
onRowColumnChange
in interfaceWidgetLoader
-
addChartWidget
public void addChartWidget(SSheet sheet, SChart chart)
Description copied from interface:WidgetLoader
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.- Specified by:
addChartWidget
in interfaceWidgetLoader
-
addPictureWidget
public void addPictureWidget(SSheet sheet, SPicture picture)
- Specified by:
addPictureWidget
in interfaceWidgetLoader
-
deletePictureWidget
public void deletePictureWidget(SSheet sheet, String pictureId)
- Specified by:
deletePictureWidget
in interfaceWidgetLoader
-
updatePictureWidget
public void updatePictureWidget(SSheet sheet, SPicture picture)
- Specified by:
updatePictureWidget
in 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:
updateChartWidget
in interfaceWidgetLoader
-
deleteChartWidget
public void deleteChartWidget(SSheet sheet, String chartId)
- Specified by:
deleteChartWidget
in interfaceWidgetLoader
-
-