public interface WidgetHandler
Modifier and Type | Method and Description |
---|---|
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(SSheet 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 |
updateWidget(SSheet sheet,
String widgetId)
Redraw widget
|
void |
updateWidgets(SSheet sheet,
int left,
int top,
int right,
int bottom)
Deprecated.
|
void init(Spreadsheet spreadsheet)
spreadsheet
- Spreadsheet getSpreadsheet()
boolean addWidget(Widget widget)
widget
- a widgetboolean removeWidget(Widget widget)
widget
- void onLoadOnDemand(SSheet sheet, int left, int top, int right, int bottom)
void invaliate()
@Deprecated void updateWidgets(SSheet 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 rangeCopyright © 2020. All rights reserved.