Project

General

Profile

« Previous | Next » 

Revision a453d164

Added by Cherian Mathew almost 9 years ago

StatusComposite : seperated init and refresh methods for the txa table, using seperate method to set visible comun ids
LeafNodeTaxonContainer : corrected isSynonym method

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/container/LeafNodeTaxonContainer.java
78 78
        taxonSynonymMap = new HashMap<Object,List<Object>>();
79 79
        initFilters();
80 80
        addContainerFilter(classificationFilter);
81
        enableCacheFlushNotifications();
81 82
        //addContainerFilter(rankFilter);
82 83
    }
83 84

  
......
190 191
     */
191 192
    @Override
192 193
    public boolean areChildrenAllowed(Object itemId) {
193

  
194 194
        Property hasSynProperty = getItem(itemId).getItemProperty(HAS_SYN_ID);
195 195
        if(hasSynProperty == null) {
196 196
            return false;
197 197
        }
198
        return (Long)hasSynProperty.getValue() > 0;
199

  
200

  
198
       return (Long)hasSynProperty.getValue() > 0;
201 199
    }
202 200

  
203 201
    /* (non-Javadoc)
......
225 223
    }
226 224

  
227 225
    public boolean isSynonym(Object itemId) {
228
        return synonymContainer.containsId(itemId);
226
        Property hasSynProperty = getItem(itemId).getItemProperty(HAS_SYN_ID);
227
        return hasSynProperty == null;
229 228
    }
230 229

  
231 230
    public void removeTaxonFromCache(Object itemId) {

Also available in: Unified diff