com.vaadin.client.renderers.
Class ProgressBarRenderer
- java.lang.Object
-
- com.vaadin.client.renderers.ComplexRenderer<T>
-
- com.vaadin.client.renderers.WidgetRenderer<Double,VProgressBar>
-
- com.vaadin.client.renderers.ProgressBarRenderer
-
public class ProgressBarRenderer extends WidgetRenderer<Double,VProgressBar>
A Renderer that represents a double value as a graphical progress bar.
Since:
7.4
Author:
Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description ProgressBarRenderer()
-
Method Summary
All Methods Modifier and Type Method 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.
-
Methods inherited from class com.vaadin.client.renderers.WidgetRenderer
getWidget, getWidget, init, render
-
Methods inherited from class com.vaadin.client.renderers.ComplexRenderer
destroy, destroy, getConsumedEvents, onActivate, onBrowserEvent, setContentVisible
-
-
-
-
Method Detail
-
createWidget
public VProgressBar createWidget()
Description copied from class:
WidgetRenderer
Creates a widget to attach to a cell. The widgets will be attached to the cell after the cell element has been attached to DOM.
Specified by:
createWidget
in classWidgetRenderer<Double,VProgressBar>
Returns:
widget to attach to a cell. All returned instances should be new widget instances without a parent.
-
render
public void render(RendererCellReference cell, Double data, VProgressBar progressBar)
Description copied from class:
WidgetRenderer
Renders a cell with a widget. This provides a way to update any information in the widget that is cell specific. Do not detach the Widget here, it will be done automatically by the Grid when the widget is no longer needed.
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.Specified by:
render
in classWidgetRenderer<Double,VProgressBar>
Parameters:
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 cell
-
-