private String createSpecialInterestTooltip(SpecialInterestDetailsVoCollection collSpecialInterestDetails) { if (collSpecialInterestDetails == null || (collSpecialInterestDetails != null && collSpecialInterestDetails.size() == 0)) return null; StringBuffer tooltip = new StringBuffer(); /* * tooltip.append("<table border=1>"); tooltip.append("<tr><td><b>Category    </b></td><td><b>Start Date     </b></td><td><b>End Date     </b></td></tr>"); for (int i=0;i<collSpecialInterestDetails.size();i++) { tooltip.append("<tr>"); SpecialInterestDetailsVo specInterest = collSpecialInterestDetails.get(i); tooltip.append("<td><b>"+specInterest.getSpecialInterestCategory().toString()+ "</b></td><td><b>"+specInterest.getStartDateTime().toString() +"</b></td><td><b>" + specInterest.getCompletedDateTime().toString()+"</b></td></tr>"); } tooltip.append("</table>"); */ // tooltip.append("<table style=\"border :1px solid black; border-collapse:collapse;\">"); tooltip.append("<table style=\"border :1px solid black; border-collapse:collapse;\">"); tooltip.append("<tr><td style=\" border:1px solid black;\"><b>Category    </b></td><td style=\" border:1px solid black;\"><b>Start Date     </b></td><td style=\" border:1px solid black;\"><b>End Date     </b></td></tr>"); for (int i = 0; i < collSpecialInterestDetails.size(); i++) { tooltip.append("<tr>"); SpecialInterestDetailsVo specInterest = collSpecialInterestDetails.get(i); tooltip.append("<td style=\" border:1px solid black;\"><b>" +( specInterest!=null && specInterest.getSpecialInterestCategory()!=null ? specInterest.getSpecialInterestCategory():"") + "</b></td><td style=\" border:1px solid black;\"><b>" +(specInterest!=null && specInterest.getStartDateTime()!=null ? specInterest.getStartDateTime():"" ) + "</b></td><td style=\" border:1px solid black;\"><b>" +(specInterest!=null && specInterest.getCompletedDateTime()!=null ? specInterest.getCompletedDateTime():"") + "</b></td></tr>"); } tooltip.append("</table>"); return tooltip.toString(); }
private void populateScreenFormData(SpecialInterestDetailsVoCollection collSpecialInterestDetails) { clearScreen(); if (collSpecialInterestDetails==null || (collSpecialInterestDetails!=null && collSpecialInterestDetails.size()==0)) return; for (int i = 0; i < collSpecialInterestDetails.size(); i++) { SpecialInterestDetailsVo specialInterest = collSpecialInterestDetails.get(i); addRowToSpecialInterestDyngrd(specialInterest); } populateInstanceControlsFromData(form.getLocalContext().getSelectedSpecialInterest()); }
@Override protected void onBtnCloseClick() throws ims.framework.exceptions.PresentationLogicException { SpecialInterestDetailsVoCollection collSpecialInterest = new SpecialInterestDetailsVoCollection(); for (int i=0;i<form.dyngrdSpecialInterest().getRows().size();i++) { collSpecialInterest.add((SpecialInterestDetailsVo) form.dyngrdSpecialInterest().getRows().get(i).getValue()); } form.getGlobalContext().Emergency.setCollSpecialInterestDetails(collSpecialInterest); engine.close(DialogResult.OK); }