本文整理汇总了Java中com.vaadin.data.HasValue.ValueChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java HasValue.ValueChangeListener方法的具体用法?Java HasValue.ValueChangeListener怎么用?Java HasValue.ValueChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.data.HasValue
的用法示例。
在下文中一共展示了HasValue.ValueChangeListener方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
public Registration addValueChangeListener(HasValue.ValueChangeListener<String> listener) {
return field.addValueChangeListener(listener);
}
示例2: addValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
public Registration addValueChangeListener(HasValue.ValueChangeListener<LocalDateTime> listener) {
return field.addValueChangeListener(listener);
}
示例3: addValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
public Registration addValueChangeListener(HasValue.ValueChangeListener<LocalDate> listener) {
return field.addValueChangeListener(listener);
}
示例4: addValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
public Registration addValueChangeListener(HasValue.ValueChangeListener<T> listener) {
return field.addValueChangeListener(listener);
}
示例5: withValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public default THIS withValueChangeListener(HasValue.ValueChangeListener<VALUE> listener) {
((AbstractSingleSelect<VALUE>) this).addValueChangeListener(listener);
return (THIS) this;
}
示例6: withValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public default THIS withValueChangeListener(HasValue.ValueChangeListener<Set<VALUE>> listener) {
((AbstractMultiSelect<VALUE>) this).addValueChangeListener(listener);
return (THIS) this;
}
示例7: addValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
@Override
public Registration addValueChangeListener(final HasValue.ValueChangeListener<Set<T>> listener) {
return addSelectionListener(event -> listener
.valueChange(new ValueChangeEvent<>(event.getComponent(), this, event.getOldValue(), event.isUserOriginated())));
}
示例8: addTextChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
public default S addTextChangeListener(HasValue.ValueChangeListener<String> l) {
((AbstractTextField) this).addValueChangeListener(l);
((AbstractTextField) this).setValueChangeMode(ValueChangeMode.LAZY);
return (S) this;
}
示例9: addValueChangeListener
import com.vaadin.data.HasValue; //导入方法依赖的package包/类
/**
* Adds a value change listener. The listener is called when the value of
* this field {@code HasValue} is changed either by the user or programmatically.
*
* @param listener the value change listener, not null
* @return a registration for the listener
* @since 0.1
*/
public Registration addValueChangeListener(HasValue.ValueChangeListener<VALUE> listener) {
// Sorry no withValueChangeListener. You need the Registration later on to remove
// the Listener again because there is no removeListener Method
return getField().addValueChangeListener(listener);
}