Project

General

Profile

« Previous | Next » 

Revision f5b66699

Added by Patrick Plitzner about 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/StateDataSection.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
*/
......
40 40
			int style) {
41 41
		super(formFactory, conversation, parentElement, "State Data", style);
42 42
	}
43
	
43

  
44 44
	/** {@inheritDoc} */
45 45
	@Override
46 46
	public Collection<StateData> getCollection(CategoricalData entity) {
......
77 77
		return "Create new state data";
78 78
	}
79 79

  
80
	
80
    /**
81
     * {@inheritDoc}
82
     */
83
    @Override
84
    public StateData addExisting() {
85
        return null;
86
    }
87

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

  
96

  
81 97
}

Also available in: Unified diff