com.vaadin.ui.Table.formatPropertyValue()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(185)

本文整理了Java中com.vaadin.ui.Table.formatPropertyValue()方法的一些代码示例,展示了Table.formatPropertyValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.formatPropertyValue()方法的具体详情如下:
包路径:com.vaadin.ui.Table
类名称:Table
方法名:formatPropertyValue

Table.formatPropertyValue介绍

暂无

代码示例

代码示例来源:origin: org.aperteworkflow/gui-commons

  1. @Override
  2. protected final String formatPropertyValue(Object rowId, Object colId, Property property) {
  3. String value = formatPropertyValue((T)rowId, (String)colId);
  4. return value != null ? value : super.formatPropertyValue(rowId, colId, property);
  5. }

代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin

  1. @SuppressWarnings({ "unchecked", "rawtypes" })
  2. @Override
  3. protected String formatPropertyValue(Object rowId, Object colId,
  4. com.vaadin.data.Property<?> itemProperty) {
  5. if (colId instanceof Property) {
  6. return ((Property) colId).present(itemProperty.getValue());
  7. }
  8. return super.formatPropertyValue(rowId, colId, itemProperty);
  9. }

代码示例来源:origin: apache/ace

  1. @Override
  2. protected String formatPropertyValue(Object rowId, Object colId, Property property) {
  3. DateFormat formatter = SimpleDateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, getApplication().getLocale());
  4. if (COL_TIME.equals(colId)) {
  5. return formatter.format(property.getValue());
  6. }
  7. return super.formatPropertyValue(rowId, colId, property);
  8. }
  9. };

代码示例来源:origin: nz.co.senanque/madura-vaadin

  1. protected String formatPropertyValue(Object rowId, Object colId,
  2. Property<?> property) {
  3. // Format by property type
  4. Formatter formatter = FormatterFactory.getFormatter(property.getType());
  5. if (formatter != null) {
  6. // setColumnAlignment(colId, Table.ALIGN_RIGHT);
  7. return formatter.format(property.getValue());
  8. }
  9. return super.formatPropertyValue(rowId, colId, property);
  10. }

代码示例来源:origin: nz.co.senanque/madura-vaadinsupport

  1. protected String formatPropertyValue(Object rowId, Object colId,
  2. Property property) {
  3. // Format by property type
  4. Formatter formatter = FormatterFactory.getFormatter(property.getType());
  5. if (formatter != null) {
  6. // setColumnAlignment(colId, Table.ALIGN_RIGHT);
  7. return formatter.format(property.getValue());
  8. }
  9. return super.formatPropertyValue(rowId, colId, property);
  10. }

相关文章