01: package org.airtodo.headers;
02:
03: import java.awt.Component;
04:
05: import javax.swing.table.DefaultTableCellRenderer;
06:
07: import org.air.framework.core.ColumnDecorations;
08: import org.air.framework.core.Header;
09: import org.air.framework.gui.table_view.table.Table;
10: import org.airtodo.records.Customers;
11: import org.airtodo.records.Modules;
12: import org.airtodo.records.Projects;
13:
14: public class Module extends Header {
15: public Module() {
16: put(Modules.NAME, new ColumnDecorations(true, 60));
17: put(Modules.DESCRIPTION, new ColumnDecorations(true, 35));
18: put(Modules.COMMENT, new ColumnDecorations(false, 20));
19: put(Projects.NAME, new ColumnDecorations(false, 200));
20: put(Projects.PRIORITY, new ColumnDecorations(false, 200));
21: put(Projects.DATE_START, new ColumnDecorations(false, 200));
22: put(Projects.DATE_END, new ColumnDecorations(false, 200));
23: put(Projects.PERIOD, new ColumnDecorations(false, 200));
24: put(Projects.FREEZED, new ColumnDecorations(false, 200));
25: put(Projects.PROGRESS, new ColumnDecorations(false, 200));
26: put(Projects.REMAIN, new ColumnDecorations(false, 200));
27: put(Projects.STAGE, new ColumnDecorations(false, 200));
28: put(Projects.COMMENT, new ColumnDecorations(false, 200));
29: put(Customers.NAME, new ColumnDecorations(false, 200));
30: put(Customers.PRIORITY, new ColumnDecorations(false, 200));
31: put(Customers.ADDRESS, new ColumnDecorations(false, 200));
32: put(Customers.EMAIL, new ColumnDecorations(false, 200));
33: put(Customers.PHONE, new ColumnDecorations(false, 200));
34: put(Customers.COMMENT, new ColumnDecorations(false, 200));
35: }
36:
37: @Override
38: public Class getRecordClass() {
39: return Modules.class;
40: }
41:
42: public Component getCellRendererComponent(
43: DefaultTableCellRenderer defaultTableCellRenderer,
44: Object columnIdentifier, Object recordId, Table table,
45: Object value, boolean isSelected, int row, int column) {
46: return null;
47: }
48:
49: }
|