minor
authorKatja Luther <k.luther@bgbm.org>
Wed, 5 Oct 2016 12:57:51 +0000 (14:57 +0200)
committerKatja Luther <k.luther@bgbm.org>
Wed, 5 Oct 2016 12:57:51 +0000 (14:57 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java

index 8127fe192d3129911e4da9e39444199370933003..12f8a0af70c009be2d4ce584ca40748179034b1a 100644 (file)
@@ -914,7 +914,7 @@ public class CdmFormFactory extends FormToolkit {
             String labelString,
             T selection,
             int style) {
-        TermComboElement<T> element = new TermComboElement<T>(this, parentElement, termType, labelString, selection, true, style);
+        TermComboElement<T> element = new TermComboElement<T>(this, parentElement, termType, labelString, selection, true, style, false);
         adapt(element);
         parentElement.addElement(element);
         return element;
@@ -927,11 +927,24 @@ public class CdmFormFactory extends FormToolkit {
                        T selection,
                        boolean addEmptyElement,
                        int style) {
-               TermComboElement<T> element = new TermComboElement<T>(this, parentElement, termType, labelString, selection, addEmptyElement, style);
+               TermComboElement<T> element = new TermComboElement<T>(this, parentElement, termType, labelString, selection, addEmptyElement, style, false);
                adapt(element);
                parentElement.addElement(element);
                return element;
        }
+    public <T extends DefinedTermBase> TermComboElement<T> createDefinedTermComboElement(
+                       TermType termType,
+                       ICdmFormElement parentElement,
+                       String labelString,
+                       T selection,
+                       boolean addEmptyElement,
+                       int style, boolean useAbbrevLabel) {
+               TermComboElement<T> element = new TermComboElement<T>(this, parentElement, termType, labelString, selection, addEmptyElement, style, useAbbrevLabel);
+               adapt(element);
+               parentElement.addElement(element);
+               return element;
+       }
+    
 
     public <T extends DefinedTermBase> TermComboElement<T> createDefinedTermComboElement(
             TermVocabulary<?> termVocabulary,