T
- The data-type of the cellW
- The Widget to be wrapped by the DOMElement.E
- The DOMElement type that this Factory generates.public abstract class BaseDOMElementFactory<T,W extends com.google.gwt.user.client.ui.Widget,E extends BaseDOMElement<T,W>> extends Object implements MultipleDOMElementFactory<W,E>
Modifier and Type | Field and Description |
---|---|
protected List<E> |
domElements |
protected GridLayer |
gridLayer |
protected GridWidget |
gridWidget |
Constructor and Description |
---|
BaseDOMElementFactory(GridLayer gridLayer,
GridWidget gridWidget) |
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.
|
void |
destroyResources()
Destroys all additional resources created during initialisation.
|
void |
freeUnusedResources()
Destroys additional resources that are not required.
|
void |
initialiseResources()
Initialises additional resources.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDomElement, createWidget, registerHandlers
protected final GridLayer gridLayer
protected final GridWidget gridWidget
protected final List<E extends BaseDOMElement<T,W>> domElements
public BaseDOMElementFactory(GridLayer gridLayer, GridWidget gridWidget)
public void attachDomElement(GridBodyCellRenderContext context, Consumer<E> onCreation, Consumer<E> onDisplay)
DOMElementFactory
attachDomElement
in interface DOMElementFactory<W extends com.google.gwt.user.client.ui.Widget,E extends BaseDOMElement<T,W>>
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.public void initialiseResources()
HasMultipleDOMElementResources
initialiseResources
in interface HasMultipleDOMElementResources
public void destroyResources()
HasDOMElementResources
destroyResources
in interface HasDOMElementResources
public void freeUnusedResources()
HasMultipleDOMElementResources
freeUnusedResources
in interface HasMultipleDOMElementResources
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.