Revision e5c6119c
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/EmptySection.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.ui.section.occurrence; |
10 | 10 |
|
11 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
|
11 | 12 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
12 | 13 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
13 | 14 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
... | ... | |
20 | 21 |
*/ |
21 | 22 |
public class EmptySection extends AbstractCdmDetailSection<Object> { |
22 | 23 |
|
23 |
public EmptySection(CdmFormFactory formFactory, ICdmFormElement parentElement, int style) { |
|
24 |
private static final String DEFAULT_MESSAGE = Messages.EmptySection_NO_VIEW_IMPLEMENTED; |
|
25 |
private final String message; |
|
26 |
|
|
27 |
public EmptySection(String message, CdmFormFactory formFactory, ICdmFormElement parentElement, int style) { |
|
24 | 28 |
super(formFactory, null, parentElement, null, style); |
29 |
this.message = message!=null?message:DEFAULT_MESSAGE; |
|
25 | 30 |
} |
26 | 31 |
|
27 | 32 |
/** {@inheritDoc} */ |
28 | 33 |
@Override |
29 | 34 |
public String getHeading() { |
30 |
return "No view implemented for this element";
|
|
35 |
return message!=null?message:DEFAULT_MESSAGE;
|
|
31 | 36 |
} |
32 | 37 |
|
33 | 38 |
@Override |
Also available in: Unified diff
ref #4363 Add message parameter to EmptySection for detail information