Revision de625740
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/registration/RegistrationItemEditButtonGroup.java | ||
---|---|---|
43 | 43 |
setWidth(100, Unit.PERCENTAGE); |
44 | 44 |
|
45 | 45 |
if(regDto.getName() != null){ |
46 |
nameButton = new IdButton(regDto.getName().getId(), new Button(regDto.getName().getLabel())); |
|
47 |
addComponent(nameButton.getButton()); |
|
46 |
nameButton = new IdButton(regDto.getName().getId(), new Button("Name:")); |
|
47 |
Label nameLabel = new Label(regDto.getName().getLabel()); |
|
48 |
nameLabel.setWidthUndefined(); |
|
49 |
addComponents(nameButton.getButton(), nameLabel); |
|
48 | 50 |
} else { |
49 | 51 |
// no name in the registration! we only show the typified name as label |
50 | 52 |
addComponent(new Label(regDto.getTypifiedName().getLabel())); |
Also available in: Unified diff
ref #6169 RegistrationItem separate name button + action for type buttons