Revision 5ca9eaf3
Added by Fabian Reimeier over 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/DetailWindow.java | ||
---|---|---|
10 | 10 |
import com.vaadin.ui.Tree; |
11 | 11 |
import com.vaadin.ui.Window; |
12 | 12 |
|
13 |
import eu.etaxonomy.cdm.i10n.Messages; |
|
13 | 14 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
14 | 15 |
import eu.etaxonomy.cdm.model.common.Language; |
15 | 16 |
import eu.etaxonomy.cdm.model.description.CategoricalData; |
... | ... | |
38 | 39 |
public Window createWindow(){ |
39 | 40 |
Window window = new Window(); |
40 | 41 |
window.setHeightUndefined(); |
41 |
window.setHeight("600px"); |
|
42 |
window.setWidth("400px"); |
|
42 |
window.setHeight("600px"); //$NON-NLS-1$
|
|
43 |
window.setWidth("400px"); //$NON-NLS-1$
|
|
43 | 44 |
window.setCaption(taxon.getName().getTitleCache()); |
44 | 45 |
window.setCloseShortcut(KeyCode.W, ModifierKey.CTRL); |
45 | 46 |
if(listDescriptions.isEmpty()){ |
46 |
window.setContent(new Label("No descriptive data found"));
|
|
47 |
window.setContent(new Label(Messages.DetailWindow_NO_DESCRIPTIVE_DATA_FOUND));
|
|
47 | 48 |
} |
48 | 49 |
else{ |
49 | 50 |
window.setContent(constructDescriptionTree(taxon)); |
... | ... | |
54 | 55 |
private Tree constructDescriptionTree(Taxon taxon){ |
55 | 56 |
Tree tree = new Tree(); |
56 | 57 |
tree.setSizeUndefined(); |
57 |
String parent = "Descriptive Data"; |
|
58 |
String parent = "Descriptive Data"; //$NON-NLS-1$
|
|
58 | 59 |
tree.setValue(parent); |
59 | 60 |
initDescriptionTree(tree, listDescriptions, parent); |
60 | 61 |
return tree; |
Also available in: Unified diff
ref #7097 added internationalization for distribution status app