@Override
public Component getSheetCellRendererComponent(SheetTable table, TableCell value,
boolean isSelected, boolean hasFocus) {
Style style = value.getStyle();
cellValue = value.getValue();
foreground = (style != null && style.getForeground() != null)
? style.getForeground() : table.getForeground();
background = (style != null)
? style.getBackground() : null;
font = (style != null && style.getFont() != null)
? style.getFont() : table.getFont();
textAlign = (style != null)
? style.getTextAlign() : TextAlign.undefined;
textVAlign = (style != null)
? style.getTextVAlign(): TextVAlign.undefined;
border = (style != null && style.getBorder() != null)
? style.getBorder() : null;
margin = (style != null && style.getMargin() != null)
? style.getMargin() : defaultMargin;
if(hasFocus) {
border = focusedBorder;
}
if (isSelected && !hasFocus) {