Revision 6702c7e1
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkflowViewBean.java | ||
---|---|---|
249 | 249 |
namesTypesList.setComponentAlignment(typeStateLabel, Alignment.MIDDLE_LEFT); |
250 | 250 |
|
251 | 251 |
RegistrationItemEditButtonGroup editButtonGroup = new RegistrationItemEditButtonGroup(dto); |
252 |
// editButtonGroup.setStyleName(ValoTheme.BUTTON_TINY); |
|
252 |
if(editButtonGroup.getNameButton() != null){ |
|
253 |
|
|
254 |
editButtonGroup.getNameButton().getButton().addClickListener(e -> { |
|
255 |
Integer nameId = editButtonGroup.getNameButton().getId(); |
|
256 |
getEventBus().publishEvent(new TaxonNameEditorAction( |
|
257 |
AbstractEditorAction.Type.EDIT, |
|
258 |
nameId |
|
259 |
) |
|
260 |
); |
|
261 |
}); |
|
262 |
} |
|
253 | 263 |
namesTypesList.addComponent(editButtonGroup, 1, row); |
254 | 264 |
namesTypesList.addComponent(buttonGroup, 2, row); |
255 | 265 |
namesTypesList.setComponentAlignment(buttonGroup, Alignment.MIDDLE_LEFT); |
Also available in: Unified diff
ref #6169 basic TaxonName popup editor