public class DefaultBookWidgetLoader extends Object implements WidgetLoader
| Constructor and Description |
|---|
DefaultBookWidgetLoader() |
| Modifier and Type | Method and 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 spreadsheet
|
void |
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 |
onRowChange(SSheet sheet,
int top,
int bottom) |
void |
onSheetClean(SSheet sheet)
indicate the sheet is dis-selected
|
void |
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) |
public void init(Spreadsheet spreadsheet)
WidgetLoaderinit in interface WidgetLoaderpublic void invalidate()
WidgetLoaderinvalidate in interface WidgetLoaderpublic void onSheetClean(SSheet sheet)
WidgetLoaderonSheetClean in interface WidgetLoaderpublic void onSheetSelected(SSheet sheet)
WidgetLoaderonSheetSelected in interface WidgetLoaderpublic void onSheetFreeze(SSheet sheet)
WidgetLoaderonSheetFreeze in interface WidgetLoaderpublic void onColumnChange(SSheet sheet, int left, int right)
onColumnChange in interface WidgetLoaderpublic void onRowChange(SSheet sheet, int top, int bottom)
onRowChange in interface WidgetLoaderpublic void addChartWidget(SSheet sheet, SChart chart)
WidgetLoaderaddChartWidget in interface WidgetLoaderpublic void addPictureWidget(SSheet sheet, SPicture picture)
addPictureWidget in interface WidgetLoaderpublic void deletePictureWidget(SSheet sheet, String pictureId)
deletePictureWidget in interface WidgetLoaderpublic void updatePictureWidget(SSheet sheet, SPicture picture)
updatePictureWidget in interface WidgetLoaderprotected List<Widget> newImageWidgetGroup(SSheet sheet, SPicture picture, int zindex)
protected Widget newImageWidget(SSheet sheet, SPicture picture, org.zkoss.image.Image image, String panel, int zindex)
protected List<Widget> newChartWidgetGroup(SSheet sheet, SChart chart, int zindex) throws IOException
IOExceptionprotected Widget newChartWidget(SSheet sheet, SChart chart, String panel, int zindex)
public void updateChartWidget(SSheet sheet, SChart chart)
updateChartWidget in interface WidgetLoaderpublic void deleteChartWidget(SSheet sheet, String chartId)
deleteChartWidget in interface WidgetLoaderCopyright © 2020. All rights reserved.