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

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

本文整理了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

@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);
}

相关文章

微信公众号

最新文章

更多