List of usage examples for com.vaadin.client.widget.grid RendererCellReference getElement
@Override
public TableCellElement getElement()
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); }