com.holonplatform.vaadin7.internal.components.DefaultValueChangeEvent Maven / Gradle / Ivy
/*
* Copyright 2000-2017 Holon TDCN.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.holonplatform.vaadin7.internal.components;
import com.holonplatform.vaadin7.components.ValueHolder;
import com.holonplatform.vaadin7.components.ValueHolder.ValueChangeEvent;
/**
* Default {@link ValueChangeEvent} implementation.
*
* @param Value type
*
* @since 5.0.0
*/
public class DefaultValueChangeEvent implements ValueChangeEvent {
private static final long serialVersionUID = 1L;
private final ValueHolder source;
private final V value;
public DefaultValueChangeEvent(ValueHolder source, V value) {
super();
this.source = source;
this.value = value;
}
/*
* (non-Javadoc)
* @see com.holonplatform.vaadin.components.ValueHolder.ValueChangeEvent#getSource()
*/
@Override
public ValueHolder getSource() {
return source;
}
/*
* (non-Javadoc)
* @see com.holonplatform.vaadin.components.ValueHolder.ValueChangeEvent#getValue()
*/
@Override
public V getValue() {
return value;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy