1 package com.explosion.datastream.exql.gui.table.editandrender;
2
3 import java.awt.Color;
4
5 import javax.swing.JTable;
6
7 import com.explosion.datastream.exql.EXQLConstants;
8 import com.explosion.datastream.exql.EXQLModuleManager;
9 import com.explosion.expfmodules.rdbmsconn.dbom.DBEntityColumn;
10
11
12 /***
13 * @author Steve.Cowx
14 */
15 public class NonEditableValueCellRenderer extends DisplayValueCellRenderer {
16
17 /***
18 * @param arg0
19 */
20 public NonEditableValueCellRenderer(DBEntityColumn dbColumn, JTable table) {
21 super(dbColumn, table);
22 this.setFont(table.getFont());
23
24 fore = (Color) EXQLModuleManager.instance().getPreference(
25 EXQLConstants.TABLE_NONEDITABLE_COLORS_FOREGROUND).getValue();
26 back = (Color) EXQLModuleManager.instance().getPreference(
27 EXQLConstants.TABLE_NONEDITABLE_COLORS_BACKGROUND).getValue();
28
29 this.setBackground(back);
30 this.setForeground(fore);
31 }
32
33 }