Home /Modules/java/JFileChooser.sleela

JFileChooser.sleela

lib/java/jdk-25/javax/swing/JFileChooser.sleela · 183 line(s) · sleela

<< lib/java/javax/swing/JFileChooser.sleela
   SLeeLa Java 28 source envelope.
   Definition: SLeeLa source declaration for the Java type javax.swing.JFileChooser.
   Java behavior is supplied through the SLeeLa Java conformance boundary. >>
#sleela 3.0
material;

class JFileChooser {
  < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- >
  << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader,
     or catalog can read and (where appropriate) override this record.
     Values are faithful to the subject's real origin where publicly known. >>
  String metaVersion = "1.0.0";
  int metaId = 4984;
  String metaAuthor = "Oracle / OpenJDK";
  String metaDate = "2026-10-16";
  String metaCopyright = "GPLv2 with Classpath Exception (OpenJDK)";
  String metaTrademark = "Java";
  String metaCorporation = "Oracle Corporation";
  < metaOrigin: National | <nation> | International | Galactic >
  String metaOrigin = "International";
  String metaBirthDate = "2026-09-29";
  < metaScienceRating: maturity/robustness on a 1..10 scale >
  int metaScienceRating = 9;
  < metaNationalSchedule: a real, citable instrument or "none" >
  String metaNationalSchedule = "OpenJDK (JDK 28 API)";

  String getMetaVersion() { return metaVersion; }
  void setMetaVersion(String v) { metaVersion = v; }
  int getMetaId() { return metaId; }
  void setMetaId(int v) { metaId = v; }
  String getAuthor() { return metaAuthor; }
  void setAuthor(String v) { metaAuthor = v; }
  String getDate() { return metaDate; }
  void setDate(String v) { metaDate = v; }
  String getCopyright() { return metaCopyright; }
  void setCopyright(String v) { metaCopyright = v; }
  String getTrademark() { return metaTrademark; }
  void setTrademark(String v) { metaTrademark = v; }
  String getCorporation() { return metaCorporation; }
  void setCorporation(String v) { metaCorporation = v; }
  String getOrigin() { return metaOrigin; }
  void setOrigin(String v) { metaOrigin = v; }
  String getBirthDate() { return metaBirthDate; }
  void setBirthDate(String v) { metaBirthDate = v; }
  int getScienceRating() { return metaScienceRating; }
  void setScienceRating(int v) { metaScienceRating = v; }
  String getNationalSchedule() { return metaNationalSchedule; }
  void setNationalSchedule(String v) { metaNationalSchedule = v; }
  String javaType = "javax.swing.JFileChooser";
  String typeName() { return javaType; }
  boolean available() { return javaType != ""; }
  String construct() { return "java.construct:" + javaType; }
  String invoke(String operation) { return "java.invoke:" + javaType + ":" + operation; }
  String invokeStatic(String operation) { return "java.static:" + javaType + ":" + operation; }

  < ---- BEGIN java declarations (generated by tools/jdk_api_declare.py) ---- >
  < constants and static fields (values reflected from the JDK) >
  static final int OPEN_DIALOG = 0;
  static final int SAVE_DIALOG = 1;
  static final int CUSTOM_DIALOG = 2;
  static final int CANCEL_OPTION = 1;
  static final int APPROVE_OPTION = 0;
  static final int ERROR_OPTION = -1;
  static final int FILES_ONLY = 0;
  static final int DIRECTORIES_ONLY = 1;
  static final int FILES_AND_DIRECTORIES = 2;
  static final String CANCEL_SELECTION = "CancelSelection";
  static final String APPROVE_SELECTION = "ApproveSelection";
  static final String APPROVE_BUTTON_TEXT_CHANGED_PROPERTY = "ApproveButtonTextChangedProperty";
  static final String APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY = "ApproveButtonToolTipTextChangedProperty";
  static final String APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY = "ApproveButtonMnemonicChangedProperty";
  static final String CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY = "ControlButtonsAreShownChangedProperty";
  static final String DIRECTORY_CHANGED_PROPERTY = "directoryChanged";
  static final String SELECTED_FILE_CHANGED_PROPERTY = "SelectedFileChangedProperty";
  static final String SELECTED_FILES_CHANGED_PROPERTY = "SelectedFilesChangedProperty";
  static final String MULTI_SELECTION_ENABLED_CHANGED_PROPERTY = "MultiSelectionEnabledChangedProperty";
  static final String FILE_SYSTEM_VIEW_CHANGED_PROPERTY = "FileSystemViewChanged";
  static final String FILE_VIEW_CHANGED_PROPERTY = "fileViewChanged";
  static final String FILE_HIDING_CHANGED_PROPERTY = "FileHidingChanged";
  static final String FILE_FILTER_CHANGED_PROPERTY = "fileFilterChanged";
  static final String FILE_SELECTION_MODE_CHANGED_PROPERTY = "fileSelectionChanged";
  static final String ACCESSORY_CHANGED_PROPERTY = "AccessoryChangedProperty";
  static final String ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY = "acceptAllFileFilterUsedChanged";
  static final String DIALOG_TITLE_CHANGED_PROPERTY = "DialogTitleChangedProperty";
  static final String DIALOG_TYPE_CHANGED_PROPERTY = "DialogTypeChangedProperty";
  static final String CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY = "ChoosableFileFilterChangedProperty";
  < public and protected instance fields >
  Any accessibleContext;
  < ---- END java declarations ---- >

