public class DefaultBookWidgetLoader extends java.lang.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,
java.lang.String chartId) |
void |
deletePictureWidget(SSheet sheet,
java.lang.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,
java.lang.String panel,
int zindex) |
protected java.util.List<Widget> |
newChartWidgetGroup(SSheet sheet,
SChart chart,
int zindex) |
protected Widget |
newImageWidget(SSheet sheet,
SPicture picture,
org.zkoss.image.Image image,
java.lang.String panel,
int zindex) |
protected java.util.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)
WidgetLoader
init
in interface WidgetLoader
public void invalidate()
WidgetLoader
invalidate
in interface WidgetLoader
public void onSheetClean(SSheet sheet)
WidgetLoader
onSheetClean
in interface WidgetLoader
public void onSheetSelected(SSheet sheet)
WidgetLoader
onSheetSelected
in interface WidgetLoader
public void onSheetFreeze(SSheet sheet)
WidgetLoader
onSheetFreeze
in interface WidgetLoader
public void onColumnChange(SSheet sheet, int left, int right)
onColumnChange
in interface WidgetLoader
public void onRowChange(SSheet sheet, int top, int bottom)
onRowChange
in interface WidgetLoader
public void addChartWidget(SSheet sheet, SChart chart)
WidgetLoader
addChartWidget
in interface WidgetLoader
public void addPictureWidget(SSheet sheet, SPicture picture)
addPictureWidget
in interface WidgetLoader
public void deletePictureWidget(SSheet sheet, java.lang.String pictureId)
deletePictureWidget
in interface WidgetLoader
public void updatePictureWidget(SSheet sheet, SPicture picture)
updatePictureWidget
in interface WidgetLoader
protected java.util.List<Widget> newImageWidgetGroup(SSheet sheet, SPicture picture, int zindex)
protected Widget newImageWidget(SSheet sheet, SPicture picture, org.zkoss.image.Image image, java.lang.String panel, int zindex)
protected java.util.List<Widget> newChartWidgetGroup(SSheet sheet, SChart chart, int zindex) throws java.io.IOException
java.io.IOException
protected Widget newChartWidget(SSheet sheet, SChart chart, java.lang.String panel, int zindex)
public void updateChartWidget(SSheet sheet, SChart chart)
updateChartWidget
in interface WidgetLoader
public void deleteChartWidget(SSheet sheet, java.lang.String chartId)
deleteChartWidget
in interface WidgetLoader
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.