48 |
*/ |
*/ |
49 |
public interface TableColumnModel |
public interface TableColumnModel |
50 |
{ |
{ |
51 |
/** |
/** |
52 |
* addColumn |
* addColumn |
53 |
* @param column TableColumn |
* @param column TableColumn |
54 |
*/ |
*/ |
55 |
void addColumn(TableColumn column); |
void addColumn(TableColumn column); |
56 |
|
|
57 |
/** |
/** |
58 |
* removeColumn |
* removeColumn |
59 |
* @param column TableColumn |
* @param column TableColumn |
60 |
*/ |
*/ |
61 |
void removeColumn(TableColumn column); |
void removeColumn(TableColumn column); |
62 |
|
|
63 |
/** |
/** |
64 |
* moveColumn |
* moveColumn |
65 |
* @param columnIndex Index of column to move |
* @param columnIndex Index of column to move |
66 |
* @param newIndex New index of column |
* @param newIndex New index of column |
67 |
*/ |
*/ |
68 |
void moveColumn(int columnIndex, int newIndex); |
void moveColumn(int columnIndex, int newIndex); |
69 |
|
|
70 |
/** |
/** |
71 |
* setColumnMargin |
* setColumnMargin |
72 |
* @param margin Margin of column |
* @param margin Margin of column |
73 |
*/ |
*/ |
74 |
void setColumnMargin(int margin); |
void setColumnMargin(int margin); |
75 |
|
|
76 |
/** |
/** |
77 |
* getColumnCount |
* getColumnCount |
78 |
* @return Column count |
* @return Column count |
79 |
*/ |
*/ |
80 |
int getColumnCount(); |
int getColumnCount(); |
81 |
|
|
82 |
/** |
/** |
83 |
* getColumns |
* getColumns |
84 |
* @return Enumeration of columns |
* @return Enumeration of columns |
85 |
*/ |
*/ |
86 |
Enumeration getColumns(); |
Enumeration getColumns(); |
87 |
|
|
88 |
/** |
/** |
89 |
* getColumnIndex |
* getColumnIndex |
90 |
* @param columnIdentifier Column id |
* @param columnIdentifier Column id |
91 |
*/ |
*/ |
92 |
int getColumnIndex(Object columnIdentifier); |
int getColumnIndex(Object columnIdentifier); |
93 |
|
|
94 |
/** |
/** |
95 |
* getColumn |
* getColumn |
96 |
* @param columnIndex Index of column |
* @param columnIndex Index of column |
97 |
*/ |
*/ |
98 |
TableColumn getColumn(int columnIndex); |
TableColumn getColumn(int columnIndex); |
99 |
|
|
100 |
/** |
/** |
101 |
* getColumnMargin |
* getColumnMargin |
102 |
* @return Column margin |
* @return Column margin |
103 |
*/ |
*/ |
104 |
int getColumnMargin(); |
int getColumnMargin(); |
105 |
|
|
106 |
/** |
/** |
107 |
* getColumnIndexAtX |
* getColumnIndexAtX |
108 |
* @return 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 |
* @return Total column width |
* @return Total column width |
115 |
*/ |
*/ |
116 |
int getTotalColumnWidth(); |
int getTotalColumnWidth(); |
117 |
|
|
118 |
/** |
/** |
119 |
* setColumnSelectionAllowed |
* setColumnSelectionAllowed |
120 |
* @param value Set column selection |
* @param value Set column selection |
121 |
*/ |
*/ |
122 |
void setColumnSelectionAllowed(boolean value); |
void setColumnSelectionAllowed(boolean value); |
123 |
|
|
124 |
/** |
/** |
125 |
* getColumnSelectionAllowed |
* getColumnSelectionAllowed |
126 |
* @return 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 |
* @return Selected columns |
* @return Selected columns |
133 |
*/ |
*/ |
134 |
int[] getSelectedColumns(); |
int[] getSelectedColumns(); |
135 |
|
|
136 |
/** |
/** |
137 |
* getSelectedColumnCount |
* getSelectedColumnCount |
138 |
* @return Count of selected columns |
* @return Count of selected columns |
139 |
*/ |
*/ |
140 |
int getSelectedColumnCount(); |
int getSelectedColumnCount(); |
141 |
|
|
142 |
/** |
/** |
143 |
* setSelectionModel |
* setSelectionModel |
144 |
* @param model ListSelectionModel |
* @param model ListSelectionModel |
145 |
*/ |
*/ |
146 |
void setSelectionModel(ListSelectionModel model); |
void setSelectionModel(ListSelectionModel model); |
147 |
|
|
148 |
/** |
/** |
149 |
* getSelectionModel |
* getSelectionModel |
150 |
* @param column TableColumn |
* @param column TableColumn |
151 |
*/ |
*/ |
152 |
ListSelectionModel getSelectionModel(); |
ListSelectionModel getSelectionModel(); |
153 |
|
|
154 |
/** |
/** |
155 |
* addColumnModelListener |
* addColumnModelListener |
156 |
* @param listener TableColumnModelListener |
* @param listener TableColumnModelListener |
157 |
*/ |
*/ |
158 |
void addColumnModelListener(TableColumnModelListener listener); |
void addColumnModelListener(TableColumnModelListener listener); |
159 |
|
|
160 |
/** |
/** |
161 |
* removeColumnModelListener |
* removeColumnModelListener |
162 |
* @param listener TableColumnModelListener |
* @param listener TableColumnModelListener |
163 |
*/ |
*/ |
164 |
void removeColumnModelListener(TableColumnModelListener listener); |
void removeColumnModelListener(TableColumnModelListener listener); |
165 |
} |
} |