1 package com.explosion.datastream.exql.gui.table.editandrender;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 import java.awt.Color;
24
25 import javax.swing.JTable;
26
27 import com.explosion.datastream.exql.EXQLConstants;
28 import com.explosion.datastream.exql.EXQLModuleManager;
29 import com.explosion.expfmodules.rdbmsconn.dbom.DBEntityColumn;
30
31
32 /***
33 * @author Steve.Cowx
34 * Used for rendering cells whose values have been updated
35 */
36 public class UpdatedValueCellRenderer extends DisplayValueCellRenderer {
37
38 public UpdatedValueCellRenderer(DBEntityColumn dbColumn, JTable table) {
39 super(dbColumn, table);
40 this.setFont(table.getFont());
41 fore = (Color) EXQLModuleManager.instance().getPreference(
42 EXQLConstants.TABLE_EDIT_ADD_COLORS_FOREGROUND).getValue();
43 back = (Color) EXQLModuleManager.instance().getPreference(
44 EXQLConstants.TABLE_EDIT_ADD_COLORS_BACKGROUND).getValue();
45
46 this.setBackground(back);
47 this.setForeground(fore);
48 }
49 }