本文整理汇总了Java中com.vaadin.v7.data.Property.ValueChangeEvent方法的典型用法代码示例。如果您正苦于以下问题:Java Property.ValueChangeEvent方法的具体用法?Java Property.ValueChangeEvent怎么用?Java Property.ValueChangeEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.v7.data.Property
的用法示例。
在下文中一共展示了Property.ValueChangeEvent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: valueChange
import com.vaadin.v7.data.Property; //导入方法依赖的package包/类
@Override
public void valueChange(Property.ValueChangeEvent event) {
if (event != null) {
Property property = event.getProperty();
if (property instanceof Field) {
Field<?> abstractField = (Field<?>) property;
Object propertyId = getPropertyId(abstractField);
if (propertyId != null) {
boolean wasHiddenValidation = fieldsWithInitiallyDisabledValidation.
remove(propertyId.toString());
if (wasHiddenValidation) {
if (abstractField instanceof AbstractField) {
AbstractField<?> abstractField1 = (AbstractField<?>) abstractField;
abstractField1.setValidationVisible(true);
}
}
} else {
Logger.getLogger(getClass().getName()).warning(
"Property id for field was not found.");
}
}
}
setBeanModified(true);
if (listener != null) {
listener.onFieldGroupChange(this);
}
}
示例2: ensurePiggybackListener
import com.vaadin.v7.data.Property; //导入方法依赖的package包/类
private void ensurePiggybackListener() {
if (piggyBackListener == null) {
piggyBackListener = new ValueChangeListener() {
private static final long serialVersionUID = 8457613845310646169L;
@Override
public void valueChange(Property.ValueChangeEvent event) {
setValue((T) event.getProperty().getValue());
fireEvent(new MValueChangeEventImpl<T>(TypedSelect.this));
}
};
getSelect().addValueChangeListener(piggyBackListener);
}
}
示例3: valueChange
import com.vaadin.v7.data.Property; //导入方法依赖的package包/类
@Override
public void valueChange(Property.ValueChangeEvent event) {
Object value = event.getProperty().getValue();
if (value != null) {
userInputToValue(String.valueOf(value));
} else {
setValue(null);
}
}
示例4: valueChange
import com.vaadin.v7.data.Property; //导入方法依赖的package包/类
@Override
public void valueChange(Property.ValueChangeEvent event) {
if (!skipValueChangeEvent) {
super.valueChange(event);
} else {
skipValueChangeEvent = false;
}
}
示例5: valueChange
import com.vaadin.v7.data.Property; //导入方法依赖的package包/类
@Override
public void valueChange(Property.ValueChangeEvent event) {
Notification.show(event.getProperty().getValue().toString());
}