public class DefaultWidgetHandler extends java.lang.Object implements WidgetHandler, java.io.Serializable
Constructor and Description |
---|
DefaultWidgetHandler() |
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,
java.lang.String widgetId)
Redraw widget
|
void |
updateWidgets(SSheet sheet,
int left,
int top,
int right,
int bottom)
Deprecated.
|
public boolean addWidget(Widget widget)
WidgetHandler
addWidget
in interface WidgetHandler
widget
- a widget@Deprecated public void updateWidgets(SSheet sheet, int left, int top, int right, int bottom)
updateWidgets
in interface WidgetHandler
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 rangepublic void updateWidget(SSheet sheet, java.lang.String widgetId)
WidgetHandler
updateWidget
in interface WidgetHandler
public Spreadsheet getSpreadsheet()
WidgetHandler
getSpreadsheet
in interface WidgetHandler
public boolean removeWidget(Widget widget)
WidgetHandler
removeWidget
in interface WidgetHandler
public void init(Spreadsheet spreadsheet)
WidgetHandler
init
in interface WidgetHandler
public void onLoadOnDemand(SSheet sheet, int left, int top, int right, int bottom)
WidgetHandler
onLoadOnDemand
in interface WidgetHandler
public void invaliate()
WidgetHandler
invaliate
in interface WidgetHandler
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.