01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.table;
14:
15: import java.util.Collection;
16:
17: import org.wings.event.STableColumnModelListener;
18:
19: /**
20: * @see javax.swing.table.TableColumnModel
21: */
22: public interface STableColumnModel {
23: void addColumn(STableColumn aColumn);
24:
25: void removeColumn(STableColumn column);
26:
27: void moveColumn(int columnIndex, int newIndex);
28:
29: void setColumnMargin(int newMargin);
30:
31: int getColumnCount();
32:
33: Collection getColumns();
34:
35: int getColumnIndex(Object columnIdentifier);
36:
37: STableColumn getColumn(int columnIndex);
38:
39: int getColumnMargin();
40:
41: /**
42: * @return The total width of this table including the unit
43: */
44: String getTotalColumnWidth();
45:
46: /**
47: * Adds a listener for table column model events.
48: *
49: * @param x a <code>STableColumnModelListener</code> object
50: */
51: void addColumnModelListener(STableColumnModelListener x);
52:
53: /**
54: * Removes a listener for table column model events.
55: *
56: * @param x a <code>STableColumnModelListener</code> object
57: */
58: void removeColumnModelListener(STableColumnModelListener x);
59: }
|