@Override protected Canvas createRecordComponent(final ListGridRecord record, Integer colNum) { if (record != null) { String fieldName = this.getFieldName(colNum); if (fieldName.equals(EditRulesLayout.EDIT_RULES_COPY)) { // Copy button IButton copyButton = new IButton(i18n.copy()); copyButton.setShowDown(false); copyButton.setShowRollOver(false); copyButton.setHeight(17); copyButton.setLayoutAlign(Alignment.CENTER); copyButton.setAlign(Alignment.CENTER); copyButton.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { System.out.println("copy " + record.getAttribute("name")); String userID = getLoggedInUserId(); EventBus.getMainEventBus() .fireEvent(new CopyEvent(userID, record.getAttribute("name"))); } }); return copyButton; } return null; } return null; }