Revision f5b66699
Added by Patrick Plitzner over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/GeoScopeSection.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
26 | 26 |
* @version 1.0 |
27 | 27 |
*/ |
28 | 28 |
public class GeoScopeSection extends AbstractEntityCollectionSection<TaxonDescription, NamedArea> { |
29 |
|
|
29 |
|
|
30 | 30 |
/** |
31 | 31 |
* <p>Constructor for GeoScopeSection.</p> |
32 | 32 |
* |
... | ... | |
39 | 39 |
ConversationHolder conversation, ICdmFormElement parentElement, int style) { |
40 | 40 |
super(formFactory, conversation, parentElement, "Geo Scope", style); |
41 | 41 |
} |
42 |
|
|
42 |
|
|
43 | 43 |
/** {@inheritDoc} */ |
44 | 44 |
@Override |
45 | 45 |
public Collection<NamedArea> getCollection(TaxonDescription entity) { |
... | ... | |
75 | 75 |
protected String getTooltipString() { |
76 | 76 |
return "Add a new geo scope."; |
77 | 77 |
} |
78 |
|
|
79 |
/** |
|
80 |
* {@inheritDoc} |
|
81 |
*/ |
|
82 |
@Override |
|
83 |
public NamedArea addExisting() { |
|
84 |
return null; |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* {@inheritDoc} |
|
89 |
*/ |
|
90 |
@Override |
|
91 |
public boolean allowAddExisting() { |
|
92 |
return false; |
|
93 |
} |
|
78 | 94 |
} |
Also available in: Unified diff
ref #6333 Add generic support for entity collection sections to allow
adding existing entities