DefaultTreeModel.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_tree_DefaultTreeModel__
  3. #define __javax_swing_tree_DefaultTreeModel__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace javax
  10. {
  11. namespace swing
  12. {
  13. namespace event
  14. {
  15. class EventListenerList;
  16. class TreeModelListener;
  17. }
  18. namespace tree
  19. {
  20. class DefaultTreeModel;
  21. class MutableTreeNode;
  22. class TreeNode;
  23. class TreePath;
  24. }
  25. }
  26. }
  27. }
  28. class javax::swing::tree::DefaultTreeModel : public ::java::lang::Object
  29. {
  30. public:
  31. DefaultTreeModel(::javax::swing::tree::TreeNode *);
  32. DefaultTreeModel(::javax::swing::tree::TreeNode *, jboolean);
  33. private:
  34. void writeObject(::java::io::ObjectOutputStream *);
  35. void readObject(::java::io::ObjectInputStream *);
  36. public:
  37. virtual jboolean asksAllowsChildren();
  38. virtual void setAsksAllowsChildren(jboolean);
  39. virtual void setRoot(::javax::swing::tree::TreeNode *);
  40. virtual ::java::lang::Object * getRoot();
  41. virtual jint getIndexOfChild(::java::lang::Object *, ::java::lang::Object *);
  42. virtual ::java::lang::Object * getChild(::java::lang::Object *, jint);
  43. virtual jint getChildCount(::java::lang::Object *);
  44. virtual jboolean isLeaf(::java::lang::Object *);
  45. virtual void reload();
  46. virtual void reload(::javax::swing::tree::TreeNode *);
  47. virtual void valueForPathChanged(::javax::swing::tree::TreePath *, ::java::lang::Object *);
  48. virtual void insertNodeInto(::javax::swing::tree::MutableTreeNode *, ::javax::swing::tree::MutableTreeNode *, jint);
  49. virtual void removeNodeFromParent(::javax::swing::tree::MutableTreeNode *);
  50. virtual void nodeChanged(::javax::swing::tree::TreeNode *);
  51. virtual void nodesWereInserted(::javax::swing::tree::TreeNode *, JArray< jint > *);
  52. virtual void nodesWereRemoved(::javax::swing::tree::TreeNode *, JArray< jint > *, JArray< ::java::lang::Object * > *);
  53. virtual void nodesChanged(::javax::swing::tree::TreeNode *, JArray< jint > *);
  54. virtual void nodeStructureChanged(::javax::swing::tree::TreeNode *);
  55. virtual JArray< ::javax::swing::tree::TreeNode * > * getPathToRoot(::javax::swing::tree::TreeNode *);
  56. public: // actually protected
  57. virtual JArray< ::javax::swing::tree::TreeNode * > * getPathToRoot(::javax::swing::tree::TreeNode *, jint);
  58. public:
  59. virtual void addTreeModelListener(::javax::swing::event::TreeModelListener *);
  60. virtual void removeTreeModelListener(::javax::swing::event::TreeModelListener *);
  61. virtual JArray< ::javax::swing::event::TreeModelListener * > * getTreeModelListeners();
  62. public: // actually protected
  63. virtual void fireTreeNodesChanged(::java::lang::Object *, JArray< ::java::lang::Object * > *, JArray< jint > *, JArray< ::java::lang::Object * > *);
  64. virtual void fireTreeNodesInserted(::java::lang::Object *, JArray< ::java::lang::Object * > *, JArray< jint > *, JArray< ::java::lang::Object * > *);
  65. virtual void fireTreeNodesRemoved(::java::lang::Object *, JArray< ::java::lang::Object * > *, JArray< jint > *, JArray< ::java::lang::Object * > *);
  66. virtual void fireTreeStructureChanged(::java::lang::Object *, JArray< ::java::lang::Object * > *, JArray< jint > *, JArray< ::java::lang::Object * > *);
  67. public:
  68. virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  69. public: // actually package-private
  70. static const jlong serialVersionUID = -2621068368932566998LL;
  71. public: // actually protected
  72. ::javax::swing::tree::TreeNode * __attribute__((aligned(__alignof__( ::java::lang::Object)))) root;
  73. ::javax::swing::event::EventListenerList * listenerList;
  74. jboolean asksAllowsChildren__;
  75. public:
  76. static ::java::lang::Class class$;
  77. };
  78. #endif // __javax_swing_tree_DefaultTreeModel__