Revision c09732ba
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/vaadin/component/ToOneRelatedEntityListSelect.java | ||
---|---|---|
11 | 11 |
import com.vaadin.data.Container; |
12 | 12 |
import com.vaadin.data.Property; |
13 | 13 |
import com.vaadin.data.fieldgroup.FieldGroup; |
14 |
import com.vaadin.server.FontAwesome; |
|
15 | 14 |
import com.vaadin.ui.Button; |
16 | 15 |
import com.vaadin.ui.Button.ClickListener; |
17 | 16 |
import com.vaadin.ui.Component; |
... | ... | |
19 | 18 |
import com.vaadin.ui.ListSelect; |
20 | 19 |
import com.vaadin.ui.themes.ValoTheme; |
21 | 20 |
|
21 |
import eu.etaxonomy.cdm.vaadin.component.ButtonFactory; |
|
22 |
|
|
22 | 23 |
/** |
23 | 24 |
* @author a.kohlbecker |
24 | 25 |
* @since May 24, 2017 |
... | ... | |
37 | 38 |
private ListSelect select; |
38 | 39 |
|
39 | 40 |
|
40 |
private Button addButton = new Button(FontAwesome.PLUS);
|
|
41 |
private Button editButton = new Button(FontAwesome.EDIT);
|
|
41 |
private Button addButton = ButtonFactory.ADD_ITEM.createButton();
|
|
42 |
private Button editButton = ButtonFactory.EDIT_ITEM.createButton();
|
|
42 | 43 |
|
43 | 44 |
public ToOneRelatedEntityListSelect(String caption, Class<V> type, Container dataSource){ |
44 | 45 |
this.type = type; |
Also available in: Unified diff
ref #7361 creating new icon 'create-new' & introducing ButtonFactory for harmonization of button creation