1 |
759 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __javax_swing_tree_DefaultMutableTreeNode__
|
5 |
|
|
#define __javax_swing_tree_DefaultMutableTreeNode__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace javax
|
15 |
|
|
{
|
16 |
|
|
namespace swing
|
17 |
|
|
{
|
18 |
|
|
namespace tree
|
19 |
|
|
{
|
20 |
|
|
class DefaultMutableTreeNode;
|
21 |
|
|
class MutableTreeNode;
|
22 |
|
|
class TreeNode;
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
|
28 |
|
|
class javax::swing::tree::DefaultMutableTreeNode : public ::java::lang::Object
|
29 |
|
|
{
|
30 |
|
|
|
31 |
|
|
public:
|
32 |
|
|
DefaultMutableTreeNode();
|
33 |
|
|
DefaultMutableTreeNode(::java::lang::Object *);
|
34 |
|
|
DefaultMutableTreeNode(::java::lang::Object *, jboolean);
|
35 |
|
|
virtual ::java::lang::Object * clone();
|
36 |
|
|
virtual ::java::lang::String * toString();
|
37 |
|
|
virtual void add(::javax::swing::tree::MutableTreeNode *);
|
38 |
|
|
virtual ::javax::swing::tree::TreeNode * getParent();
|
39 |
|
|
virtual void remove(jint);
|
40 |
|
|
virtual void remove(::javax::swing::tree::MutableTreeNode *);
|
41 |
|
|
private:
|
42 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
43 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
44 |
|
|
public:
|
45 |
|
|
virtual void insert(::javax::swing::tree::MutableTreeNode *, jint);
|
46 |
|
|
virtual JArray< ::javax::swing::tree::TreeNode * > * getPath();
|
47 |
|
|
virtual ::java::util::Enumeration * children();
|
48 |
|
|
virtual void setParent(::javax::swing::tree::MutableTreeNode *);
|
49 |
|
|
virtual ::javax::swing::tree::TreeNode * getChildAt(jint);
|
50 |
|
|
virtual jint getChildCount();
|
51 |
|
|
virtual jint getIndex(::javax::swing::tree::TreeNode *);
|
52 |
|
|
virtual void setAllowsChildren(jboolean);
|
53 |
|
|
virtual jboolean getAllowsChildren();
|
54 |
|
|
virtual void setUserObject(::java::lang::Object *);
|
55 |
|
|
virtual ::java::lang::Object * getUserObject();
|
56 |
|
|
virtual void removeFromParent();
|
57 |
|
|
virtual void removeAllChildren();
|
58 |
|
|
virtual jboolean isNodeAncestor(::javax::swing::tree::TreeNode *);
|
59 |
|
|
virtual jboolean isNodeDescendant(::javax::swing::tree::DefaultMutableTreeNode *);
|
60 |
|
|
virtual ::javax::swing::tree::TreeNode * getSharedAncestor(::javax::swing::tree::DefaultMutableTreeNode *);
|
61 |
|
|
virtual jboolean isNodeRelated(::javax::swing::tree::DefaultMutableTreeNode *);
|
62 |
|
|
virtual jint getDepth();
|
63 |
|
|
virtual jint getLevel();
|
64 |
|
|
public: // actually protected
|
65 |
|
|
virtual JArray< ::javax::swing::tree::TreeNode * > * getPathToRoot(::javax::swing::tree::TreeNode *, jint);
|
66 |
|
|
public:
|
67 |
|
|
virtual JArray< ::java::lang::Object * > * getUserObjectPath();
|
68 |
|
|
virtual ::javax::swing::tree::TreeNode * getRoot();
|
69 |
|
|
virtual jboolean isRoot();
|
70 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getNextNode();
|
71 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getPreviousNode();
|
72 |
|
|
virtual ::java::util::Enumeration * preorderEnumeration();
|
73 |
|
|
virtual ::java::util::Enumeration * postorderEnumeration();
|
74 |
|
|
virtual ::java::util::Enumeration * breadthFirstEnumeration();
|
75 |
|
|
virtual ::java::util::Enumeration * depthFirstEnumeration();
|
76 |
|
|
virtual ::java::util::Enumeration * pathFromAncestorEnumeration(::javax::swing::tree::TreeNode *);
|
77 |
|
|
virtual jboolean isNodeChild(::javax::swing::tree::TreeNode *);
|
78 |
|
|
virtual ::javax::swing::tree::TreeNode * getFirstChild();
|
79 |
|
|
virtual ::javax::swing::tree::TreeNode * getLastChild();
|
80 |
|
|
virtual ::javax::swing::tree::TreeNode * getChildAfter(::javax::swing::tree::TreeNode *);
|
81 |
|
|
virtual ::javax::swing::tree::TreeNode * getChildBefore(::javax::swing::tree::TreeNode *);
|
82 |
|
|
virtual jboolean isNodeSibling(::javax::swing::tree::TreeNode *);
|
83 |
|
|
virtual jint getSiblingCount();
|
84 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getNextSibling();
|
85 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getPreviousSibling();
|
86 |
|
|
virtual jboolean isLeaf();
|
87 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getFirstLeaf();
|
88 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getLastLeaf();
|
89 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getNextLeaf();
|
90 |
|
|
virtual ::javax::swing::tree::DefaultMutableTreeNode * getPreviousLeaf();
|
91 |
|
|
virtual jint getLeafCount();
|
92 |
|
|
private:
|
93 |
|
|
static const jlong serialVersionUID = -4298474751201349152LL;
|
94 |
|
|
public:
|
95 |
|
|
static ::java::util::Enumeration * EMPTY_ENUMERATION;
|
96 |
|
|
public: // actually protected
|
97 |
|
|
::javax::swing::tree::MutableTreeNode * __attribute__((aligned(__alignof__( ::java::lang::Object)))) parent;
|
98 |
|
|
::java::util::Vector * children__;
|
99 |
|
|
::java::lang::Object * userObject;
|
100 |
|
|
jboolean allowsChildren;
|
101 |
|
|
public:
|
102 |
|
|
static ::java::lang::Class class$;
|
103 |
|
|
};
|
104 |
|
|
|
105 |
|
|
#endif // __javax_swing_tree_DefaultMutableTreeNode__
|