public FormattedCell filterFormat(FormattedCell cell) { String fontStyle = CellModel.fontToHtml(cell.getFont(), new StringBuilder()).toString(); cell.setFormattedValue("<a href=\"" + url + "\" class=\"nounderline\" style=\"" + fontStyle + "\" >" + cell.getFormattedValue() + "</a>"); return cell; }
public FormattedCell filterFormat(FormattedCell cell) { Object cellValue = cell.getObjectValue(); if (cellValue != null) { Class<?> valueType = cellValue.getClass(); if (valueType.isArray()) { String formattedValue; if (Array.getLength(cellValue) == 0) { formattedValue = Utils.displayNameForCollection(JavaOpenClass.getOpenClass(valueType), true); } else { formattedValue = FormattersManager.format(cellValue); } cell.setFormattedValue(formattedValue); } } return cell; } }
public FormattedCell filterFormat(FormattedCell cell) { Object cellValue = cell.getObjectValue(); if (cellValue != null) { Class<?> valueType = cellValue.getClass(); if (valueType.isArray()) { String formattedValue; if (Array.getLength(cellValue) == 0) { formattedValue = Utils.displayNameForCollection(JavaOpenClass.getOpenClass(valueType), true); } else { formattedValue = FormattersManager.format(cellValue); } cell.setFormattedValue(formattedValue); } } return cell; } }
public FormattedCell filterFormat(FormattedCell cell) { Object value = cell.getObjectValue(); if (value instanceof ExplanationNumberValue<?>) { int rootID = Explanator.getUniqueId(requestId, (ExplanationNumberValue<?>) value); String url = "javascript: explain(\'?rootID=" + rootID + "')"; cell.setFormattedValue("<a href=\"" + url + "\">" + cell.getFormattedValue() + "</a>"); } return cell; } }
.append(formattedExpectedValue); cell.setFormattedValue(formattedValue.toString());
public FormattedCell filterFormat(FormattedCell cell) { Object value = cell.getObjectValue(); if (value instanceof ExplanationNumberValue<?>) { int rootID = Explanator.getUniqueId(requestId, (ExplanationNumberValue<?>) value); String url = "javascript: explain(\'?rootID=" + rootID + "')"; cell.setFormattedValue("<a href=\"" + url + "\">" + XlsDataFormatterFactory.getFormattedValue(cell, cell.getMetaInfo()) + "</a>"); } return cell; } }
cell.setObjectValue(v); if (v != null) { cell.setFormattedValue(String.valueOf(v)); }else{ cell.setFormattedValue("null");
cell.setObjectValue(v); if (v != null) { cell.setFormattedValue(String.valueOf(v)); }else{ cell.setFormattedValue("null");