  < ---- BEGIN java signatures (generated by tools/jdk_api_signatures.py) ---- >
  << Exact Java signatures (from the JDK). A method body that is not yet
     SLeeLa logic throws: AbstractMethodError for an abstract method, else
     UnsupportedOperationException naming the Java signature. >>
  public java.lang.String getName(java.io.File f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getName(java.io.File)"); }
  @JavaProtected
  void setup(javax.swing.filechooser.FileSystemView view) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setup(javax.swing.filechooser.FileSystemView)"); }
  public boolean accept(java.io.File f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.accept(java.io.File)"); }
  @JavaProtected
  java.lang.String paramString() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.paramString()"); }
  public java.lang.String getDescription(java.io.File f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getDescription(java.io.File)"); }
  public void setEnabled(boolean enabled) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setEnabled(boolean)"); }
  public void updateUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.updateUI()"); }
  public javax.swing.plaf.FileChooserUI getUI() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getUI()"); }
  public java.lang.String getUIClassID() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getUIClassID()"); }
  public int showDialog(java.awt.Component parent, java.lang.String approveButtonText) throws java.awt.HeadlessException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.showDialog(java.awt.Component, java.lang.String)"); }
  public void addActionListener(java.awt.event.ActionListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.addActionListener(java.awt.event.ActionListener)"); }
  public void removeActionListener(java.awt.event.ActionListener l) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.removeActionListener(java.awt.event.ActionListener)"); }
  public java.awt.event.ActionListener[] getActionListeners() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getActionListeners()"); }
  public void setCurrentDirectory(java.io.File dir) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setCurrentDirectory(java.io.File)"); }
  public javax.swing.filechooser.FileSystemView getFileSystemView() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getFileSystemView()"); }
  public void setFileSystemView(javax.swing.filechooser.FileSystemView fsv) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setFileSystemView(javax.swing.filechooser.FileSystemView)"); }
  public boolean isAcceptAllFileFilterUsed() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.isAcceptAllFileFilterUsed()"); }
  public javax.swing.filechooser.FileFilter getAcceptAllFileFilter() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getAcceptAllFileFilter()"); }
  public void setFileFilter(javax.swing.filechooser.FileFilter filter) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setFileFilter(javax.swing.filechooser.FileFilter)"); }
  public java.io.File getCurrentDirectory() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getCurrentDirectory()"); }
  public boolean isMultiSelectionEnabled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.isMultiSelectionEnabled()"); }
  public void ensureFileIsVisible(java.io.File f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.ensureFileIsVisible(java.io.File)"); }
  public void setSelectedFile(java.io.File file) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setSelectedFile(java.io.File)"); }
  public boolean isTraversable(java.io.File f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.isTraversable(java.io.File)"); }
  public void rescanCurrentDirectory() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.rescanCurrentDirectory()"); }
  public void setDialogType(int dialogType) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setDialogType(int)"); }
  public void setApproveButtonText(java.lang.String approveButtonText) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setApproveButtonText(java.lang.String)"); }
  public java.lang.String getDialogTitle() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getDialogTitle()"); }
  public void setApproveButtonMnemonic(char mnemonic) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setApproveButtonMnemonic(char)"); }
  public void setApproveButtonMnemonic(int mnemonic) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setApproveButtonMnemonic(int)"); }
  public javax.swing.filechooser.FileFilter[] getChoosableFileFilters() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getChoosableFileFilters()"); }
  public javax.swing.filechooser.FileFilter getFileFilter() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getFileFilter()"); }
  public void addChoosableFileFilter(javax.swing.filechooser.FileFilter filter) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.addChoosableFileFilter(javax.swing.filechooser.FileFilter)"); }
  public boolean removeChoosableFileFilter(javax.swing.filechooser.FileFilter f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.removeChoosableFileFilter(javax.swing.filechooser.FileFilter)"); }
  public void setSelectedFiles(java.io.File[] selectedFiles) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setSelectedFiles(java.io.File[])"); }
  public javax.swing.filechooser.FileView getFileView() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getFileView()"); }
  public java.lang.String getTypeDescription(java.io.File f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getTypeDescription(java.io.File)"); }
  public java.io.File getSelectedFile() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getSelectedFile()"); }
  public java.io.File[] getSelectedFiles() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getSelectedFiles()"); }
  public void changeToParentDirectory() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.changeToParentDirectory()"); }
  public int showOpenDialog(java.awt.Component parent) throws java.awt.HeadlessException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.showOpenDialog(java.awt.Component)"); }
  public int showSaveDialog(java.awt.Component parent) throws java.awt.HeadlessException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.showSaveDialog(java.awt.Component)"); }
  public boolean getControlButtonsAreShown() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getControlButtonsAreShown()"); }
  public void setControlButtonsAreShown(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setControlButtonsAreShown(boolean)"); }
  public int getDialogType() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getDialogType()"); }
  public void setDialogTitle(java.lang.String dialogTitle) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setDialogTitle(java.lang.String)"); }
  public void setApproveButtonToolTipText(java.lang.String toolTipText) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setApproveButtonToolTipText(java.lang.String)"); }
  public java.lang.String getApproveButtonToolTipText() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getApproveButtonToolTipText()"); }
  public int getApproveButtonMnemonic() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getApproveButtonMnemonic()"); }
  public java.lang.String getApproveButtonText() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getApproveButtonText()"); }
  public void resetChoosableFileFilters() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.resetChoosableFileFilters()"); }
  public void setAcceptAllFileFilterUsed(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setAcceptAllFileFilterUsed(boolean)"); }
  public javax.swing.JComponent getAccessory() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getAccessory()"); }
  public void setAccessory(javax.swing.JComponent newAccessory) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setAccessory(javax.swing.JComponent)"); }
  public void setFileSelectionMode(int mode) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setFileSelectionMode(int)"); }
  public int getFileSelectionMode() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getFileSelectionMode()"); }
  public boolean isFileSelectionEnabled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.isFileSelectionEnabled()"); }
  public boolean isDirectorySelectionEnabled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.isDirectorySelectionEnabled()"); }
  public void setMultiSelectionEnabled(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setMultiSelectionEnabled(boolean)"); }
  public boolean isFileHidingEnabled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.isFileHidingEnabled()"); }
  public void setFileHidingEnabled(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setFileHidingEnabled(boolean)"); }
  public void setFileView(javax.swing.filechooser.FileView fileView) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setFileView(javax.swing.filechooser.FileView)"); }
  public void approveSelection() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.approveSelection()"); }
  public void cancelSelection() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.cancelSelection()"); }
  @JavaProtected
  javax.swing.JDialog createDialog(java.awt.Component parent) throws java.awt.HeadlessException { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.createDialog(java.awt.Component)"); }
  public javax.swing.Icon getIcon(java.io.File f) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getIcon(java.io.File)"); }
  public void setDragEnabled(boolean b) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.setDragEnabled(boolean)"); }
  public boolean getDragEnabled() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getDragEnabled()"); }
  @JavaProtected
  void fireActionPerformed(java.lang.String command) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.fireActionPerformed(java.lang.String)"); }
  public javax.accessibility.AccessibleContext getAccessibleContext() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.getAccessibleContext()"); }
  < ---- END java signatures ---- >

  < ---- BEGIN java constructors (generated by tools/jdk_api_signatures.py) ---- >
  << Exact Java constructor signatures (from the JDK). Overload resolution binds a
     call by arity, then best type match. Each body throws
     UnsupportedOperationException until its SLeeLa logic is written. >>
  public JFileChooser(javax.swing.filechooser.FileSystemView fsv) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.<init>(javax.swing.filechooser.FileSystemView)"); }
  public JFileChooser(java.io.File currentDirectory, javax.swing.filechooser.FileSystemView fsv) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.<init>(java.io.File, javax.swing.filechooser.FileSystemView)"); }
  public JFileChooser(java.lang.String currentDirectoryPath, javax.swing.filechooser.FileSystemView fsv) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.<init>(java.lang.String, javax.swing.filechooser.FileSystemView)"); }
  public JFileChooser() { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.<init>()"); }
  public JFileChooser(java.lang.String currentDirectoryPath) { throw new UnsupportedOperationException("not yet implemented in SLeeLa: javax.swing.JFileChooser.<init>(java.lang.String)"); }
  < ---- END java constructors ---- >
}