本文整理汇总了Java中com.vaadin.v7.event.FieldEvents.TextChangeListener类的典型用法代码示例。如果您正苦于以下问题:Java TextChangeListener类的具体用法?Java TextChangeListener怎么用?Java TextChangeListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TextChangeListener类属于com.vaadin.v7.event.FieldEvents包,在下文中一共展示了TextChangeListener类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ImmediateUpdateTextArea
import com.vaadin.v7.event.FieldEvents.TextChangeListener; //导入依赖的package包/类
public ImmediateUpdateTextArea(String caption) {
super(caption);
setImmediate(true);
setNullRepresentation("");
setTextChangeEventMode(TextChangeEventMode.LAZY);
setTextChangeTimeout(200);
addTextChangeListener(new TextChangeListener() {
private static final long serialVersionUID = 1L;
@Override
public void textChange(TextChangeEvent event) {
if (!StringUtils.equals(startValue, event.getText())) {
save(event.getText());
}
}
});
}
示例2: ImmediateUpdateTextField
import com.vaadin.v7.event.FieldEvents.TextChangeListener; //导入依赖的package包/类
public ImmediateUpdateTextField(String caption) {
super(caption);
setImmediate(true);
setNullRepresentation("");
setTextChangeEventMode(TextChangeEventMode.LAZY);
setTextChangeTimeout(200);
addTextChangeListener(new TextChangeListener() {
private static final long serialVersionUID = 1L;
@Override
public void textChange(TextChangeEvent event) {
save(event.getText());
}
});
}
示例3: ImmediateUpdatePasswordField
import com.vaadin.v7.event.FieldEvents.TextChangeListener; //导入依赖的package包/类
public ImmediateUpdatePasswordField(String caption) {
super(caption);
setImmediate(true);
setNullRepresentation("");
setTextChangeEventMode(TextChangeEventMode.LAZY);
setTextChangeTimeout(200);
addTextChangeListener(new TextChangeListener() {
private static final long serialVersionUID = 1L;
@Override
public void textChange(TextChangeEvent event) {
save(event.getText());
}
});
}