public class ProgressBarRenderer extends WidgetRenderer<Double,VProgressBar>
Constructor and Description |
---|
ProgressBarRenderer() |
Modifier and Type | Method and Description |
---|---|
VProgressBar |
createWidget()
Creates a widget to attach to a cell.
|
void |
render(RendererCellReference cell,
Double data,
VProgressBar progressBar)
Renders a cell with a widget.
|
getWidget, getWidget, init, render
destroy, destroy, getConsumedEvents, onActivate, onBrowserEvent, setContentVisible
public VProgressBar createWidget()
WidgetRenderer
createWidget
in class WidgetRenderer<Double,VProgressBar>
public void render(RendererCellReference cell, Double data, VProgressBar progressBar)
WidgetRenderer
For optimal performance, work done in this method should be kept to a
minimum since it will be called continuously while the user is scrolling.
The renderer can use Widget.setLayoutData(Object)
to store cell
data that might be needed in e.g. event listeners.
render
in class WidgetRenderer<Double,VProgressBar>
cell
- The cell to render. Note that the cell is a flyweight and
should not be stored and used outside of this method as its
contents will change.data
- the data of the cellprogressBar
- the widget embedded in the cellCopyright © 2019 Vaadin Ltd. All rights reserved.