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
;
13 import eu
.etaxonomy
.cdm
.vaadin
.event
.NestedButtonStateUpdater
;
16 * @author a.kohlbecker
20 public interface ToOneRelatedEntityField
<V
extends Object
> {
22 public void setNestedButtonStateUpdater(NestedButtonStateUpdater
<V
> buttonUpdater
);
25 * Set the enabled state of the edit button
29 public void setEditButtonEnabled(boolean enabled
);
32 * Adds the click listener to the add-entity-button.
35 * the Listener to be added.
37 public void addClickListenerAddEntity(ClickListener listener
);
40 * Set the enabled state of the add button
44 public void setAddButtonEnabled(boolean enabled
);
47 * Adds the click listener to the edit-entity-button.
50 * the Listener to be added.
52 public void addClickListenerEditEntity(ClickListener listener
);
54 public void selectNewItem(V bean
);
56 public Class
<?
extends V
> getType();