Revision fe785c1e
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/TypeDesignationWorkingsetEditorAction.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
import com.vaadin.ui.Component; |
12 | 12 |
|
13 |
import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
|
|
13 |
import eu.etaxonomy.cdm.vaadin.util.converter.TypeDesignationSetManager.TypeDesignationWorkingSetType;
|
|
14 | 14 |
import eu.etaxonomy.vaadin.mvp.AbstractView; |
15 | 15 |
|
16 | 16 |
/** |
... | ... | |
20 | 20 |
*/ |
21 | 21 |
public class TypeDesignationWorkingsetEditorAction extends AbstractEditorAction { |
22 | 22 |
|
23 |
private Class<? extends TypeDesignationBase<?>> newEntityType;
|
|
23 |
private TypeDesignationWorkingSetType workingSetType;
|
|
24 | 24 |
|
25 | 25 |
private int registrationId; |
26 | 26 |
|
27 | 27 |
/** |
28 |
* @param edit |
|
29 |
* @param ids |
|
28 |
* |
|
29 |
* @param action |
|
30 |
* @param typeDesignationWorkingsetId |
|
31 |
* @param workingSetType |
|
32 |
* @param registrationId |
|
33 |
* @param source |
|
34 |
* @param sourceView |
|
30 | 35 |
*/ |
31 |
public TypeDesignationWorkingsetEditorAction(Action action, Integer typeDesignationWorkingsetId, int registrationId, Component source, AbstractView sourceView) { |
|
36 |
public TypeDesignationWorkingsetEditorAction(Action action, Integer typeDesignationWorkingsetId, TypeDesignationWorkingSetType workingSetType, int registrationId, |
|
37 |
Component source, AbstractView sourceView) { |
|
32 | 38 |
super(action, typeDesignationWorkingsetId, source, sourceView); |
33 | 39 |
this.registrationId = registrationId; |
40 |
this.workingSetType = workingSetType; |
|
34 | 41 |
} |
35 | 42 |
|
36 | 43 |
/** |
37 |
* Constructor which is mainly suitable for ADD actions. |
|
38 |
* @param |
|
44 |
* |
|
45 |
* @param action |
|
46 |
* @param workingSetType |
|
47 |
* @param registrationId |
|
48 |
* @param source |
|
49 |
* @param sourceView |
|
39 | 50 |
*/ |
40 |
public TypeDesignationWorkingsetEditorAction(Action action, Class<? extends TypeDesignationBase<?>> newEntityType, int registrationId,
|
|
51 |
public TypeDesignationWorkingsetEditorAction(Action action, TypeDesignationWorkingSetType workingSetType, int registrationId,
|
|
41 | 52 |
Component source, AbstractView sourceView) { |
42 | 53 |
super(action, null, source, sourceView); |
43 |
this.newEntityType = newEntityType;
|
|
54 |
this.workingSetType = workingSetType;
|
|
44 | 55 |
this.registrationId = registrationId; |
45 | 56 |
} |
46 | 57 |
|
47 | 58 |
/** |
48 |
* In case of an ADD action the receiver of the event needs to know the specific type of the |
|
49 |
* TypeDesignationBase instance to be created. |
|
50 | 59 |
* |
51 |
* @return the newEntityType
|
|
60 |
* @return |
|
52 | 61 |
*/ |
53 |
public Class<? extends TypeDesignationBase<?>> getNewEntityType() {
|
|
54 |
return newEntityType;
|
|
62 |
public TypeDesignationWorkingSetType getWorkingSetType() {
|
|
63 |
return workingSetType;
|
|
55 | 64 |
} |
56 | 65 |
|
57 | 66 |
/** |
Also available in: Unified diff
fix #6687 per view implementation of the 'session-per-conversation' pattern