public class VoidWidgetHandler extends Object implements WidgetHandler, Serializable
| Constructor and Description |
|---|
VoidWidgetHandler() |
| 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)
Redraw widget from a handler per the contents changes.
|
public boolean addWidget(Widget widget)
WidgetHandleraddWidget in interface WidgetHandlerwidget - a widgetpublic Spreadsheet getSpreadsheet()
WidgetHandlergetSpreadsheet in interface WidgetHandlerpublic void invaliate()
WidgetHandlerinvaliate in interface WidgetHandlerpublic void onLoadOnDemand(SSheet sheet, int left, int top, int right, int bottom)
WidgetHandleronLoadOnDemand in interface WidgetHandlerpublic boolean removeWidget(Widget widget)
WidgetHandlerremoveWidget in interface WidgetHandlerpublic void init(Spreadsheet spreadsheet)
WidgetHandlerinit in interface WidgetHandlerpublic void updateWidgets(SSheet sheet, int left, int top, int right, int bottom)
WidgetHandlerupdateWidgets in interface WidgetHandlersheet - 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 rangepublic void updateWidget(SSheet sheet, String widgetId)
WidgetHandlerupdateWidget in interface WidgetHandlerCopyright © 2020. All rights reserved.