1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_tree_DefaultTreeCellEditor__
|
5 |
|
|
#define __javax_swing_tree_DefaultTreeCellEditor__
|
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 awt
|
17 |
|
|
{
|
18 |
|
|
class Color;
|
19 |
|
|
class Component;
|
20 |
|
|
class Container;
|
21 |
|
|
class Font;
|
22 |
|
|
namespace event
|
23 |
|
|
{
|
24 |
|
|
class ActionEvent;
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
namespace javax
|
29 |
|
|
{
|
30 |
|
|
namespace swing
|
31 |
|
|
{
|
32 |
|
|
class Icon;
|
33 |
|
|
class JTree;
|
34 |
|
|
class Timer;
|
35 |
|
|
namespace event
|
36 |
|
|
{
|
37 |
|
|
class CellEditorListener;
|
38 |
|
|
class EventListenerList;
|
39 |
|
|
class TreeSelectionEvent;
|
40 |
|
|
}
|
41 |
|
|
namespace tree
|
42 |
|
|
{
|
43 |
|
|
class DefaultTreeCellEditor;
|
44 |
|
|
class DefaultTreeCellRenderer;
|
45 |
|
|
class TreeCellEditor;
|
46 |
|
|
class TreePath;
|
47 |
|
|
}
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
}
|
51 |
|
|
|
52 |
|
|
class javax::swing::tree::DefaultTreeCellEditor : public ::java::lang::Object
|
53 |
|
|
{
|
54 |
|
|
|
55 |
|
|
public:
|
56 |
|
|
DefaultTreeCellEditor(::javax::swing::JTree *, ::javax::swing::tree::DefaultTreeCellRenderer *);
|
57 |
|
|
DefaultTreeCellEditor(::javax::swing::JTree *, ::javax::swing::tree::DefaultTreeCellRenderer *, ::javax::swing::tree::TreeCellEditor *);
|
58 |
|
|
private:
|
59 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
60 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
61 |
|
|
public:
|
62 |
|
|
virtual void setBorderSelectionColor(::java::awt::Color *);
|
63 |
|
|
virtual ::java::awt::Color * getBorderSelectionColor();
|
64 |
|
|
virtual void setFont(::java::awt::Font *);
|
65 |
|
|
virtual ::java::awt::Font * getFont();
|
66 |
|
|
virtual ::java::awt::Component * getTreeCellEditorComponent(::javax::swing::JTree *, ::java::lang::Object *, jboolean, jboolean, jboolean, jint);
|
67 |
|
|
virtual ::java::lang::Object * getCellEditorValue();
|
68 |
|
|
virtual jboolean isCellEditable(::java::util::EventObject *);
|
69 |
|
|
virtual jboolean shouldSelectCell(::java::util::EventObject *);
|
70 |
|
|
virtual jboolean stopCellEditing();
|
71 |
|
|
virtual void cancelCellEditing();
|
72 |
|
|
private:
|
73 |
|
|
void finish();
|
74 |
|
|
public:
|
75 |
|
|
virtual void addCellEditorListener(::javax::swing::event::CellEditorListener *);
|
76 |
|
|
virtual void removeCellEditorListener(::javax::swing::event::CellEditorListener *);
|
77 |
|
|
virtual JArray< ::javax::swing::event::CellEditorListener * > * getCellEditorListeners();
|
78 |
|
|
virtual void valueChanged(::javax::swing::event::TreeSelectionEvent *);
|
79 |
|
|
virtual void actionPerformed(::java::awt::event::ActionEvent *);
|
80 |
|
|
public: // actually protected
|
81 |
|
|
virtual void setTree(::javax::swing::JTree *);
|
82 |
|
|
virtual jboolean shouldStartEditingTimer(::java::util::EventObject *);
|
83 |
|
|
virtual void startEditingTimer();
|
84 |
|
|
virtual jboolean canEditImmediately(::java::util::EventObject *);
|
85 |
|
|
virtual jboolean inHitRegion(jint, jint);
|
86 |
|
|
virtual void determineOffset(::javax::swing::JTree *, ::java::lang::Object *, jboolean, jboolean, jboolean, jint);
|
87 |
|
|
virtual void prepareForEditing();
|
88 |
|
|
virtual ::java::awt::Container * createContainer();
|
89 |
|
|
virtual ::javax::swing::tree::TreeCellEditor * createTreeCellEditor();
|
90 |
|
|
private:
|
91 |
|
|
::javax::swing::event::EventListenerList * __attribute__((aligned(__alignof__( ::java::lang::Object)))) listenerList;
|
92 |
|
|
public: // actually protected
|
93 |
|
|
::javax::swing::tree::TreeCellEditor * realEditor;
|
94 |
|
|
::javax::swing::tree::DefaultTreeCellRenderer * renderer;
|
95 |
|
|
::java::awt::Container * editingContainer;
|
96 |
|
|
::java::awt::Component * editingComponent;
|
97 |
|
|
jboolean canEdit;
|
98 |
|
|
jint offset;
|
99 |
|
|
::javax::swing::JTree * tree;
|
100 |
|
|
::javax::swing::tree::TreePath * lastPath;
|
101 |
|
|
::javax::swing::Timer * timer;
|
102 |
|
|
jint lastRow;
|
103 |
|
|
::java::awt::Color * borderSelectionColor;
|
104 |
|
|
::javax::swing::Icon * editingIcon;
|
105 |
|
|
::java::awt::Font * font;
|
106 |
|
|
public:
|
107 |
|
|
static ::java::lang::Class class$;
|
108 |
|
|
};
|
109 |
|
|
|
110 |
|
|
#endif // __javax_swing_tree_DefaultTreeCellEditor__
|