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, waitcreateDomElement, createWidget, registerHandlersprotected 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)
DOMElementFactoryattachDomElement 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()
HasMultipleDOMElementResourcesinitialiseResources in interface HasMultipleDOMElementResourcespublic void destroyResources()
HasDOMElementResourcesdestroyResources in interface HasDOMElementResourcespublic void freeUnusedResources()
HasMultipleDOMElementResourcesfreeUnusedResources in interface HasMultipleDOMElementResourcesCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.