1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.vaadin.component;
|
10
|
|
11
|
import com.vaadin.ui.Button.ClickListener;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
|
14
|
import eu.etaxonomy.cdm.vaadin.event.NestedButtonStateUpdater;
|
15
|
|
16
|
/**
|
17
|
* @author a.kohlbecker
|
18
|
* @since May 25, 2017
|
19
|
*
|
20
|
*/
|
21
|
public interface WeaklyRelatedEntityField<V extends IdentifiableEntity> {
|
22
|
|
23
|
public void setNestedButtonStateUpdater(NestedButtonStateUpdater<V> buttonUpdater);
|
24
|
|
25
|
/**
|
26
|
* Set the enabled state of the edit button
|
27
|
*
|
28
|
* @param enabled
|
29
|
*/
|
30
|
public void setEditButtonEnabled(boolean enabled);
|
31
|
|
32
|
/**
|
33
|
* Adds the click listener to the add-entity-button.
|
34
|
*
|
35
|
* @param listener
|
36
|
* the Listener to be added.
|
37
|
*/
|
38
|
public void addClickListenerAddEntity(ClickListener listener);
|
39
|
|
40
|
/**
|
41
|
* Set the enabled state of the add button
|
42
|
*
|
43
|
* @param enabled
|
44
|
*/
|
45
|
public void setAddButtonEnabled(boolean enabled);
|
46
|
|
47
|
/**
|
48
|
* Adds the click listener to the edit-entity-button.
|
49
|
*
|
50
|
* @param listener
|
51
|
* the Listener to be added.
|
52
|
*/
|
53
|
public void addClickListenerEditEntity(ClickListener listener);
|
54
|
|
55
|
public void selectNewItem(String stringRepresentation);
|
56
|
|
57
|
public Class<String> getType();
|
58
|
|
59
|
}
|