本文整理了Java中com.vaadin.ui.Table.formatPropertyValue()
方法的一些代码示例,展示了Table.formatPropertyValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.formatPropertyValue()
方法的具体详情如下:
包路径:com.vaadin.ui.Table
类名称:Table
方法名:formatPropertyValue
暂无
代码示例来源:origin: org.aperteworkflow/gui-commons
@Override
protected final String formatPropertyValue(Object rowId, Object colId, Property property) {
String value = formatPropertyValue((T)rowId, (String)colId);
return value != null ? value : super.formatPropertyValue(rowId, colId, property);
}
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
protected String formatPropertyValue(Object rowId, Object colId,
com.vaadin.data.Property<?> itemProperty) {
if (colId instanceof Property) {
return ((Property) colId).present(itemProperty.getValue());
}
return super.formatPropertyValue(rowId, colId, itemProperty);
}
代码示例来源:origin: apache/ace
@Override
protected String formatPropertyValue(Object rowId, Object colId, Property property) {
DateFormat formatter = SimpleDateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, getApplication().getLocale());
if (COL_TIME.equals(colId)) {
return formatter.format(property.getValue());
}
return super.formatPropertyValue(rowId, colId, property);
}
};
代码示例来源:origin: nz.co.senanque/madura-vaadin
protected String formatPropertyValue(Object rowId, Object colId,
Property<?> property) {
// Format by property type
Formatter formatter = FormatterFactory.getFormatter(property.getType());
if (formatter != null) {
// setColumnAlignment(colId, Table.ALIGN_RIGHT);
return formatter.format(property.getValue());
}
return super.formatPropertyValue(rowId, colId, property);
}
代码示例来源:origin: nz.co.senanque/madura-vaadinsupport
protected String formatPropertyValue(Object rowId, Object colId,
Property property) {
// Format by property type
Formatter formatter = FormatterFactory.getFormatter(property.getType());
if (formatter != null) {
// setColumnAlignment(colId, Table.ALIGN_RIGHT);
return formatter.format(property.getValue());
}
return super.formatPropertyValue(rowId, colId, property);
}
内容来源于网络,如有侵权,请联系作者删除!