01: package org.wingx.table;
02:
03: import org.wings.table.*;
04:
05: public class XTableColumn extends STableColumn {
06: boolean sortable;
07: boolean filterable;
08: protected EditableTableCellRenderer filterRenderer;
09:
10: public XTableColumn(int modelIndex) {
11: super (modelIndex);
12: }
13:
14: public XTableColumn(int modelIndex, String width) {
15: super (modelIndex, width);
16: }
17:
18: public XTableColumn(int modelIndex, String width,
19: STableCellRenderer cellRenderer, STableCellEditor cellEditor) {
20: super (modelIndex, width, cellRenderer, cellEditor);
21: }
22:
23: /**
24: * Expect this to be replaced with STableCellEditor as soon as ajax makes the usability of the
25: * standard cell editor mechanism acceptable.
26: */
27: public EditableTableCellRenderer getFilterRenderer() {
28: return filterRenderer;
29: }
30:
31: public void setFilterRenderer(
32: EditableTableCellRenderer filterRenderer) {
33: this .filterRenderer = filterRenderer;
34: }
35:
36: public boolean isSortable() {
37: return sortable;
38: }
39:
40: public void setSortable(boolean sortable) {
41: this .sortable = sortable;
42: }
43:
44: public boolean isFilterable() {
45: return filterable;
46: }
47:
48: public void setFilterable(boolean filterable) {
49: this.filterable = filterable;
50: }
51: }
|