37 |
|
|
38 |
package javax.swing.table; |
package javax.swing.table; |
39 |
|
|
|
// Imports |
|
40 |
import java.util.Enumeration; |
import java.util.Enumeration; |
41 |
import javax.swing.ListSelectionModel; |
import javax.swing.ListSelectionModel; |
42 |
import javax.swing.event.TableColumnModelListener; |
import javax.swing.event.TableColumnModelListener; |
43 |
|
|
44 |
|
|
45 |
/** |
/** |
46 |
* TableColumnModel public interface |
* TableColumnModel public interface |
47 |
* @author Andrew Selkirk |
* @author Andrew Selkirk |
48 |
*/ |
*/ |
49 |
public interface TableColumnModel { |
public interface TableColumnModel |
50 |
|
{ |
51 |
/** |
/** |
52 |
* addColumn |
* addColumn |
53 |
* @param column TableColumn |
* @param column TableColumn |
75 |
|
|
76 |
/** |
/** |
77 |
* getColumnCount |
* getColumnCount |
78 |
* @returns Column count |
* @return Column count |
79 |
*/ |
*/ |
80 |
int getColumnCount(); |
int getColumnCount(); |
81 |
|
|
82 |
/** |
/** |
83 |
* getColumns |
* getColumns |
84 |
* @returns Enumeration of columns |
* @return Enumeration of columns |
85 |
*/ |
*/ |
86 |
Enumeration getColumns(); |
Enumeration getColumns(); |
87 |
|
|
99 |
|
|
100 |
/** |
/** |
101 |
* getColumnMargin |
* getColumnMargin |
102 |
* @returns Column margin |
* @return Column margin |
103 |
*/ |
*/ |
104 |
int getColumnMargin(); |
int getColumnMargin(); |
105 |
|
|
106 |
/** |
/** |
107 |
* getColumnIndexAtX |
* getColumnIndexAtX |
108 |
* @returns Column index as position x |
* @return Column index as position x |
109 |
*/ |
*/ |
110 |
int getColumnIndexAtX(int xPosition); |
int getColumnIndexAtX(int xPosition); |
111 |
|
|
112 |
/** |
/** |
113 |
* getTotalColumnWidth |
* getTotalColumnWidth |
114 |
* @returns Total column width |
* @return Total column width |
115 |
*/ |
*/ |
116 |
int getTotalColumnWidth(); |
int getTotalColumnWidth(); |
117 |
|
|
123 |
|
|
124 |
/** |
/** |
125 |
* getColumnSelectionAllowed |
* getColumnSelectionAllowed |
126 |
* @returns true if column selection allowed, false otherwise |
* @return true if column selection allowed, false otherwise |
127 |
*/ |
*/ |
128 |
boolean getColumnSelectionAllowed(); |
boolean getColumnSelectionAllowed(); |
129 |
|
|
130 |
/** |
/** |
131 |
* getSelectedColumns |
* getSelectedColumns |
132 |
* @returns Selected columns |
* @return Selected columns |
133 |
*/ |
*/ |
134 |
int[] getSelectedColumns(); |
int[] getSelectedColumns(); |
135 |
|
|
136 |
/** |
/** |
137 |
* getSelectedColumnCount |
* getSelectedColumnCount |
138 |
* @returns Count of selected columns |
* @return Count of selected columns |
139 |
*/ |
*/ |
140 |
int getSelectedColumnCount(); |
int getSelectedColumnCount(); |
141 |
|
|
162 |
* @param listener TableColumnModelListener |
* @param listener TableColumnModelListener |
163 |
*/ |
*/ |
164 |
void removeColumnModelListener(TableColumnModelListener listener); |
void removeColumnModelListener(TableColumnModelListener listener); |
165 |
|
} |
|
|
|
|
} // TableColumnModel |
|