JFileChooser.h 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_JFileChooser__
  3. #define __javax_swing_JFileChooser__
  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 Component;
  14. namespace event
  15. {
  16. class ActionListener;
  17. }
  18. }
  19. }
  20. namespace javax
  21. {
  22. namespace accessibility
  23. {
  24. class AccessibleContext;
  25. }
  26. namespace swing
  27. {
  28. class Icon;
  29. class JComponent;
  30. class JDialog;
  31. class JFileChooser;
  32. namespace filechooser
  33. {
  34. class FileFilter;
  35. class FileSystemView;
  36. class FileView;
  37. }
  38. namespace plaf
  39. {
  40. class FileChooserUI;
  41. }
  42. }
  43. }
  44. }
  45. class javax::swing::JFileChooser : public ::javax::swing::JComponent
  46. {
  47. public:
  48. JFileChooser();
  49. JFileChooser(::java::lang::String *);
  50. JFileChooser(::java::lang::String *, ::javax::swing::filechooser::FileSystemView *);
  51. JFileChooser(::java::io::File *);
  52. JFileChooser(::javax::swing::filechooser::FileSystemView *);
  53. JFileChooser(::java::io::File *, ::javax::swing::filechooser::FileSystemView *);
  54. public: // actually protected
  55. virtual void setup(::javax::swing::filechooser::FileSystemView *);
  56. public:
  57. virtual void setDragEnabled(jboolean);
  58. virtual jboolean getDragEnabled();
  59. virtual ::java::io::File * getSelectedFile();
  60. virtual void setSelectedFile(::java::io::File *);
  61. virtual JArray< ::java::io::File * > * getSelectedFiles();
  62. virtual void setSelectedFiles(JArray< ::java::io::File * > *);
  63. virtual ::java::io::File * getCurrentDirectory();
  64. virtual void setCurrentDirectory(::java::io::File *);
  65. virtual void changeToParentDirectory();
  66. virtual void rescanCurrentDirectory();
  67. virtual void ensureFileIsVisible(::java::io::File *);
  68. virtual jint showOpenDialog(::java::awt::Component *);
  69. virtual jint showSaveDialog(::java::awt::Component *);
  70. virtual jint showDialog(::java::awt::Component *, ::java::lang::String *);
  71. public: // actually protected
  72. virtual ::javax::swing::JDialog * createDialog(::java::awt::Component *);
  73. public:
  74. virtual jboolean getControlButtonsAreShown();
  75. virtual void setControlButtonsAreShown(jboolean);
  76. virtual jint getDialogType();
  77. virtual void setDialogType(jint);
  78. virtual void setDialogTitle(::java::lang::String *);
  79. virtual ::java::lang::String * getDialogTitle();
  80. virtual void setApproveButtonToolTipText(::java::lang::String *);
  81. virtual ::java::lang::String * getApproveButtonToolTipText();
  82. virtual jint getApproveButtonMnemonic();
  83. virtual void setApproveButtonMnemonic(jint);
  84. virtual void setApproveButtonMnemonic(jchar);
  85. virtual void setApproveButtonText(::java::lang::String *);
  86. virtual ::java::lang::String * getApproveButtonText();
  87. virtual JArray< ::javax::swing::filechooser::FileFilter * > * getChoosableFileFilters();
  88. virtual void addChoosableFileFilter(::javax::swing::filechooser::FileFilter *);
  89. virtual jboolean removeChoosableFileFilter(::javax::swing::filechooser::FileFilter *);
  90. virtual void resetChoosableFileFilters();
  91. virtual ::javax::swing::filechooser::FileFilter * getAcceptAllFileFilter();
  92. virtual jboolean isAcceptAllFileFilterUsed();
  93. virtual void setAcceptAllFileFilterUsed(jboolean);
  94. virtual ::javax::swing::JComponent * getAccessory();
  95. virtual void setAccessory(::javax::swing::JComponent *);
  96. virtual void setFileSelectionMode(jint);
  97. virtual jint getFileSelectionMode();
  98. virtual jboolean isFileSelectionEnabled();
  99. virtual jboolean isDirectorySelectionEnabled();
  100. virtual void setMultiSelectionEnabled(jboolean);
  101. virtual jboolean isMultiSelectionEnabled();
  102. virtual jboolean isFileHidingEnabled();
  103. virtual void setFileHidingEnabled(jboolean);
  104. virtual void setFileFilter(::javax::swing::filechooser::FileFilter *);
  105. virtual ::javax::swing::filechooser::FileFilter * getFileFilter();
  106. virtual void setFileView(::javax::swing::filechooser::FileView *);
  107. virtual ::javax::swing::filechooser::FileView * getFileView();
  108. virtual ::java::lang::String * getName(::java::io::File *);
  109. virtual ::java::lang::String * getDescription(::java::io::File *);
  110. virtual ::java::lang::String * getTypeDescription(::java::io::File *);
  111. virtual ::javax::swing::Icon * getIcon(::java::io::File *);
  112. virtual jboolean isTraversable(::java::io::File *);
  113. virtual jboolean accept(::java::io::File *);
  114. virtual void setFileSystemView(::javax::swing::filechooser::FileSystemView *);
  115. virtual ::javax::swing::filechooser::FileSystemView * getFileSystemView();
  116. virtual void approveSelection();
  117. virtual void cancelSelection();
  118. virtual void addActionListener(::java::awt::event::ActionListener *);
  119. virtual void removeActionListener(::java::awt::event::ActionListener *);
  120. virtual JArray< ::java::awt::event::ActionListener * > * getActionListeners();
  121. public: // actually protected
  122. virtual void fireActionPerformed(::java::lang::String *);
  123. public:
  124. virtual void updateUI();
  125. virtual ::java::lang::String * getUIClassID();
  126. virtual ::javax::swing::plaf::FileChooserUI * getUI();
  127. public: // actually protected
  128. virtual ::java::lang::String * paramString();
  129. public:
  130. virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  131. private:
  132. static const jlong serialVersionUID = 3162921138695327837LL;
  133. public:
  134. static const jint OPEN_DIALOG = 0;
  135. static const jint SAVE_DIALOG = 1;
  136. static const jint CUSTOM_DIALOG = 2;
  137. static const jint CANCEL_OPTION = 1;
  138. static const jint APPROVE_OPTION = 0;
  139. static const jint ERROR_OPTION = -1;
  140. static const jint FILES_ONLY = 0;
  141. static const jint DIRECTORIES_ONLY = 1;
  142. static const jint FILES_AND_DIRECTORIES = 2;
  143. static ::java::lang::String * CANCEL_SELECTION;
  144. static ::java::lang::String * APPROVE_SELECTION;
  145. static ::java::lang::String * APPROVE_BUTTON_TEXT_CHANGED_PROPERTY;
  146. static ::java::lang::String * APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY;
  147. static ::java::lang::String * APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY;
  148. static ::java::lang::String * CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY;
  149. static ::java::lang::String * DIRECTORY_CHANGED_PROPERTY;
  150. static ::java::lang::String * SELECTED_FILE_CHANGED_PROPERTY;
  151. static ::java::lang::String * SELECTED_FILES_CHANGED_PROPERTY;
  152. static ::java::lang::String * MULTI_SELECTION_ENABLED_CHANGED_PROPERTY;
  153. static ::java::lang::String * FILE_SYSTEM_VIEW_CHANGED_PROPERTY;
  154. static ::java::lang::String * FILE_VIEW_CHANGED_PROPERTY;
  155. static ::java::lang::String * FILE_HIDING_CHANGED_PROPERTY;
  156. static ::java::lang::String * FILE_FILTER_CHANGED_PROPERTY;
  157. static ::java::lang::String * FILE_SELECTION_MODE_CHANGED_PROPERTY;
  158. static ::java::lang::String * ACCESSORY_CHANGED_PROPERTY;
  159. static ::java::lang::String * ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY;
  160. static ::java::lang::String * DIALOG_TITLE_CHANGED_PROPERTY;
  161. static ::java::lang::String * DIALOG_TYPE_CHANGED_PROPERTY;
  162. static ::java::lang::String * CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY;
  163. public: // actually protected
  164. ::javax::accessibility::AccessibleContext * __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) accessibleContext;
  165. private:
  166. ::javax::swing::filechooser::FileSystemView * fsv;
  167. ::javax::swing::JComponent * accessory;
  168. jint approveButtonMnemonic;
  169. ::java::lang::String * approveButtonText;
  170. ::java::lang::String * approveButtonToolTipText;
  171. ::java::util::ArrayList * choosableFilters;
  172. jboolean isAcceptAll;
  173. ::java::lang::String * dialogTitle;
  174. jint dialogType;
  175. jint retval;
  176. jboolean multiSelection;
  177. jboolean fileHiding;
  178. jint fileSelectionMode;
  179. ::javax::swing::filechooser::FileView * fv;
  180. jboolean controlButtonsShown;
  181. ::java::io::File * currentDir;
  182. ::javax::swing::filechooser::FileFilter * currentFilter;
  183. JArray< ::java::io::File * > * selectedFiles;
  184. ::java::io::File * selectedFile;
  185. jboolean dragEnabled;
  186. public:
  187. static ::java::lang::Class class$;
  188. };
  189. #endif // __javax_swing_JFileChooser__