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 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; } }
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; } }
public FormattedCell filterFormat(FormattedCell cell) { Point cellCoordinates = new Point(cell.getAbsoluteColumn(), cell.getAbsoluteRow()); if (isOk) { formattedValue.append("<i class=\"case-success\"></i> ").append(XlsDataFormatterFactory.getFormattedValue(cell, cell.getMetaInfo())); } else { Object expectedValue = result.getExpectedValue(); .append(cell.getFormattedValue()) .append(' ') .append("<span class=\"case-expected\">Expected: </span>") .append(formattedExpectedValue); cell.setFormattedValue(formattedValue.toString());
public FormattedCell filterFormat(FormattedCell cell) { ILogicalTable table = res.getLogicalTable(); int relativeColumn = cell.getColumn() - startX; int relativeRow = cell.getRow() - startY; if (relativeColumn < 0 || relativeColumn >= table.getWidth() || relativeRow < 0 || relativeRow >= table.getHeight()) { int col = cell.getColumn() - startX - columnOffset; int row = cell.getRow() - startY - rowOffset; if (row >= 0 && col >= 0 && res.getWidth() > col && res.getHeight() > row) { Object v = res.getValue(row, col); cell.setObjectValue(v); if (v != null) { cell.setFormattedValue(String.valueOf(v)); }else{ cell.setFormattedValue("null");
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; } }
return ((FormattedCell) cell).getFormattedValue();
public FormattedCell filterFormat(FormattedCell formattedCell) { if ((scope & FONT) != 0) { CellFont cellFont = (CellFont) formattedCell.getFont(); short[] fc = cellFont.getFontColor(); if (fc == null) { CellStyle cellStyle = (CellStyle) formattedCell.getStyle(); if ((scope & BACKGROUND) != 0) { short[] bcg = cellStyle.getFillBackgroundColor();
@Override public FormattedCell filterFormat(FormattedCell cell) { CellFont font = (CellFont) cell.getFont(); if (fontColor != null) { font.setFontColor(fontColor); } if (size != null) { font.setSize(size); } if (incrementSize != null) { font.setSize(font.getSize() + incrementSize); } if (name != null) { font.setName(name); } if (italic != null) { font.setItalic(italic); } if (bold != null) { font.setBold(bold); } if (underlined != null) { font.setUnderlined(underlined); } if (strikeout != null) { font.setStrikeout(strikeout); } return cell; }
private synchronized FormattedCell getFormattedCell(int col, int row) { ICell cell = delegate.getCell(col, row); CellMetaInfo metaInfo = metaInfoReader.getMetaInfo(row, col); FormattedCell cellToFormat = new FormattedCell(cell, metaInfo); formatCell(cellToFormat, col, row); return cellToFormat; }
public FormattedCell filterFormat(FormattedCell cell) { ILogicalTable table = res.getLogicalTable(); int relativeColumn = cell.getColumn() - startX; int relativeRow = cell.getRow() - startY; if (relativeColumn < 0 || relativeColumn >= table.getWidth() || relativeRow < 0 || relativeRow >= table.getHeight()) { int col = cell.getColumn() - startX - columnOffset; int row = cell.getRow() - startY - rowOffset; if (row >= 0 && col >= 0 && res.getWidth() > col && res.getHeight() > row) { Object v = res.getValue(row, col); cell.setObjectValue(v); if (v != null) { cell.setFormattedValue(String.valueOf(v)); }else{ cell.setFormattedValue("null");
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; } }