Project

General

Profile

« Previous | Next » 

Revision c35d72cd

Added by Katja Luther about 6 years ago

add symbol to DefinedTerm details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/DefinedTermDetailElement.java
26 26

  
27 27
    protected TextWithLabelElement textIdInVocabulary;
28 28

  
29
    protected TextWithLabelElement textSymbol;
30

  
31

  
29 32
	/**
30 33
	 * @param formFactory
31 34
	 * @param formElement
......
39 42
    protected void createControls(ICdmFormElement formElement, T entity, int style) {
40 43
	    super.createControls(formElement, entity, style);
41 44
	    textIdInVocabulary = formFactory.createTextWithLabelElement(formElement, "ID in vocabulary", entity.getIdInVocabulary(), style);
45
	    textSymbol = formFactory.createTextWithLabelElement(formElement, "Symbol", entity.getSymbol(), style);
42 46
	};
43 47

  
44 48
	/* (non-Javadoc)
......
53 57
			}else{
54 58
				getEntity().setIdInVocabulary(textIdInVocabulary.getText());
55 59
			}
56
		    
60

  
57 61
		}
62
		if(eventSource==textSymbol){
63
            if (StringUtils.isBlank(textSymbol.getText())){
64
                getEntity().setSymbol(null);
65
            }else{
66
                getEntity().setSymbol(textIdInVocabulary.getText());
67
            }
68

  
69
        }
58 70
	}
59 71

  
60 72
	/* (non-Javadoc)

Also available in: Unified diff