List of usage examples for com.vaadin.shared.util SharedUtil propertyIdToHumanFriendly
public static String propertyIdToHumanFriendly(Object propertyId)
From source file:org.tylproject.vaadin.addon.fieldbinder.FieldBinderFieldFactory.java
License:Apache License
public String createCaptionByPropertyId(Object propertyId) { if (hasResourceBundle()) { String propertyIdString = propertyId.toString(); if (resourceBundle.containsKey(propertyIdString)) { return resourceBundle.getString(propertyIdString); }/* w ww .j av a2 s .c o m*/ } return SharedUtil.propertyIdToHumanFriendly(propertyId); }
From source file:org.tylproject.vaadin.addon.fields.collectiontables.CollectionTabularView.java
License:Apache License
/** * Create caption from propertyId// w w w. j av a 2 s.co m * * Caveat: internally uses the FieldBinder from the Table; * but it requires the adaptor to be a TableAdaptor! * * TODO: needs work for Grid * */ protected String createCaptionByPropertyId(Object propertyId) { if (getAdaptor() instanceof TableAdaptor) { return getAdaptor().getFieldBinder().getFieldFactory().createCaptionByPropertyId(propertyId); } return SharedUtil.propertyIdToHumanFriendly(propertyId); }