Vaadin 8 ,ButtonRenderer disable and change button caption

grid.addColumn(“Edit”, record → “Edit”,
new ButtonRenderer(
new ClickableRenderer.RendererClickListener() {
@Override
public void click(ClickableRenderer.RendererClickEvent e) {
User user = (User) e.getItem();
getUI().addWindow(new UserInfoPopup(user, usersGrid));
}
})
);
I want add a button to my grid with caption is ‘Edit’.After that when the task Complete
the button is disable and caption change to ‘Disable’.What I should do ?

Currently the ButtonRenderer click event doesn’t expose the Button for you to be able to modify it. Try your luck with the
ComponentRenderer add-on from Directory