}
// Render cell contents
SafeHtmlBuilder cellBuilder = new SafeHtmlBuilder();
Context context = new Context(i, 0, key);
cell.render(context, value, cellBuilder);
SafeStyles innerPadding =
SafeStylesUtils.fromTrustedString("padding-" + paddingDirection + ": " + imageWidth
+ "px;");
SafeHtml innerDiv =
template.innerDiv(innerPadding, innerClasses.toString(), image, itemValueStyle,
cellBuilder.toSafeHtml());
SafeStyles outerPadding =
SafeStylesUtils.fromTrustedString("padding-" + paddingDirection + ": "
+ paddingAmount + "px;");
sb.append(template.outerDiv(outerPadding, outerClasses.toString(), innerDiv,
ariaSelected));
}