|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WidgetHandler
WidgetHandler control when widgets should display on client, when should remove. WidgetHandler and Widget are implementation-sensitive.
| Method Summary | |
|---|---|
boolean |
addWidget(Widget widget)
Add widget to a handler, notice : WidgetHandler and Widget are implementation-sensitive. |
Spreadsheet |
getSpreadsheet()
get spreadsheet of this handler |
void |
init(Spreadsheet spreadsheet)
initial a widget handler. |
void |
invaliate()
invalidate this handle, which means all widget in client side will be remove, and need to re-drew. |
void |
onLoadOnDemand(Worksheet sheet,
int left,
int top,
int right,
int bottom)
call when spreadsheet try to load a block of cell to client side. |
boolean |
removeWidget(Widget widget)
Remove widget from a handler notice : WidgetHandler and Widget are implementation-sensitive. |
void |
updateWidgets(Worksheet sheet,
int left,
int top,
int right,
int bottom)
Redraw widget from a handler per the contents changs. |
| Method Detail |
|---|
void init(Spreadsheet spreadsheet)
spreadsheet - Spreadsheet getSpreadsheet()
boolean addWidget(Widget widget)
widget - a widget
boolean removeWidget(Widget widget)
widget -
void onLoadOnDemand(Worksheet sheet,
int left,
int top,
int right,
int bottom)
void invaliate()
void updateWidgets(Worksheet sheet,
int left,
int top,
int right,
int bottom)
sheet - the sheet that contents has changedleft - left column of the rangetop - top row of the rangeright - right column of the rangebottom - bottom row of the range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||