JFileChooser.sleela
lib/java/jdk-28/java.desktop/javax/swing/JFileChooser.sleela · 277 line(s) · sleela
<< lib/java/jdk-28/java.desktop/javax/swing/JFileChooser.sleela
SLeeLa file for the Java type javax.swing.JFileChooser (module java.desktop). One Java type, one SLeeLa file.
Java Source (JDK 28 API): https://download.java.net/java/early_access/jdk28/docs/api/java.desktop/javax/swing/JFileChooser.html
Java kind: class; extends javax.swing.JComponent; implements javax.accessibility.Accessible
Status: members from the JDK 28 API (exact signatures).
The SLeeLa functions here are produced from that Java Source. No Java source text is copied. >>
#sleela 3.0
material;
class JFileChooser extends JComponent {
< ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- >
<< Eleven catalogued attributes with getter/setter pairs. Values are faithful
to the real origin of the Java type: the Java SE / JDK 28 API by Oracle
and the OpenJDK community. >>
String metaVersion = "1.0.0";
int metaId = 4983;
String metaAuthor = "Oracle / OpenJDK";
String metaDate = "2026-11-12";
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-11-12";
< metaScienceRating: maturity/robustness on a 1..10 scale >
int metaScienceRating = 9;
< metaNationalSchedule: a real, citable instrument or "none" >
String metaNationalSchedule = "Java SE 28 API Specification (JDK 28 early access)";
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 javaModule = "java.desktop";
String javaSource = "https://download.java.net/java/early_access/jdk28/docs/api/java.desktop/javax/swing/JFileChooser.html";
String javaKind = "class";
String javaSuper = "javax.swing.JComponent";
< ---- generics (SLeeLa erasure, SLEELA.syntax 16.3 and 38.1) ---- >
<< The class is written without Java type parameters: every type variable and
every parameterized or package-qualified reference type erases to Any, and
java.lang.String erases to String. A value of a type parameter travels as
Any; test it with instanceof and cast it where it is used. The Java type
parameters are kept as data in JAVA_TYPE_PARAMETERS. An instance may record
the type arguments its caller means with bindGenericTypeArguments (for an
ArrayList of String, bind the single name java.lang.String). Nothing is
checked against them at run time. >>
static final String JAVA_TYPE_PARAMETERS = "";
String[] genericTypeArguments = new String[0];
public static String genericTypeParameters() { return JAVA_TYPE_PARAMETERS; }
public static int genericTypeParameterCount() { return 0; }
public static String genericTypeParameterName(int index) { return null; }
public JFileChooser bindGenericTypeArguments(String[] arguments) { if (arguments == null) { this.genericTypeArguments = new String[0]; } else { this.genericTypeArguments = arguments; } return this; }
public String genericTypeArgument(int index) { if (index < 0 || index >= arrayLength(genericTypeArguments)) { return null; } return genericTypeArguments[index]; }
public int genericTypeArgumentCount() { return arrayLength(genericTypeArguments); }
< ---- BEGIN java declarations (from the JDK 28 API) ---- >
< 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 constructors (exact JDK 28 API signatures) ---- >
@throwable("java.lang.UnsupportedOperationException")
public JFileChooser(Any fsv) { super("constructor"); }
@throwable("java.lang.UnsupportedOperationException")
public JFileChooser(Any currentDirectory, Any fsv) { super("constructor"); }
@throwable("java.lang.UnsupportedOperationException")
public JFileChooser(String currentDirectoryPath, Any fsv) { super("constructor"); }
@throwable("java.lang.UnsupportedOperationException")
public JFileChooser() { super("constructor"); }
@throwable("java.lang.UnsupportedOperationException")
public JFileChooser(String currentDirectoryPath) { super("constructor"); }
< ---- END java constructors ---- >
< ---- BEGIN java signatures (exact JDK 28 API signatures) ---- >
<< Not yet SLeeLa logic: each method returns the default value of its
Java return type. @throwable names what Java throws for it (abstract:
AbstractMethodError, else UnsupportedOperationException, plus the
declared throws). Write the logic from the Java Source above into the
java implementation block; the generator then drops the stub. >>
@throwable("java.lang.UnsupportedOperationException")
public String getName(Any f) { return null; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void setup(Any view) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean accept(Any f) { return false; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
String paramString() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public String getDescription(Any f) { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setEnabled(boolean enabled) { }
@throwable("java.lang.UnsupportedOperationException")
public void updateUI() { }
@throwable("java.lang.UnsupportedOperationException")
public Any getUI() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public String getUIClassID() { return null; }
@throwable("java.lang.UnsupportedOperationException, java.awt.HeadlessException")
public int showDialog(Any parent, String approveButtonText) { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void addActionListener(Any l) { }
@throwable("java.lang.UnsupportedOperationException")
public void removeActionListener(Any l) { }
@throwable("java.lang.UnsupportedOperationException")
public Any[] getActionListeners() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setCurrentDirectory(Any dir) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getFileSystemView() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setFileSystemView(Any fsv) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean isAcceptAllFileFilterUsed() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public Any getAcceptAllFileFilter() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setFileFilter(Any filter) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getCurrentDirectory() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public boolean isMultiSelectionEnabled() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void ensureFileIsVisible(Any f) { }
@throwable("java.lang.UnsupportedOperationException")
public void setSelectedFile(Any file) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean isTraversable(Any f) { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void rescanCurrentDirectory() { }
@throwable("java.lang.UnsupportedOperationException")
public void setDialogType(int dialogType) { }
@throwable("java.lang.UnsupportedOperationException")
public void setApproveButtonText(String approveButtonText) { }
@throwable("java.lang.UnsupportedOperationException")
public String getDialogTitle() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setApproveButtonMnemonic(char mnemonic) { }
@throwable("java.lang.UnsupportedOperationException")
public void setApproveButtonMnemonic(int mnemonic) { }
@throwable("java.lang.UnsupportedOperationException")
public Any[] getChoosableFileFilters() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getFileFilter() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void addChoosableFileFilter(Any filter) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean removeChoosableFileFilter(Any f) { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void setSelectedFiles(Any[] selectedFiles) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getFileView() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public String getTypeDescription(Any f) { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getSelectedFile() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any[] getSelectedFiles() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void changeToParentDirectory() { }
@throwable("java.lang.UnsupportedOperationException, java.awt.HeadlessException")
public int showOpenDialog(Any parent) { return 0; }
@throwable("java.lang.UnsupportedOperationException, java.awt.HeadlessException")
public int showSaveDialog(Any parent) { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public boolean getControlButtonsAreShown() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void setControlButtonsAreShown(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public int getDialogType() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public void setDialogTitle(String dialogTitle) { }
@throwable("java.lang.UnsupportedOperationException")
public void setApproveButtonToolTipText(String toolTipText) { }
@throwable("java.lang.UnsupportedOperationException")
public String getApproveButtonToolTipText() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public int getApproveButtonMnemonic() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public String getApproveButtonText() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void resetChoosableFileFilters() { }
@throwable("java.lang.UnsupportedOperationException")
public void setAcceptAllFileFilterUsed(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getAccessory() { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setAccessory(Any newAccessory) { }
@throwable("java.lang.UnsupportedOperationException")
public void setFileSelectionMode(int mode) { }
@throwable("java.lang.UnsupportedOperationException")
public int getFileSelectionMode() { return 0; }
@throwable("java.lang.UnsupportedOperationException")
public boolean isFileSelectionEnabled() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public boolean isDirectorySelectionEnabled() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void setMultiSelectionEnabled(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean isFileHidingEnabled() { return false; }
@throwable("java.lang.UnsupportedOperationException")
public void setFileHidingEnabled(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public void setFileView(Any fileView) { }
@throwable("java.lang.UnsupportedOperationException")
public void approveSelection() { }
@throwable("java.lang.UnsupportedOperationException")
public void cancelSelection() { }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException, java.awt.HeadlessException")
Any createDialog(Any parent) { return null; }
@throwable("java.lang.UnsupportedOperationException")
public Any getIcon(Any f) { return null; }
@throwable("java.lang.UnsupportedOperationException")
public void setDragEnabled(boolean b) { }
@throwable("java.lang.UnsupportedOperationException")
public boolean getDragEnabled() { return false; }
@JavaProtected
@throwable("java.lang.UnsupportedOperationException")
void fireActionPerformed(String command) { }
@throwable("java.lang.UnsupportedOperationException")
public Any getAccessibleContext() { return null; }
< ---- END java signatures ---- >
}