本文整理了Java中com.vaadin.ui.Label.setPropertyDataSource()
方法的一些代码示例,展示了Label.setPropertyDataSource()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setPropertyDataSource()
方法的具体详情如下:
包路径:com.vaadin.ui.Label
类名称:Label
方法名:setPropertyDataSource
暂无
代码示例来源:origin: nz.co.senanque/madura-vaadinsupport
public void bind(Label field, LabelProperty property) {
field.setPropertyDataSource(property);
setPermissions(property.getProperty(), field);
}
@PreDestroy
代码示例来源:origin: nz.co.senanque/madura-vaadin
protected void configureLabel(Label label) {
ValidationObject source = getDataSource();
MaduraPropertyWrapper maduraPropertyWrapper = getMaduraPropertyWrapper(source,m_labels.get(label),true);
@SuppressWarnings("rawtypes")
final LabelProperty<?> property = new LabelProperty(maduraPropertyWrapper);
label.setPropertyDataSource(property);
Converter<?,Object> c = label.getConverter();
if (c != null && c instanceof MaduraNumericConverter) {
((MaduraNumericConverter)c).setFractionDigits(maduraPropertyWrapper.getFieldMetadata().getFractionalDigits());
}
m_maduraSessionManager.setPermissions(property.getProperty(), label);
MaduraPropertyWrapper wrapper = property.getProperty();
if (wrapper != null) {
m_maduraSessionManager.getValidationSession().addListener(wrapper.getOwner(),wrapper.getName(), new SetterListener(){
@Override
public void run(ValidationObject object, String name,
Object newValue, ValidationSession session) {
com.vaadin.data.util.ProtectedMethods.fireValueChange(property);
}});
}
}
内容来源于网络,如有侵权,请联系作者删除!