org.zkoss.zss.ui.sys
Interface WidgetLoader

All Known Implementing Classes:
DefaultBookWidgetLoader

public interface WidgetLoader

A controller interface to add/remove widget into/from spreadsheet

Author:
Dennis.Chen

Method Summary
 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.
 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)
           
 

Method Detail

init

void init(Spreadsheet spreadsheet)
Initial a widget loader with a spreadsheet

Parameters:
spreadsheet -

invalidate

void invalidate()
indicate the spreadsheet is invalidated.


onSheetSelected

void onSheetSelected(SSheet sheet)
indicate the selected sheet of a spreadsheet is changed.

Parameters:
sheet -

onSheetClean

void onSheetClean(SSheet sheet)
indicate the sheet is dis-selected

Parameters:
sheet -

onSheetFreeze

void onSheetFreeze(SSheet sheet)
indicate the sheet's freeze panel is changed.

Parameters:
sheet -

addChartWidget

void addChartWidget(SSheet sheet,
                    SChart chart)
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.


deleteChartWidget

void deleteChartWidget(SSheet sheet,
                       java.lang.String chartId)

updateChartWidget

void updateChartWidget(SSheet sheet,
                       SChart chart)

addPictureWidget

void addPictureWidget(SSheet sheet,
                      SPicture picture)

deletePictureWidget

void deletePictureWidget(SSheet sheet,
                         java.lang.String pictureId)

updatePictureWidget

void updatePictureWidget(SSheet sheet,
                         SPicture picture)

onColumnChange

void onColumnChange(SSheet sheet,
                    int left,
                    int right)

onRowChange

void onRowChange(SSheet sheet,
                 int top,
                 int bottom)


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.