Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:
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
/**
14
 * @author a.kohlbecker
15
 * @since May 25, 2017
16
 *
17
 */
18
public interface ToOneRelatedEntityField<V extends Object> {
19

    
20
    /**
21
     * Set the enabled state of the edit button
22
     *
23
     * @param enabled
24
     */
25
    public void setEditButtonEnabled(boolean enabled);
26

    
27
    /**
28
     * Adds the click listener to the add-entity-button.
29
     *
30
     * @param listener
31
     *            the Listener to be added.
32
     */
33
    public void addClickListenerAddEntity(ClickListener listener);
34

    
35
    /**
36
     * Set the enabled state of the add button
37
     *
38
     * @param enabled
39
     */
40
    public void setAddButtonEnabled(boolean enabled);
41

    
42
    /**
43
     * Adds the click listener to the edit-entity-button.
44
     *
45
     * @param listener
46
     *            the Listener to be added.
47
     */
48
    public void addClickListenerEditEntity(ClickListener listener);
49

    
50
    public void selectNewItem(V bean);
51

    
52
    public Class<? extends V> getType();
53

    
54
}
(13-13/14)