Example #1
0
 public String getFeatures(String locationId) {
   Location location = LocationDAO.getInstance().get(Long.valueOf(locationId));
   if (location == null) return "";
   String features = "";
   for (GlobalRoomFeature feature : location.getGlobalRoomFeatures()) {
     if (!features.isEmpty()) features += ", ";
     features +=
         "<span title='"
             + feature.getLabel()
             + "' style='white-space:nowrap;'>"
             + feature.getLabelWithType()
             + "</span>";
   }
   for (DepartmentRoomFeature feature : location.getDepartmentRoomFeatures()) {
     if (!features.isEmpty()) features += ", ";
     features +=
         "<span title='"
             + feature.getLabel()
             + "' style='white-space:nowrap;'>"
             + feature.getLabelWithType()
             + "</span>";
   }
   return features;
 }