1
2
3
4
5
6
7
8
9
10
11 package de.jaret.util.ui.table.model;
12
13 /***
14 * Dummy column for placement of the hierarchy.
15 *
16 * @author Peter Kliem
17 * @version $Id: HierarchyColumn.java 1075 2010-12-02 21:46:54Z kliem $
18 */
19 public class HierarchyColumn extends AbstractColumn {
20
21 private String _headerLabel = "hierarchy";
22 private boolean _displayHeader = false;
23
24
25
26 /***
27 * {@inheritDoc}
28 */
29 public String getId() {
30 return "hierarchycolumnID";
31 }
32
33 /***
34 * {@inheritDoc}
35 */
36 public String getHeaderLabel() {
37 return _headerLabel;
38 }
39
40 public void setHeaderLabel(String headerLabel) {
41 _headerLabel = headerLabel;
42 }
43
44 /***
45 * {@inheritDoc}
46 */
47 @Override
48 public boolean displayHeader() {
49 return _displayHeader;
50 }
51
52 public void setDisplayHeader(boolean displayHeader) {
53 _displayHeader = displayHeader;
54 }
55
56 /***
57 * {@inheritDoc}
58 */
59 public Object getValue(IRow row) {
60 return "hierarchy column";
61 }
62
63 /***
64 * {@inheritDoc}
65 */
66 public void setValue(IRow row, Object value) {
67 }
68
69 /***
70 * {@inheritDoc}
71 */
72 public boolean supportsSorting() {
73 return false;
74 }
75
76 /***
77 * {@inheritDoc}
78 */
79 public Class<?> getContentClass() {
80 return String.class;
81 }
82
83 /***
84 * {@inheritDoc}
85 */
86 public int compare(IRow o1, IRow o2) {
87 return 0;
88 }
89
90 /***
91 * {@inheritDoc}
92 */
93 @Override
94 public boolean isEditable() {
95 return false;
96 }
97 }