com.vaadin.client.renderers.

Class ProgressBarRenderer

    • Constructor Detail

      • ProgressBarRenderer

        public ProgressBarRenderer()
    • 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 class WidgetRenderer<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 class WidgetRenderer<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 cell

        progressBar - the widget embedded in the cell