com.vaadin.client.renderers
Class ProgressBarRenderer
java.lang.Object
com.vaadin.client.renderers.ComplexRenderer<T>
com.vaadin.client.renderers.WidgetRenderer<java.lang.Double,VProgressBar>
com.vaadin.client.renderers.ProgressBarRenderer
- All Implemented Interfaces:
- Renderer<java.lang.Double>
public class ProgressBarRenderer
- extends WidgetRenderer<java.lang.Double,VProgressBar>
A Renderer that represents a double value as a graphical progress bar.
- Since:
- 7.4
- Author:
- Vaadin Ltd
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProgressBarRenderer
public ProgressBarRenderer()
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 class WidgetRenderer<java.lang.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,
java.lang.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 class WidgetRenderer<java.lang.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
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.