Package io.keikai.ui.impl
Class VoidWidgetHandler
java.lang.Object
io.keikai.ui.impl.VoidWidgetHandler
- All Implemented Interfaces:
WidgetHandler,Serializable
Default widget implementation, don't provide any function.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd widget to a handler, notice : WidgetHandler and Widget are implementation-sensitive.get spreadsheet of this handlervoidinit(Spreadsheet spreadsheet) initial a widget handler.voidinvalidate this handle, which means all widget in client side will be remove, and need to re-drew.voidonLoadOnDemand(SSheet sheet, int left, int top, int right, int bottom) call when spreadsheet try to load a block of cell to client side.booleanremoveWidget(Widget widget) Remove widget from a handler notice : WidgetHandler and Widget are implementation-sensitive.voidupdateWidget(SSheet sheet, String widgetId) Redraw widgetvoidupdateWidgets(SSheet sheet, int left, int top, int right, int bottom) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.keikai.ui.sys.WidgetHandler
getClientWidgets
-
Constructor Details
-
VoidWidgetHandler
public VoidWidgetHandler()
-
-
Method Details
-
addWidget
Description copied from interface:WidgetHandlerAdd widget to a handler, notice : WidgetHandler and Widget are implementation-sensitive.- Specified by:
addWidgetin interfaceWidgetHandler- Parameters:
widget- a widget- Returns:
- true if success to add a widget
-
getSpreadsheet
Description copied from interface:WidgetHandlerget spreadsheet of this handler- Specified by:
getSpreadsheetin interfaceWidgetHandler- Returns:
- spreadsheet
-
invaliate
public void invaliate()Description copied from interface:WidgetHandlerinvalidate this handle, which means all widget in client side will be remove, and need to re-drew. this method will be invoked when spreadsheet invalidate only.- Specified by:
invaliatein interfaceWidgetHandler
-
onLoadOnDemand
Description copied from interface:WidgetHandlercall 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.- Specified by:
onLoadOnDemandin interfaceWidgetHandler
-
removeWidget
Description copied from interface:WidgetHandlerRemove widget from a handler notice : WidgetHandler and Widget are implementation-sensitive.- Specified by:
removeWidgetin interfaceWidgetHandler- Returns:
- true if success to remove a widget
-
init
Description copied from interface:WidgetHandlerinitial a widget handler. this method will be invoked by spreadsheet, you should not call this method directly.- Specified by:
initin interfaceWidgetHandler
-
updateWidgets
-
updateWidget
Description copied from interface:WidgetHandlerRedraw widget- Specified by:
updateWidgetin interfaceWidgetHandler
-