1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_table_DefaultTableColumnModel__
|
5 |
|
|
#define __javax_swing_table_DefaultTableColumnModel__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace beans
|
17 |
|
|
{
|
18 |
|
|
class PropertyChangeEvent;
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
namespace javax
|
22 |
|
|
{
|
23 |
|
|
namespace swing
|
24 |
|
|
{
|
25 |
|
|
class ListSelectionModel;
|
26 |
|
|
namespace event
|
27 |
|
|
{
|
28 |
|
|
class ChangeEvent;
|
29 |
|
|
class EventListenerList;
|
30 |
|
|
class ListSelectionEvent;
|
31 |
|
|
class TableColumnModelEvent;
|
32 |
|
|
class TableColumnModelListener;
|
33 |
|
|
}
|
34 |
|
|
namespace table
|
35 |
|
|
{
|
36 |
|
|
class DefaultTableColumnModel;
|
37 |
|
|
class TableColumn;
|
38 |
|
|
}
|
39 |
|
|
}
|
40 |
|
|
}
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
class javax::swing::table::DefaultTableColumnModel : public ::java::lang::Object
|
44 |
|
|
{
|
45 |
|
|
|
46 |
|
|
public:
|
47 |
|
|
DefaultTableColumnModel();
|
48 |
|
|
virtual void addColumn(::javax::swing::table::TableColumn *);
|
49 |
|
|
virtual void removeColumn(::javax::swing::table::TableColumn *);
|
50 |
|
|
virtual void moveColumn(jint, jint);
|
51 |
|
|
virtual void setColumnMargin(jint);
|
52 |
|
|
virtual jint getColumnCount();
|
53 |
|
|
virtual ::java::util::Enumeration * getColumns();
|
54 |
|
|
virtual jint getColumnIndex(::java::lang::Object *);
|
55 |
|
|
virtual ::javax::swing::table::TableColumn * getColumn(jint);
|
56 |
|
|
virtual jint getColumnMargin();
|
57 |
|
|
virtual jint getColumnIndexAtX(jint);
|
58 |
|
|
virtual jint getTotalColumnWidth();
|
59 |
|
|
virtual void setSelectionModel(::javax::swing::ListSelectionModel *);
|
60 |
|
|
virtual ::javax::swing::ListSelectionModel * getSelectionModel();
|
61 |
|
|
virtual void setColumnSelectionAllowed(jboolean);
|
62 |
|
|
virtual jboolean getColumnSelectionAllowed();
|
63 |
|
|
virtual JArray< jint > * getSelectedColumns();
|
64 |
|
|
virtual jint getSelectedColumnCount();
|
65 |
|
|
virtual void addColumnModelListener(::javax::swing::event::TableColumnModelListener *);
|
66 |
|
|
virtual void removeColumnModelListener(::javax::swing::event::TableColumnModelListener *);
|
67 |
|
|
virtual JArray< ::javax::swing::event::TableColumnModelListener * > * getColumnModelListeners();
|
68 |
|
|
public: // actually protected
|
69 |
|
|
virtual void fireColumnAdded(::javax::swing::event::TableColumnModelEvent *);
|
70 |
|
|
virtual void fireColumnRemoved(::javax::swing::event::TableColumnModelEvent *);
|
71 |
|
|
virtual void fireColumnMoved(::javax::swing::event::TableColumnModelEvent *);
|
72 |
|
|
virtual void fireColumnSelectionChanged(::javax::swing::event::ListSelectionEvent *);
|
73 |
|
|
virtual void fireColumnMarginChanged();
|
74 |
|
|
public:
|
75 |
|
|
virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
|
76 |
|
|
virtual void propertyChange(::java::beans::PropertyChangeEvent *);
|
77 |
|
|
virtual void valueChanged(::javax::swing::event::ListSelectionEvent *);
|
78 |
|
|
public: // actually protected
|
79 |
|
|
virtual ::javax::swing::ListSelectionModel * createSelectionModel();
|
80 |
|
|
virtual void recalcWidthCache();
|
81 |
|
|
private:
|
82 |
|
|
void invalidateWidthCache();
|
83 |
|
|
static const jlong serialVersionUID = 6580012493508960512LL;
|
84 |
|
|
public: // actually protected
|
85 |
|
|
::java::util::Vector * __attribute__((aligned(__alignof__( ::java::lang::Object)))) tableColumns;
|
86 |
|
|
::javax::swing::ListSelectionModel * selectionModel;
|
87 |
|
|
jint columnMargin;
|
88 |
|
|
::javax::swing::event::EventListenerList * listenerList;
|
89 |
|
|
::javax::swing::event::ChangeEvent * changeEvent;
|
90 |
|
|
jboolean columnSelectionAllowed;
|
91 |
|
|
jint totalColumnWidth;
|
92 |
|
|
public:
|
93 |
|
|
static ::java::lang::Class class$;
|
94 |
|
|
};
|
95 |
|
|
|
96 |
|
|
#endif // __javax_swing_table_DefaultTableColumnModel__
|