W - The Widget to be wrapped by the DOMElement.E - The DOMElement type that this Factory generates.public interface DOMElementFactory<W,E> extends HasDOMElementResources
| Modifier and Type | Method and Description |
|---|---|
void |
attachDomElement(GridBodyCellRenderContext context,
Consumer<E> onCreation,
Consumer<E> onDisplay)
Initialises a DOMElement for a cell and attach it to the GWT container.
|
E |
createDomElement(GridLayer gridLayer,
GridWidget gridWidget)
Creates a DOMElement.
|
W |
createWidget()
Creates a Widget to be wrapped by the DOMElement
|
void |
registerHandlers(W widget,
E widgetDomElement)
Register handlers for the widget.
|
destroyResourcesW createWidget()
E createDomElement(GridLayer gridLayer, GridWidget gridWidget)
gridLayer - The Lienzo layer on which the Grid Widget is attached. DOMElements may need to redraw the Layer when their state changes.gridWidget - The GridWidget to which this DOMElement is to be associated.void registerHandlers(W widget, E widgetDomElement)
widget - widgetDomElement - void attachDomElement(GridBodyCellRenderContext context, Consumer<E> onCreation, Consumer<E> onDisplay)
context - The render context of the cell.onCreation - A callback that is invoked after the cell has been initialised, allowing content etc to be pre-setonDisplay - A callback that is invoked after the cell has been attached to the DOM and displayed.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.