Lines Matching defs:file

8  * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
36 * from which the user can select a file.
41 * chosen a file.
52 * This constant value indicates that the purpose of the file
53 * dialog window is to locate a file from which to read.
58 * This constant value indicates that the purpose of the file
59 * dialog window is to locate a file to which to write.
79 * in the file dialog. This variable may be <code>null</code>.
89 * filename text field in the file dialog.
96 String file;
108 * Represents whether the file dialog allows the multiple file selection.
118 * The filter used as the file dialog's filename filter.
119 * The file dialog will only be displaying files whose
153 public void setFile(FileDialog fileDialog, String file) {
154 fileDialog.file = ("".equals(file)) ? null : file;
174 * Creates a file dialog for loading a file. The title of the
175 * file dialog is initially empty. This is a convenience method for
186 * Creates a file dialog window with the specified title for loading
187 * a file. The files shown are those in the current directory.
199 * Creates a file dialog window with the specified title for loading
200 * or saving a file.
203 * file dialog is finding a file to read, and the files shown are those
205 * <code>mode</code> is <code>SAVE</code>, the file dialog is finding
206 * a place to write a file.
212 * @exception IllegalArgumentException if an illegal file
224 * Creates a file dialog for loading a file. The title of the
225 * file dialog is initially empty. This is a convenience method for
244 * Creates a file dialog window with the specified title for loading
245 * a file. The files shown are those in the current directory.
268 * Creates a file dialog window with the specified title for loading
269 * or saving a file.
272 * file dialog is finding a file to read, and the files shown are those
274 * <code>mode</code> is <code>SAVE</code>, the file dialog is finding
275 * a place to write a file.
284 * file dialog mode is supplied;
314 * Creates the file dialog's peer. The peer allows us to change the look
315 * of the file dialog without changing its functionality.
329 * Indicates whether this file dialog box is for loading from a file
330 * or for saving to a file.
332 * @return the mode of this file dialog window, either
344 * Sets the mode of the file dialog. If <code>mode</code> is not
348 * @param mode the mode for this file dialog, either
354 * @exception IllegalArgumentException if an illegal file
365 throw new IllegalArgumentException("illegal file dialog mode");
370 * Gets the directory of this file dialog.
381 * Sets the directory of this file dialog window to be the
385 * has selected a file. Until this point, <code>getDirectory()</code>
403 * Gets the selected file of this file dialog. If the user
404 * selected <code>CANCEL</code>, the returned file is <code>null</code>.
406 * @return the currently selected file of this file dialog window,
411 return file;
417 * If the user cancels the file dialog,
421 * if the user cancels the file dialog.
456 * Sets the selected file for this file dialog window to be the
457 * specified file. This file becomes the default file if it is set
458 * before the file dialog window is first shown.
460 * Specifying "" as the file is exactly equivalent to specifying
462 * as the file.
464 * @param file the file being set
468 public void setFile(String file) {
469 this.file = (file != null && file.equals("")) ? null : file;
472 peer.setFile(this.file);
477 * Enables or disables multiple file selection for the file dialog.
479 * @param enable if {@code true}, multiple file selection is enabled;
491 * Returns whether the file dialog allows the multiple file selection.
493 * @return {@code true} if the file dialog allows the multiple
494 * file selection; {@code false} otherwise.
505 * Determines this file dialog's filename filter. A filename filter
506 * allows the user to specify which files appear in the file dialog
510 * @return this file dialog's filename filter
519 * Sets the filename filter for this file dialog window to the
539 * either a <code>dir</code> or a <code>file</code>
553 if (file != null && file.equals("")) {
554 file = null;
565 * @return the parameter string of this file dialog window
570 str += ",file= " + file;