JTree.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JTree__
  3. #define __javax_swing_JTree__
  4. #pragma interface
  5. #include <javax/swing/JComponent.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Dimension;
  14. class Rectangle;
  15. }
  16. }
  17. namespace javax
  18. {
  19. namespace accessibility
  20. {
  21. class AccessibleContext;
  22. }
  23. namespace swing
  24. {
  25. class JTree;
  26. class JTree$TreeSelectionRedirector;
  27. namespace event
  28. {
  29. class TreeExpansionListener;
  30. class TreeModelListener;
  31. class TreeSelectionEvent;
  32. class TreeSelectionListener;
  33. class TreeWillExpandListener;
  34. }
  35. namespace plaf
  36. {
  37. class TreeUI;
  38. }
  39. namespace text
  40. {
  41. class Position$Bias;
  42. }
  43. namespace tree
  44. {
  45. class TreeCellEditor;
  46. class TreeCellRenderer;
  47. class TreeModel;
  48. class TreeNode;
  49. class TreePath;
  50. class TreeSelectionModel;
  51. }
  52. }
  53. }
  54. }
  55. class javax::swing::JTree : public ::javax::swing::JComponent
  56. {
  57. public:
  58. JTree();
  59. JTree(::java::util::Hashtable *);
  60. JTree(JArray< ::java::lang::Object * > *);
  61. JTree(::javax::swing::tree::TreeModel *);
  62. JTree(::javax::swing::tree::TreeNode *);
  63. JTree(::javax::swing::tree::TreeNode *, jboolean);
  64. JTree(::java::util::Vector *);
  65. virtual jint getRowForPath(::javax::swing::tree::TreePath *);
  66. virtual ::javax::swing::tree::TreePath * getPathForRow(jint);
  67. public: // actually protected
  68. virtual JArray< ::javax::swing::tree::TreePath * > * getPathBetweenRows(jint, jint);
  69. static ::javax::swing::tree::TreeModel * createTreeModel(::java::lang::Object *);
  70. public:
  71. virtual ::javax::swing::plaf::TreeUI * getUI();
  72. virtual void setUI(::javax::swing::plaf::TreeUI *);
  73. virtual void updateUI();
  74. virtual ::java::lang::String * getUIClassID();
  75. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  76. virtual ::java::awt::Dimension * getPreferredScrollableViewportSize();
  77. virtual jint getScrollableUnitIncrement(::java::awt::Rectangle *, jint, jint);
  78. virtual jint getScrollableBlockIncrement(::java::awt::Rectangle *, jint, jint);
  79. virtual jboolean getScrollableTracksViewportHeight();
  80. virtual jboolean getScrollableTracksViewportWidth();
  81. virtual void addTreeExpansionListener(::javax::swing::event::TreeExpansionListener *);
  82. virtual void removeTreeExpansionListener(::javax::swing::event::TreeExpansionListener *);
  83. virtual JArray< ::javax::swing::event::TreeExpansionListener * > * getTreeExpansionListeners();
  84. virtual void fireTreeCollapsed(::javax::swing::tree::TreePath *);
  85. virtual void fireTreeExpanded(::javax::swing::tree::TreePath *);
  86. virtual void addTreeSelectionListener(::javax::swing::event::TreeSelectionListener *);
  87. virtual void removeTreeSelectionListener(::javax::swing::event::TreeSelectionListener *);
  88. virtual JArray< ::javax::swing::event::TreeSelectionListener * > * getTreeSelectionListeners();
  89. public: // actually protected
  90. virtual void fireValueChanged(::javax::swing::event::TreeSelectionEvent *);
  91. public:
  92. virtual void addTreeWillExpandListener(::javax::swing::event::TreeWillExpandListener *);
  93. virtual void removeTreeWillExpandListener(::javax::swing::event::TreeWillExpandListener *);
  94. virtual JArray< ::javax::swing::event::TreeWillExpandListener * > * getTreeWillExpandListeners();
  95. virtual void fireTreeWillCollapse(::javax::swing::tree::TreePath *);
  96. virtual void fireTreeWillExpand(::javax::swing::tree::TreePath *);
  97. virtual ::javax::swing::tree::TreeModel * getModel();
  98. virtual void setModel(::javax::swing::tree::TreeModel *);
  99. virtual jboolean isEditable();
  100. virtual void setEditable(jboolean);
  101. virtual jboolean isRootVisible();
  102. virtual void setRootVisible(jboolean);
  103. virtual jboolean getShowsRootHandles();
  104. virtual void setShowsRootHandles(jboolean);
  105. virtual ::javax::swing::tree::TreeCellEditor * getCellEditor();
  106. virtual void setCellEditor(::javax::swing::tree::TreeCellEditor *);
  107. virtual ::javax::swing::tree::TreeCellRenderer * getCellRenderer();
  108. virtual void setCellRenderer(::javax::swing::tree::TreeCellRenderer *);
  109. virtual ::javax::swing::tree::TreeSelectionModel * getSelectionModel();
  110. virtual void setSelectionModel(::javax::swing::tree::TreeSelectionModel *);
  111. virtual jint getVisibleRowCount();
  112. virtual void setVisibleRowCount(jint);
  113. virtual jboolean isLargeModel();
  114. virtual void setLargeModel(jboolean);
  115. virtual jint getRowHeight();
  116. virtual void setRowHeight(jint);
  117. virtual jboolean isFixedRowHeight();
  118. virtual jboolean getInvokesStopCellEditing();
  119. virtual void setInvokesStopCellEditing(jboolean);
  120. virtual jint getToggleClickCount();
  121. virtual void setToggleClickCount(jint);
  122. virtual void scrollPathToVisible(::javax::swing::tree::TreePath *);
  123. virtual void scrollRowToVisible(jint);
  124. virtual jboolean getScrollsOnExpand();
  125. virtual void setScrollsOnExpand(jboolean);
  126. virtual void setSelectionPath(::javax::swing::tree::TreePath *);
  127. virtual void setSelectionPaths(JArray< ::javax::swing::tree::TreePath * > *);
  128. private:
  129. void clearSelectionPathStates();
  130. public:
  131. virtual void setSelectionRow(jint);
  132. virtual void setSelectionRows(JArray< jint > *);
  133. virtual void setSelectionInterval(jint, jint);
  134. virtual void addSelectionPath(::javax::swing::tree::TreePath *);
  135. virtual void addSelectionPaths(JArray< ::javax::swing::tree::TreePath * > *);
  136. virtual void addSelectionRow(jint);
  137. virtual void addSelectionRows(JArray< jint > *);
  138. virtual void addSelectionInterval(jint, jint);
  139. virtual void removeSelectionPath(::javax::swing::tree::TreePath *);
  140. virtual void removeSelectionPaths(JArray< ::javax::swing::tree::TreePath * > *);
  141. virtual void removeSelectionRow(jint);
  142. virtual void removeSelectionRows(JArray< jint > *);
  143. virtual void removeSelectionInterval(jint, jint);
  144. virtual void clearSelection();
  145. virtual ::javax::swing::tree::TreePath * getLeadSelectionPath();
  146. virtual void setLeadSelectionPath(::javax::swing::tree::TreePath *);
  147. virtual ::javax::swing::tree::TreePath * getAnchorSelectionPath();
  148. virtual void setAnchorSelectionPath(::javax::swing::tree::TreePath *);
  149. virtual jint getLeadSelectionRow();
  150. virtual jint getMaxSelectionRow();
  151. virtual jint getMinSelectionRow();
  152. virtual jint getSelectionCount();
  153. virtual ::javax::swing::tree::TreePath * getSelectionPath();
  154. virtual JArray< ::javax::swing::tree::TreePath * > * getSelectionPaths();
  155. virtual JArray< jint > * getSelectionRows();
  156. virtual jboolean isPathSelected(::javax::swing::tree::TreePath *);
  157. virtual jboolean isRowSelected(jint);
  158. virtual jboolean isSelectionEmpty();
  159. virtual jboolean getDragEnabled();
  160. virtual void setDragEnabled(jboolean);
  161. virtual jint getRowCount();
  162. virtual void collapsePath(::javax::swing::tree::TreePath *);
  163. virtual void collapseRow(jint);
  164. virtual void expandPath(::javax::swing::tree::TreePath *);
  165. virtual void expandRow(jint);
  166. virtual jboolean isCollapsed(::javax::swing::tree::TreePath *);
  167. virtual jboolean isCollapsed(jint);
  168. virtual jboolean isExpanded(::javax::swing::tree::TreePath *);
  169. virtual jboolean isExpanded(jint);
  170. virtual jboolean getExpandsSelectedPaths();
  171. virtual void setExpandsSelectedPaths(jboolean);
  172. virtual ::java::awt::Rectangle * getPathBounds(::javax::swing::tree::TreePath *);
  173. virtual ::java::awt::Rectangle * getRowBounds(jint);
  174. virtual jboolean isEditing();
  175. virtual jboolean stopEditing();
  176. virtual void cancelEditing();
  177. virtual void startEditingAtPath(::javax::swing::tree::TreePath *);
  178. virtual ::javax::swing::tree::TreePath * getEditingPath();
  179. virtual ::javax::swing::tree::TreePath * getPathForLocation(jint, jint);
  180. virtual jint getRowForLocation(jint, jint);
  181. virtual ::javax::swing::tree::TreePath * getClosestPathForLocation(jint, jint);
  182. virtual jint getClosestRowForLocation(jint, jint);
  183. virtual ::java::lang::Object * getLastSelectedPathComponent();
  184. private:
  185. void doExpandParents(::javax::swing::tree::TreePath *, jboolean);
  186. public: // actually protected
  187. virtual void setExpandedState(::javax::swing::tree::TreePath *, jboolean);
  188. virtual void clearToggledPaths();
  189. virtual ::java::util::Enumeration * getDescendantToggledPaths(::javax::swing::tree::TreePath *);
  190. public:
  191. virtual jboolean hasBeenExpanded(::javax::swing::tree::TreePath *);
  192. virtual jboolean isVisible(::javax::swing::tree::TreePath *);
  193. virtual void makeVisible(::javax::swing::tree::TreePath *);
  194. virtual jboolean isPathEditable(::javax::swing::tree::TreePath *);
  195. public: // actually protected
  196. virtual ::javax::swing::event::TreeModelListener * createTreeModelListener();
  197. static ::javax::swing::tree::TreeModel * getDefaultTreeModel();
  198. public:
  199. virtual ::java::lang::String * convertValueToText(::java::lang::Object *, jboolean, jboolean, jboolean, jint, jboolean);
  200. public: // actually protected
  201. virtual ::java::lang::String * paramString();
  202. public:
  203. virtual ::java::util::Enumeration * getExpandedDescendants(::javax::swing::tree::TreePath *);
  204. virtual ::javax::swing::tree::TreePath * getNextMatch(::java::lang::String *, jint, ::javax::swing::text::Position$Bias *);
  205. public: // actually protected
  206. virtual jboolean removeDescendantSelectedPaths(::javax::swing::tree::TreePath *, jboolean);
  207. virtual void removeDescendantToggledPaths(::java::util::Enumeration *);
  208. public:
  209. virtual void treeDidChange();
  210. public: // actually package-private
  211. virtual void setUIProperty(::java::lang::String *, ::java::lang::Object *);
  212. private:
  213. static const jlong serialVersionUID = 7559816092864483649LL;
  214. public:
  215. static ::java::lang::String * CELL_EDITOR_PROPERTY;
  216. static ::java::lang::String * CELL_RENDERER_PROPERTY;
  217. static ::java::lang::String * EDITABLE_PROPERTY;
  218. static ::java::lang::String * INVOKES_STOP_CELL_EDITING_PROPERTY;
  219. static ::java::lang::String * LARGE_MODEL_PROPERTY;
  220. static ::java::lang::String * ROOT_VISIBLE_PROPERTY;
  221. static ::java::lang::String * ROW_HEIGHT_PROPERTY;
  222. static ::java::lang::String * SCROLLS_ON_EXPAND_PROPERTY;
  223. static ::java::lang::String * SELECTION_MODEL_PROPERTY;
  224. static ::java::lang::String * SHOWS_ROOT_HANDLES_PROPERTY;
  225. static ::java::lang::String * TOGGLE_CLICK_COUNT_PROPERTY;
  226. static ::java::lang::String * TREE_MODEL_PROPERTY;
  227. static ::java::lang::String * VISIBLE_ROW_COUNT_PROPERTY;
  228. static ::java::lang::String * ANCHOR_SELECTION_PATH_PROPERTY;
  229. static ::java::lang::String * LEAD_SELECTION_PATH_PROPERTY;
  230. static ::java::lang::String * EXPANDS_SELECTED_PATHS_PROPERTY;
  231. private:
  232. static ::java::lang::Object * EXPANDED;
  233. static ::java::lang::Object * COLLAPSED;
  234. jboolean __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) dragEnabled;
  235. jboolean expandsSelectedPaths;
  236. ::javax::swing::tree::TreePath * anchorSelectionPath;
  237. public: // actually package-private
  238. ::java::util::Hashtable * nodeStates;
  239. public: // actually protected
  240. ::javax::swing::tree::TreeCellEditor * cellEditor;
  241. ::javax::swing::tree::TreeCellRenderer * cellRenderer;
  242. jboolean editable;
  243. jboolean invokesStopCellEditing;
  244. jboolean largeModel;
  245. jboolean rootVisible;
  246. jint rowHeight;
  247. jboolean scrollsOnExpand;
  248. ::javax::swing::tree::TreeSelectionModel * selectionModel;
  249. jboolean showsRootHandles;
  250. jint toggleClickCount;
  251. ::javax::swing::tree::TreeModel * treeModel;
  252. jint visibleRowCount;
  253. ::javax::swing::event::TreeModelListener * treeModelListener;
  254. ::javax::swing::JTree$TreeSelectionRedirector * selectionRedirector;
  255. private:
  256. jboolean clientRowHeightSet;
  257. jboolean clientScrollsOnExpandSet;
  258. jboolean clientShowsRootHandlesSet;
  259. public:
  260. static ::java::lang::Class class$;
  261. };
  262. #endif // __javax_swing_JTree__