1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_JTable__
|
5 |
|
|
#define __javax_swing_JTable__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <javax/swing/JComponent.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Color;
|
19 |
|
|
class Component;
|
20 |
|
|
class Dimension;
|
21 |
|
|
class Point;
|
22 |
|
|
class Rectangle;
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
namespace javax
|
26 |
|
|
{
|
27 |
|
|
namespace accessibility
|
28 |
|
|
{
|
29 |
|
|
class AccessibleContext;
|
30 |
|
|
}
|
31 |
|
|
namespace swing
|
32 |
|
|
{
|
33 |
|
|
class JScrollPane;
|
34 |
|
|
class JTable;
|
35 |
|
|
class JTable$TableColumnPropertyChangeHandler;
|
36 |
|
|
class ListSelectionModel;
|
37 |
|
|
class SizeSequence;
|
38 |
|
|
namespace event
|
39 |
|
|
{
|
40 |
|
|
class ChangeEvent;
|
41 |
|
|
class ListSelectionEvent;
|
42 |
|
|
class TableColumnModelEvent;
|
43 |
|
|
class TableModelEvent;
|
44 |
|
|
}
|
45 |
|
|
namespace plaf
|
46 |
|
|
{
|
47 |
|
|
class TableUI;
|
48 |
|
|
}
|
49 |
|
|
namespace table
|
50 |
|
|
{
|
51 |
|
|
class JTableHeader;
|
52 |
|
|
class TableCellEditor;
|
53 |
|
|
class TableCellRenderer;
|
54 |
|
|
class TableColumn;
|
55 |
|
|
class TableColumnModel;
|
56 |
|
|
class TableModel;
|
57 |
|
|
}
|
58 |
|
|
}
|
59 |
|
|
}
|
60 |
|
|
}
|
61 |
|
|
|
62 |
|
|
class javax::swing::JTable : public ::javax::swing::JComponent
|
63 |
|
|
{
|
64 |
|
|
|
65 |
|
|
public:
|
66 |
|
|
JTable();
|
67 |
|
|
JTable(jint, jint);
|
68 |
|
|
JTable(JArray< JArray< ::java::lang::Object * > * > *, JArray< ::java::lang::Object * > *);
|
69 |
|
|
JTable(::javax::swing::table::TableModel *);
|
70 |
|
|
JTable(::javax::swing::table::TableModel *, ::javax::swing::table::TableColumnModel *);
|
71 |
|
|
JTable(::javax::swing::table::TableModel *, ::javax::swing::table::TableColumnModel *, ::javax::swing::ListSelectionModel *);
|
72 |
|
|
JTable(::java::util::Vector *, ::java::util::Vector *);
|
73 |
|
|
public: // actually protected
|
74 |
|
|
virtual void initializeLocalVars();
|
75 |
|
|
public:
|
76 |
|
|
virtual void addColumn(::javax::swing::table::TableColumn *);
|
77 |
|
|
public: // actually protected
|
78 |
|
|
virtual void createDefaultEditors();
|
79 |
|
|
virtual void createDefaultRenderers();
|
80 |
|
|
public:
|
81 |
|
|
static ::javax::swing::JScrollPane * createScrollPaneForTable(::javax::swing::JTable *);
|
82 |
|
|
public: // actually protected
|
83 |
|
|
virtual ::javax::swing::table::TableColumnModel * createDefaultColumnModel();
|
84 |
|
|
virtual ::javax::swing::table::TableModel * createDefaultDataModel();
|
85 |
|
|
virtual ::javax::swing::ListSelectionModel * createDefaultSelectionModel();
|
86 |
|
|
virtual ::javax::swing::table::JTableHeader * createDefaultTableHeader();
|
87 |
|
|
public:
|
88 |
|
|
virtual void columnAdded(::javax::swing::event::TableColumnModelEvent *);
|
89 |
|
|
virtual void columnMarginChanged(::javax::swing::event::ChangeEvent *);
|
90 |
|
|
virtual void columnMoved(::javax::swing::event::TableColumnModelEvent *);
|
91 |
|
|
virtual void columnRemoved(::javax::swing::event::TableColumnModelEvent *);
|
92 |
|
|
virtual void columnSelectionChanged(::javax::swing::event::ListSelectionEvent *);
|
93 |
|
|
virtual void editingCanceled(::javax::swing::event::ChangeEvent *);
|
94 |
|
|
virtual void editingStopped(::javax::swing::event::ChangeEvent *);
|
95 |
|
|
virtual void tableChanged(::javax::swing::event::TableModelEvent *);
|
96 |
|
|
private:
|
97 |
|
|
void handleCompleteChange(::javax::swing::event::TableModelEvent *);
|
98 |
|
|
void handleInsert(::javax::swing::event::TableModelEvent *);
|
99 |
|
|
void handleDelete(::javax::swing::event::TableModelEvent *);
|
100 |
|
|
void handleUpdate(::javax::swing::event::TableModelEvent *);
|
101 |
|
|
void checkSelection();
|
102 |
|
|
public:
|
103 |
|
|
virtual void valueChanged(::javax::swing::event::ListSelectionEvent *);
|
104 |
|
|
virtual jint columnAtPoint(::java::awt::Point *);
|
105 |
|
|
virtual jint rowAtPoint(::java::awt::Point *);
|
106 |
|
|
virtual ::java::awt::Rectangle * getCellRect(jint, jint, jboolean);
|
107 |
|
|
virtual void clearSelection();
|
108 |
|
|
virtual jint getSelectedRow();
|
109 |
|
|
virtual ::javax::swing::ListSelectionModel * getSelectionModel();
|
110 |
|
|
virtual jint getScrollableBlockIncrement(::java::awt::Rectangle *, jint, jint);
|
111 |
|
|
virtual jboolean getScrollableTracksViewportHeight();
|
112 |
|
|
virtual jboolean getScrollableTracksViewportWidth();
|
113 |
|
|
virtual jint getScrollableUnitIncrement(::java::awt::Rectangle *, jint, jint);
|
114 |
|
|
virtual ::javax::swing::table::TableCellEditor * getCellEditor(jint, jint);
|
115 |
|
|
virtual ::javax::swing::table::TableCellEditor * getDefaultEditor(::java::lang::Class *);
|
116 |
|
|
virtual ::javax::swing::table::TableCellRenderer * getCellRenderer(jint, jint);
|
117 |
|
|
virtual void setDefaultRenderer(::java::lang::Class *, ::javax::swing::table::TableCellRenderer *);
|
118 |
|
|
virtual ::javax::swing::table::TableCellRenderer * getDefaultRenderer(::java::lang::Class *);
|
119 |
|
|
virtual jint convertColumnIndexToModel(jint);
|
120 |
|
|
virtual jint convertColumnIndexToView(jint);
|
121 |
|
|
virtual ::java::awt::Component * prepareRenderer(::javax::swing::table::TableCellRenderer *, jint, jint);
|
122 |
|
|
virtual jboolean getAutoCreateColumnsFromModel();
|
123 |
|
|
virtual jint getAutoResizeMode();
|
124 |
|
|
virtual jint getRowHeight();
|
125 |
|
|
virtual jint getRowHeight(jint);
|
126 |
|
|
virtual jint getRowMargin();
|
127 |
|
|
virtual jboolean getRowSelectionAllowed();
|
128 |
|
|
virtual jboolean getCellSelectionEnabled();
|
129 |
|
|
virtual ::javax::swing::table::TableModel * getModel();
|
130 |
|
|
virtual jint getColumnCount();
|
131 |
|
|
virtual jint getRowCount();
|
132 |
|
|
virtual ::javax::swing::table::TableColumnModel * getColumnModel();
|
133 |
|
|
virtual jint getSelectedColumn();
|
134 |
|
|
private:
|
135 |
|
|
static jint countSelections(::javax::swing::ListSelectionModel *);
|
136 |
|
|
static JArray< jint > * getSelections(::javax::swing::ListSelectionModel *);
|
137 |
|
|
public:
|
138 |
|
|
virtual jint getSelectedColumnCount();
|
139 |
|
|
virtual JArray< jint > * getSelectedColumns();
|
140 |
|
|
virtual jboolean getColumnSelectionAllowed();
|
141 |
|
|
virtual jint getSelectedRowCount();
|
142 |
|
|
virtual JArray< jint > * getSelectedRows();
|
143 |
|
|
virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
|
144 |
|
|
virtual ::javax::swing::table::TableCellEditor * getCellEditor();
|
145 |
|
|
virtual jboolean getDragEnabled();
|
146 |
|
|
virtual ::java::awt::Color * getGridColor();
|
147 |
|
|
virtual ::java::awt::Dimension * getIntercellSpacing();
|
148 |
|
|
virtual ::java::awt::Dimension * getPreferredScrollableViewportSize();
|
149 |
|
|
virtual ::java::awt::Color * getSelectionBackground();
|
150 |
|
|
virtual ::java::awt::Color * getSelectionForeground();
|
151 |
|
|
virtual jboolean getShowHorizontalLines();
|
152 |
|
|
virtual jboolean getShowVerticalLines();
|
153 |
|
|
virtual ::javax::swing::table::JTableHeader * getTableHeader();
|
154 |
|
|
virtual void removeColumn(::javax::swing::table::TableColumn *);
|
155 |
|
|
virtual void moveColumn(jint, jint);
|
156 |
|
|
virtual void setAutoCreateColumnsFromModel(jboolean);
|
157 |
|
|
virtual void setAutoResizeMode(jint);
|
158 |
|
|
virtual void setRowHeight(jint);
|
159 |
|
|
virtual void setRowHeight(jint, jint);
|
160 |
|
|
virtual void setRowMargin(jint);
|
161 |
|
|
virtual void setRowSelectionAllowed(jboolean);
|
162 |
|
|
virtual void setCellSelectionEnabled(jboolean);
|
163 |
|
|
virtual void setModel(::javax::swing::table::TableModel *);
|
164 |
|
|
virtual void setColumnModel(::javax::swing::table::TableColumnModel *);
|
165 |
|
|
virtual void setColumnSelectionAllowed(jboolean);
|
166 |
|
|
virtual void setSelectionModel(::javax::swing::ListSelectionModel *);
|
167 |
|
|
virtual void setSelectionMode(jint);
|
168 |
|
|
virtual void setCellEditor(::javax::swing::table::TableCellEditor *);
|
169 |
|
|
virtual void setDragEnabled(jboolean);
|
170 |
|
|
virtual void setGridColor(::java::awt::Color *);
|
171 |
|
|
virtual void setIntercellSpacing(::java::awt::Dimension *);
|
172 |
|
|
virtual void setPreferredScrollableViewportSize(::java::awt::Dimension *);
|
173 |
|
|
virtual void setSelectionBackground(::java::awt::Color *);
|
174 |
|
|
virtual void setSelectionForeground(::java::awt::Color *);
|
175 |
|
|
virtual void setShowGrid(jboolean);
|
176 |
|
|
virtual void setShowHorizontalLines(jboolean);
|
177 |
|
|
virtual void setShowVerticalLines(jboolean);
|
178 |
|
|
virtual void setTableHeader(::javax::swing::table::JTableHeader *);
|
179 |
|
|
public: // actually protected
|
180 |
|
|
virtual void configureEnclosingScrollPane();
|
181 |
|
|
virtual void unconfigureEnclosingScrollPane();
|
182 |
|
|
public:
|
183 |
|
|
virtual void addNotify();
|
184 |
|
|
virtual void removeNotify();
|
185 |
|
|
private:
|
186 |
|
|
void distributeSpill(JArray< ::javax::swing::table::TableColumn * > *, jint);
|
187 |
|
|
void distributeSpillResizing(JArray< ::javax::swing::table::TableColumn * > *, jint, ::javax::swing::table::TableColumn *);
|
188 |
|
|
public:
|
189 |
|
|
virtual void doLayout();
|
190 |
|
|
public: // actually package-private
|
191 |
|
|
virtual jint getLeftResizingBoundary();
|
192 |
|
|
public:
|
193 |
|
|
virtual void sizeColumnsToFit(jboolean);
|
194 |
|
|
virtual void sizeColumnsToFit(jint);
|
195 |
|
|
virtual ::java::lang::String * getUIClassID();
|
196 |
|
|
virtual ::javax::swing::plaf::TableUI * getUI();
|
197 |
|
|
virtual void setUI(::javax::swing::plaf::TableUI *);
|
198 |
|
|
virtual void updateUI();
|
199 |
|
|
virtual ::java::lang::Class * getColumnClass(jint);
|
200 |
|
|
virtual ::java::lang::String * getColumnName(jint);
|
201 |
|
|
virtual jint getEditingColumn();
|
202 |
|
|
virtual void setEditingColumn(jint);
|
203 |
|
|
virtual jint getEditingRow();
|
204 |
|
|
virtual void setEditingRow(jint);
|
205 |
|
|
virtual ::java::awt::Component * getEditorComponent();
|
206 |
|
|
virtual jboolean isEditing();
|
207 |
|
|
virtual void setDefaultEditor(::java::lang::Class *, ::javax::swing::table::TableCellEditor *);
|
208 |
|
|
virtual void addColumnSelectionInterval(jint, jint);
|
209 |
|
|
virtual void addRowSelectionInterval(jint, jint);
|
210 |
|
|
virtual void setColumnSelectionInterval(jint, jint);
|
211 |
|
|
virtual void setRowSelectionInterval(jint, jint);
|
212 |
|
|
virtual void removeColumnSelectionInterval(jint, jint);
|
213 |
|
|
virtual void removeRowSelectionInterval(jint, jint);
|
214 |
|
|
virtual jboolean isColumnSelected(jint);
|
215 |
|
|
virtual jboolean isRowSelected(jint);
|
216 |
|
|
virtual jboolean isCellSelected(jint, jint);
|
217 |
|
|
virtual void selectAll();
|
218 |
|
|
virtual ::java::lang::Object * getValueAt(jint, jint);
|
219 |
|
|
virtual void setValueAt(::java::lang::Object *, jint, jint);
|
220 |
|
|
virtual ::javax::swing::table::TableColumn * getColumn(::java::lang::Object *);
|
221 |
|
|
virtual jboolean isCellEditable(jint, jint);
|
222 |
|
|
virtual void createDefaultColumnsFromModel();
|
223 |
|
|
virtual void changeSelection(jint, jint, jboolean, jboolean);
|
224 |
|
|
virtual jboolean editCellAt(jint, jint);
|
225 |
|
|
private:
|
226 |
|
|
void moveToCellBeingEdited(::java::awt::Component *);
|
227 |
|
|
public:
|
228 |
|
|
virtual jboolean editCellAt(jint, jint, ::java::util::EventObject *);
|
229 |
|
|
virtual void removeEditor();
|
230 |
|
|
virtual ::java::awt::Component * prepareEditor(::javax::swing::table::TableCellEditor *, jint, jint);
|
231 |
|
|
public: // actually protected
|
232 |
|
|
virtual void resizeAndRepaint();
|
233 |
|
|
public:
|
234 |
|
|
virtual void setSurrendersFocusOnKeystroke(jboolean);
|
235 |
|
|
virtual jboolean getSurrendersFocusOnKeystroke();
|
236 |
|
|
public: // actually package-private
|
237 |
|
|
virtual void setUIProperty(::java::lang::String *, ::java::lang::Object *);
|
238 |
|
|
private:
|
239 |
|
|
static const jlong serialVersionUID = 3876025080382781659LL;
|
240 |
|
|
public: // actually package-private
|
241 |
|
|
::javax::swing::JTable * __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) this_table;
|
242 |
|
|
public:
|
243 |
|
|
static const jint AUTO_RESIZE_OFF = 0;
|
244 |
|
|
static const jint AUTO_RESIZE_NEXT_COLUMN = 1;
|
245 |
|
|
static const jint AUTO_RESIZE_SUBSEQUENT_COLUMNS = 2;
|
246 |
|
|
static const jint AUTO_RESIZE_ALL_COLUMNS = 4;
|
247 |
|
|
static const jint AUTO_RESIZE_LAST_COLUMN = 3;
|
248 |
|
|
public: // actually protected
|
249 |
|
|
::java::util::Hashtable * defaultEditorsByColumnClass;
|
250 |
|
|
::java::util::Hashtable * defaultRenderersByColumnClass;
|
251 |
|
|
jint editingColumn;
|
252 |
|
|
jint editingRow;
|
253 |
|
|
::java::awt::Component * editorComp;
|
254 |
|
|
jboolean autoCreateColumnsFromModel;
|
255 |
|
|
jint autoResizeMode;
|
256 |
|
|
jint rowHeight;
|
257 |
|
|
jint rowMargin;
|
258 |
|
|
jboolean rowSelectionAllowed;
|
259 |
|
|
jboolean cellSelectionEnabled;
|
260 |
|
|
::javax::swing::table::TableModel * dataModel;
|
261 |
|
|
::javax::swing::table::TableColumnModel * columnModel;
|
262 |
|
|
::javax::swing::ListSelectionModel * selectionModel;
|
263 |
|
|
::javax::swing::table::TableCellEditor * cellEditor;
|
264 |
|
|
private:
|
265 |
|
|
jboolean dragEnabled;
|
266 |
|
|
public: // actually protected
|
267 |
|
|
::java::awt::Color * gridColor;
|
268 |
|
|
::java::awt::Dimension * preferredViewportSize;
|
269 |
|
|
::java::awt::Color * selectionBackground;
|
270 |
|
|
private:
|
271 |
|
|
static ::java::lang::String * SELECTION_BACKGROUND_CHANGED_PROPERTY;
|
272 |
|
|
public: // actually protected
|
273 |
|
|
::java::awt::Color * selectionForeground;
|
274 |
|
|
private:
|
275 |
|
|
static ::java::lang::String * SELECTION_FOREGROUND_CHANGED_PROPERTY;
|
276 |
|
|
public: // actually protected
|
277 |
|
|
jboolean showHorizontalLines;
|
278 |
|
|
jboolean showVerticalLines;
|
279 |
|
|
::javax::swing::table::JTableHeader * tableHeader;
|
280 |
|
|
public: // actually package-private
|
281 |
|
|
::javax::swing::JTable$TableColumnPropertyChangeHandler * tableColumnPropertyChangeHandler;
|
282 |
|
|
private:
|
283 |
|
|
jboolean surrendersFocusOnKeystroke;
|
284 |
|
|
::java::awt::Rectangle * rectCache;
|
285 |
|
|
jboolean clientRowHeightSet;
|
286 |
|
|
::javax::swing::SizeSequence * rowHeights;
|
287 |
|
|
::javax::swing::table::TableCellEditor * booleanInvertingEditor;
|
288 |
|
|
public: // actually package-private
|
289 |
|
|
static jboolean $assertionsDisabled;
|
290 |
|
|
public:
|
291 |
|
|
static ::java::lang::Class class$;
|
292 |
|
|
};
|
293 |
|
|
|
294 |
|
|
#endif // __javax_swing_JTable__
|