Example usage for com.vaadin.client.widget.grid RendererCellReference getElement

List of usage examples for com.vaadin.client.widget.grid RendererCellReference getElement

Introduction

In this page you can find the example usage for com.vaadin.client.widget.grid RendererCellReference getElement.

Prototype

@Override
public TableCellElement getElement() 

Source Link

Document

Returns the element of the cell.

Usage

From source file:com.haulmont.cuba.web.toolkit.ui.client.renderers.CubaCheckBoxRenderer.java

License:Apache License

@Override
public void render(RendererCellReference cell, Boolean data) {
    cell.getElement().setInnerHTML(getHtmlString(data));
}

From source file:org.eclipse.hawkbit.ui.customrenderers.client.renderers.HtmlButtonRenderer.java

License:Open Source License

@Override
public void render(final RendererCellReference cell, final String text, final Button button) {
    final boolean buttonEnable = isButtonEnable(cell.getElement().getClassName());
    if (text != null) {
        button.setHTML(text);/*from ww w .j  a v  a  2 s  .  c o m*/
    }
    applystyles(button, buttonEnable);
    // this is to allow the button to disappear, if the text is null
    button.setVisible(text != null);
    button.getElement().setId(UIComponentIdProvider.ROLLOUT_ACTION_ID + "." + cell.getColumnIndex());
    button.setEnabled(buttonEnable);
}