T
- The data-type represented by the DOMElement.W
- The Widget to be wrapped by the DOMElement.public abstract class BaseDOMElement<T,W extends com.google.gwt.user.client.ui.Widget> extends Object
Modifier and Type | Field and Description |
---|---|
protected GridBodyCellRenderContext |
context |
protected com.google.gwt.user.client.ui.AbsolutePanel |
domElementContainer |
protected GridLayer |
gridLayer |
protected GridWidget |
gridWidget |
protected W |
widget |
protected com.google.gwt.user.client.ui.SimplePanel |
widgetContainer |
Constructor and Description |
---|
BaseDOMElement(W widget,
GridLayer gridLayer,
GridWidget gridWidget) |
Modifier and Type | Method and Description |
---|---|
void |
attach()
Attach the DOMElement to the GWT container, if not already attached.
|
void |
detach()
Detach the DOMElement from the GWT container, if already attached.
|
abstract void |
flush(T value)
Flush the state of the GWT Widget to the underlying GridWidget.
|
protected com.google.gwt.user.client.ui.SimplePanel |
getContainer()
Get the container for the GWT Widget.
|
W |
getWidget()
Get a GWT Widget for the DOMElement.
|
abstract void |
initialise(GridBodyCellRenderContext context)
Initialise the DOMElement for the given cell and render context.
|
void |
setContext(GridBodyCellRenderContext context)
Set the Cell context this DOMElement is representing.
|
protected void |
setupDelegatingClickHandler() |
protected void |
setupDelegatingMouseDownHandler() |
protected void |
setupDelegatingMouseMoveHandler() |
protected void |
setupDelegatingMouseUpHandler() |
protected void |
transform(GridBodyCellRenderContext context)
Transform the DOMElement based on the render context, such as scale and position.
|
protected final W extends com.google.gwt.user.client.ui.Widget widget
protected final com.google.gwt.user.client.ui.SimplePanel widgetContainer
protected final GridLayer gridLayer
protected final GridWidget gridWidget
protected final com.google.gwt.user.client.ui.AbsolutePanel domElementContainer
protected GridBodyCellRenderContext context
public BaseDOMElement(W widget, GridLayer gridLayer, GridWidget gridWidget)
protected void setupDelegatingMouseDownHandler()
protected void setupDelegatingMouseMoveHandler()
protected void setupDelegatingMouseUpHandler()
protected void setupDelegatingClickHandler()
public void setContext(GridBodyCellRenderContext context)
context
- public abstract void initialise(GridBodyCellRenderContext context)
context
- The render context for the cell.public abstract void flush(T value)
value
- The cell value requiring a DOMElement.public W getWidget()
protected com.google.gwt.user.client.ui.SimplePanel getContainer()
protected void transform(GridBodyCellRenderContext context)
context
- public void attach()
public void detach()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.