/** * */ package com.onaro.sanscreen.client.view.tabular.value; import java.awt.Component; import javax.swing.JTable; import com.onaro.util.jfc.tables.renderers.SimpleTableCellRenderer; public class TableValueTableCellRenderer extends SimpleTableCellRenderer { private static final long serialVersionUID = 1L; public TableValueTableCellRenderer() { // do nothing } @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null && value instanceof TableValue) { TableValue tableValue = (TableValue) value; value = tableValue.getDisplay(); } return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); } }