2 * Copyright (C) 2017 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.vaadin
.component
;
11 import com
.vaadin
.ui
.Button
.ClickListener
;
14 * @author a.kohlbecker
18 public interface ToOneRelatedEntityField
<V
extends Object
> {
21 * Set the enabled state of the edit button
25 public void setEditButtonEnabled(boolean enabled
);
28 * Adds the click listener to the add-entity-button.
31 * the Listener to be added.
33 public void addClickListenerAddEntity(ClickListener listener
);
36 * Set the enabled state of the add button
40 public void setAddButtonEnabled(boolean enabled
);
43 * Adds the click listener to the edit-entity-button.
46 * the Listener to be added.
48 public void addClickListenerEditEntity(ClickListener listener
);
50 public void selectNewItem(V bean
);
52 public Class
<?
extends V
> getType();