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 org
.vaadin
.teemu
.switchui
.Switch
;
14 * @author a.kohlbecker
18 public class SwitchButton
extends Switch
{
20 private static final long serialVersionUID
= 2557108593729214773L;
22 private ValueChangeListener valueSetListener
= null;
24 public SwitchButton() {
32 protected void setInternalValue(Boolean newValue
) {
33 super.setInternalValue(newValue
);
34 if(valueSetListener
!= null){
35 valueSetListener
.valueChange(new ValueChangeEvent(this));
39 public void setValueSetLister(ValueChangeListener valueSetListener
){
40 this.valueSetListener
= valueSetListener
;