private String formatLocationServicevoTooltip(LocationServiceMidVo voLocService) { StringBuilder out = new StringBuilder(1000); out.append(makeTextile("*" + ConfigFlag.UI.DISPLAY_NAME_SERVICE.getValue(true) + ": *", "SlateBlue", "tahoma", "12")); out.append(makeTextile((voLocService.getService().getServiceNameIsNotNull() ? voLocService.getService().getServiceName() : ""), (voLocService.getIsActiveIsNotNull() ? (voLocService.getIsActive().booleanValue() ? "black" : "red") : "black"), "tahoma", "12")); out.append(makeNewLine(1)); out.append(makeTextile("*Description: *", "SlateBlue", "tahoma", "12")); out.append(makeTextile((voLocService.getService().getServiceDescriptionIsNotNull() ? voLocService.getService().getServiceDescription() : ""), "black", "tahoma", "12")); out.append(makeNewLine(1)); if (voLocService.getContactIsNotNull()) { out.append(makeNewLine(1)); out.append(makeTextile("*Contact Details: *", "SlateBlue", "tahoma", "12")); out.append(makeTextile((voLocService.getContact().getNameIsNotNull() ? voLocService.getContact().getName().toString() : ""), "black", "tahoma", "12")); if (voLocService.getContact().getContactNumberIsNotNull()) { out.append(makeNewLine(1)); out.append(makeTextile("*Contact Number: *", "SlateBlue", "tahoma", "12")); out.append(makeTextile(voLocService.getContact().getContactNumber(), "black", "tahoma", "12")); } } return new TextileString(out.toString()).toString(); }