I’m looking for a simple way to add several buttons to a table row, inside a “toolbar” column. The goal is to allow users to trigger actions on the specific row datas.
For now, i can only add a single button to the table column , using “addGeneratedColumn” on it:
table.addGeneratedColumn(“Toolbar”, new Table.ColumnGenerator() {
public Object generateCell(
Table source, final Object itemId, Object columnId) {
Button ctButton = new Button()
ctButton.addStyleName(“icon-user”)
ctButton.addStyleName(“icon-only”)
ctButton.addClickListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
final Window w = new Window(itemId.name + " Contacts", new FundContactComponent(itemId))
KMUI ui = KMUI.getCurrent()
w.setWidth("800px")
w.setHeight("450px")
w.setModal(true)
w.setClosable(true)
w.setResizable(false)
w.addStyleName("edit-dashboard")
ui.addWindow(w)
}
});
return ctButton
}
})
What would be the right way to include other buttons in the way described above?
Thanks