Project

General

Profile

« Previous | Next » 

Revision f5b66699

Added by Patrick Plitzner over 7 years ago

ref #6333 Add generic support for entity collection sections to allow
adding existing entities

  • this is done by two abstract methods allowAddExisting() and addExisting()

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/StatisticalMeasurementValueSection.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
*/
......
27 27
 */
28 28
public class StatisticalMeasurementValueSection extends
29 29
		AbstractEntityCollectionSection<QuantitativeData, StatisticalMeasurementValue> {
30
	
30

  
31 31
	/**
32 32
	 * <p>Constructor for StatisticalMeasurementValueSection.</p>
33 33
	 *
......
41 41
			int style) {
42 42
		super(formFactory, conversation, parentElement, "Statistical Measurement Value", style);
43 43
	}
44
	
44

  
45 45
	/** {@inheritDoc} */
46 46
	@Override
47 47
	public Collection<StatisticalMeasurementValue> getCollection(
......
78 78
	protected String getTooltipString() {
79 79
		return "Create new statistical value";
80 80
	}
81

  
82
    /**
83
     * {@inheritDoc}
84
     */
85
    @Override
86
    public StatisticalMeasurementValue addExisting() {
87
        return null;
88
    }
89

  
90
    /**
91
     * {@inheritDoc}
92
     */
93
    @Override
94
    public boolean allowAddExisting() {
95
        return false;
96
    }
81 97
}

Also available in: Unified diff