private String generateXoStatusTooltip(OrdInvXOStatusHistoryLiteVoCollection voCollOrdInvXOStatusHistory) { if(voCollOrdInvXOStatusHistory == null) return ""; String tooltip = ""; voCollOrdInvXOStatusHistory.sort(SortOrder.DESCENDING); StringBuffer sb = new StringBuffer(); tooltip += "<br><b>Change Order(XO)</b>"; for(OrdInvXOStatusHistoryLiteVo voStatus : voCollOrdInvXOStatusHistory) { sb.append("<br><b>Date changed: </b>" + voStatus.getChangeDateTime()); sb.append("<br><b>Status reason: </b>" + (voStatus.getStatusReasonIsNotNull() ? voStatus.getStatusReason() : "")); tooltip += sb.toString(); } return tooltip; }